Skip to content

Commit

Permalink
BUGFIX: 3839 fix initialized state getting lost after replaceWith
Browse files Browse the repository at this point in the history
  • Loading branch information
mhsdesign committed Aug 26, 2024
1 parent 714390b commit be5ca0f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/neos-ui-ckeditor5-bindings/src/ckEditorApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ export const createEditor = store => async options => {

if (!hasMarkupDerivation) {
propertyDomNode.replaceWith(clonedTemporaryPropertyDomNode)
clonedTemporaryPropertyDomNode.dataset.neosInlineEditorIsInitialized = true
} else {
const openMarkupDerivationDialogOnClickInText = () => {
let cleanupSubscription = null;
Expand All @@ -79,6 +80,7 @@ export const createEditor = store => async options => {

onChange(cleanupContentBeforeCommit(editor.getData()))
propertyDomNode.replaceWith(clonedTemporaryPropertyDomNode)
clonedTemporaryPropertyDomNode.dataset.neosInlineEditorIsInitialized = true

editor.editing.view.focus();
break;
Expand Down

0 comments on commit be5ca0f

Please sign in to comment.