|
@@ -254,7 +254,6 @@ export const textWysiwyg = ({
|
|
const initialSelectionStart = editable.selectionStart;
|
|
const initialSelectionStart = editable.selectionStart;
|
|
const initialSelectionEnd = editable.selectionEnd;
|
|
const initialSelectionEnd = editable.selectionEnd;
|
|
const initialLength = editable.value.length;
|
|
const initialLength = editable.value.length;
|
|
- editable.value = updatedTextElement.originalText;
|
|
|
|
|
|
|
|
// restore cursor position after value updated so it doesn't
|
|
// restore cursor position after value updated so it doesn't
|
|
// go to the end of text when container auto expanded
|
|
// go to the end of text when container auto expanded
|
|
@@ -358,6 +357,7 @@ export const textWysiwyg = ({
|
|
overflowWrap: "break-word",
|
|
overflowWrap: "break-word",
|
|
boxSizing: "content-box",
|
|
boxSizing: "content-box",
|
|
});
|
|
});
|
|
|
|
+ editable.value = element.originalText;
|
|
updateWysiwygStyle();
|
|
updateWysiwygStyle();
|
|
|
|
|
|
if (onChange) {
|
|
if (onChange) {
|