@rhc-shared-components/rich-text-editor 0.6.4 → 0.6.5
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.
- package/dist/index.js +6 -4
- package/dist/index.modern.js +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -222,10 +222,12 @@ var RichTextEditorFormComponent = function RichTextEditorFormComponent(_ref) {
|
|
|
222
222
|
id: rest.name,
|
|
223
223
|
name: rest.name,
|
|
224
224
|
onReady: function onReady(editor) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
225
|
+
if (editor) {
|
|
226
|
+
window.ckeditorObj = window.ckeditorObj || {};
|
|
227
|
+
window.ckeditorObj[rest.name] = editor;
|
|
228
|
+
editor.setData(value);
|
|
229
|
+
editorRef.current = editor;
|
|
230
|
+
}
|
|
229
231
|
},
|
|
230
232
|
disabled: disabled || isSubmitting,
|
|
231
233
|
onChange: function onChange(data) {
|
package/dist/index.modern.js
CHANGED
|
@@ -201,10 +201,12 @@ const RichTextEditorFormComponent = _ref => {
|
|
|
201
201
|
id: rest.name,
|
|
202
202
|
name: rest.name,
|
|
203
203
|
onReady: editor => {
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
204
|
+
if (editor) {
|
|
205
|
+
window.ckeditorObj = window.ckeditorObj || {};
|
|
206
|
+
window.ckeditorObj[rest.name] = editor;
|
|
207
|
+
editor.setData(value);
|
|
208
|
+
editorRef.current = editor;
|
|
209
|
+
}
|
|
208
210
|
},
|
|
209
211
|
disabled: disabled || isSubmitting,
|
|
210
212
|
onChange: data => {
|