@@ -4,13 +4,13 @@ import ReactDOM from 'react-dom';
44import manifest from '@neos-project/neos-ui-extensibility' ;
55import { selectors } from '@neos-project/neos-ui-redux-store' ;
66import { DropDown , Icon } from '@neos-project/react-ui-components' ;
7- import { withDragDropContext } from '@neos-project/neos-ui-decorators' ;
87import { connect } from 'react-redux' ;
98import { $transform , $get } from 'plow-js' ;
109import EditorEnvelope from '@neos-project/neos-ui-editors' ;
1110import { NeosContext } from '@neos-project/neos-ui-decorators' ;
11+ import { DragDropContextProvider } from 'react-dnd' ;
12+ import HTML5Backend from 'react-dnd-html5-backend' ;
1213
13- @withDragDropContext
1414@connect ( $transform ( {
1515 currentlyEditedPropertyName : selectors . UI . ContentCanvas . currentlyEditedPropertyName ,
1616 getNodeByContextPath : selectors . CR . Nodes . nodeByContextPath ,
@@ -117,20 +117,23 @@ manifest('Flowpack.StructuredEditing:EditorEnvelope', {}, (globalRegistry, {rout
117117 bootstrap : ( ) => null ,
118118 createInlineEditor : config => {
119119 const domNode = config . propertyDomNode ;
120+ const guestWindow = domNode . ownerDocument . defaultView ;
120121 const fusionPath = findParentFusionPath ( domNode , config . contextPath ) ;
121122 ReactDOM . render (
122123 (
123- < NeosContext . Provider value = { { configuration, globalRegistry, routes} } >
124- < InlineEditorEnvelope
125- globalRegistry = { globalRegistry }
126- routes = { routes }
127- configuration = { configuration }
128- store = { store }
129- fusionPath = { fusionPath }
130- nodeTypesRegistry = { nodeTypesRegistry }
131- { ...config }
132- />
133- </ NeosContext . Provider >
124+ < DragDropContextProvider backend = { HTML5Backend } context = { guestWindow } >
125+ < NeosContext . Provider value = { { configuration, globalRegistry, routes} } >
126+ < InlineEditorEnvelope
127+ globalRegistry = { globalRegistry }
128+ routes = { routes }
129+ configuration = { configuration }
130+ store = { store }
131+ fusionPath = { fusionPath }
132+ nodeTypesRegistry = { nodeTypesRegistry }
133+ { ...config }
134+ />
135+ </ NeosContext . Provider >
136+ </ DragDropContextProvider >
134137 ) , domNode ) ;
135138 } ,
136139 ToolbarComponent : ( ) => null
0 commit comments