@elliemae/ds-wysiwygeditor 2.4.15 → 2.4.18

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.getEditor();
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.getEditor();
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.15",
3
+ "version": "2.4.18",
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.15",
100
- "@elliemae/ds-dropdownmenu": "2.4.15",
101
- "@elliemae/ds-icons": "2.4.15",
102
- "@elliemae/ds-imagelibrarymodal": "2.4.15",
103
- "@elliemae/ds-modal": "2.4.15",
104
- "@elliemae/ds-shared": "2.4.15",
105
- "@elliemae/ds-tooltip": "2.4.15",
106
- "@elliemae/ds-uploader": "2.4.15",
99
+ "@elliemae/ds-button": "2.4.18",
100
+ "@elliemae/ds-dropdownmenu": "2.4.18",
101
+ "@elliemae/ds-icons": "2.4.18",
102
+ "@elliemae/ds-imagelibrarymodal": "2.4.18",
103
+ "@elliemae/ds-modal": "2.4.18",
104
+ "@elliemae/ds-shared": "2.4.18",
105
+ "@elliemae/ds-tooltip": "2.4.18",
106
+ "@elliemae/ds-uploader": "2.4.18",
107
107
  "prop-types": "~15.7.2",
108
108
  "quill-blot-formatter": "~1.0.5",
109
109
  "quill-delta": "4.2.2",