@elliemae/ds-wysiwygeditor 2.4.16 → 2.4.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -183,7 +183,7 @@ class DSWYSIWYGEditorImpl extends React__default["default"].PureComponent {
|
|
|
183
183
|
|
|
184
184
|
|
|
185
185
|
getEditor() {
|
|
186
|
-
return this.quill
|
|
186
|
+
return this.quill?.getEditor();
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
render() {
|
|
@@ -236,7 +236,7 @@ class DSWYSIWYGEditorImpl extends React__default["default"].PureComponent {
|
|
|
236
236
|
minHeight: '200px'
|
|
237
237
|
},
|
|
238
238
|
onChange: this.onChangeTextArea,
|
|
239
|
-
value: utils.formatHTML(value)
|
|
239
|
+
value: utils.formatHTML(this.quill?.getEditor()?.root?.innerHTML || value)
|
|
240
240
|
}), imagesData && imagesData.length && /*#__PURE__*/_jsx__default["default"](ImageLibraryModal, {
|
|
241
241
|
imagesData: imagesData,
|
|
242
242
|
isOpen: isImageModalOpen,
|
|
@@ -172,7 +172,7 @@ class DSWYSIWYGEditorImpl extends React.PureComponent {
|
|
|
172
172
|
|
|
173
173
|
|
|
174
174
|
getEditor() {
|
|
175
|
-
return this.quill
|
|
175
|
+
return this.quill?.getEditor();
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
render() {
|
|
@@ -225,7 +225,7 @@ class DSWYSIWYGEditorImpl extends React.PureComponent {
|
|
|
225
225
|
minHeight: '200px'
|
|
226
226
|
},
|
|
227
227
|
onChange: this.onChangeTextArea,
|
|
228
|
-
value: formatHTML(value)
|
|
228
|
+
value: formatHTML(this.quill?.getEditor()?.root?.innerHTML || value)
|
|
229
229
|
}), imagesData && imagesData.length && /*#__PURE__*/_jsx(ImageLibraryModal, {
|
|
230
230
|
imagesData: imagesData,
|
|
231
231
|
isOpen: isImageModalOpen,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elliemae/ds-wysiwygeditor",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.17",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "ICE MT - Dimsum - WYSIWYG Editor",
|
|
6
6
|
"module": "./esm/index.js",
|
|
@@ -96,14 +96,14 @@
|
|
|
96
96
|
"build": "node ../../scripts/build/build.js"
|
|
97
97
|
},
|
|
98
98
|
"dependencies": {
|
|
99
|
-
"@elliemae/ds-button": "2.4.
|
|
100
|
-
"@elliemae/ds-dropdownmenu": "2.4.
|
|
101
|
-
"@elliemae/ds-icons": "2.4.
|
|
102
|
-
"@elliemae/ds-imagelibrarymodal": "2.4.
|
|
103
|
-
"@elliemae/ds-modal": "2.4.
|
|
104
|
-
"@elliemae/ds-shared": "2.4.
|
|
105
|
-
"@elliemae/ds-tooltip": "2.4.
|
|
106
|
-
"@elliemae/ds-uploader": "2.4.
|
|
99
|
+
"@elliemae/ds-button": "2.4.17",
|
|
100
|
+
"@elliemae/ds-dropdownmenu": "2.4.17",
|
|
101
|
+
"@elliemae/ds-icons": "2.4.17",
|
|
102
|
+
"@elliemae/ds-imagelibrarymodal": "2.4.17",
|
|
103
|
+
"@elliemae/ds-modal": "2.4.17",
|
|
104
|
+
"@elliemae/ds-shared": "2.4.17",
|
|
105
|
+
"@elliemae/ds-tooltip": "2.4.17",
|
|
106
|
+
"@elliemae/ds-uploader": "2.4.17",
|
|
107
107
|
"prop-types": "~15.7.2",
|
|
108
108
|
"quill-blot-formatter": "~1.0.5",
|
|
109
109
|
"quill-delta": "4.2.2",
|