Skip to content

Commit c647a74

Browse files
Rubell1ond.ablaevdanstarns
authored
Fixed custom asset manager initialization (#19)
* Fixed custom asset manager initialization * formatting --------- Co-authored-by: d.ablaev <d.ablaev@abr.tech> Co-authored-by: Daniel Starns <danielstarns@hotmail.com>
1 parent c5ea71c commit c647a74

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

packages/grapesjs-react/src/EditorInstance.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -105,36 +105,36 @@ const EditorInstance = memo(function ({
105105
...pluginOptions
106106
},
107107
modal: {
108-
...options.modal,
109-
custom: !!editorOptions.customModal
108+
custom: !!editorOptions.customModal,
109+
...options.modal
110110
},
111111
assetManager: {
112-
...options.assetManager,
113-
custom: !!editorOptions.customAssets
112+
custom: !!editorOptions.customAssets,
113+
...options.assetManager
114114
},
115115
styleManager: {
116-
...options.styleManager,
117-
custom: !!editorOptions.customStyles
116+
custom: !!editorOptions.customStyles,
117+
...options.styleManager
118118
},
119119
blockManager: {
120-
...options.blockManager,
121-
custom: !!editorOptions.customBlocks
120+
custom: !!editorOptions.customBlocks,
121+
...options.blockManager
122122
},
123123
richTextEditor: {
124-
...options.richTextEditor,
125-
custom: !!editorOptions.customRte
124+
custom: !!editorOptions.customRte,
125+
...options.richTextEditor
126126
},
127127
layerManager: {
128-
...options.layerManager,
129-
custom: !!editorOptions.customLayers
128+
custom: !!editorOptions.customLayers,
129+
...options.layerManager
130130
},
131131
traitManager: {
132-
...options.traitManager,
133-
custom: !!editorOptions.customTraits
132+
custom: !!editorOptions.customTraits,
133+
...options.traitManager
134134
},
135135
selectorManager: {
136-
...options.selectorManager,
137-
custom: !!editorOptions.customSelectors
136+
custom: !!editorOptions.customSelectors,
137+
...options.selectorManager
138138
},
139139
container: canvasContainer || defaultContainer,
140140
customUI: !!canvasContainer,

0 commit comments

Comments
 (0)