@rhc-shared-components/rich-text-editor 0.6.3 → 0.6.4

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.
@@ -1,4 +1,9 @@
1
1
  import * as React from 'react';
2
+ declare global {
3
+ interface Window {
4
+ ckeditorObj: any[];
5
+ }
6
+ }
2
7
  export interface RichTextEditorFormComponentProps {
3
8
  name: string;
4
9
  label: string;
package/dist/index.js CHANGED
@@ -222,6 +222,8 @@ var RichTextEditorFormComponent = function RichTextEditorFormComponent(_ref) {
222
222
  id: rest.name,
223
223
  name: rest.name,
224
224
  onReady: function onReady(editor) {
225
+ window.ckeditorObj = window.ckeditorObj || {};
226
+ window.ckeditorObj[rest.name] = editor;
225
227
  editor.setData(value);
226
228
  editorRef.current = editor;
227
229
  },
@@ -201,6 +201,8 @@ const RichTextEditorFormComponent = _ref => {
201
201
  id: rest.name,
202
202
  name: rest.name,
203
203
  onReady: editor => {
204
+ window.ckeditorObj = window.ckeditorObj || {};
205
+ window.ckeditorObj[rest.name] = editor;
204
206
  editor.setData(value);
205
207
  editorRef.current = editor;
206
208
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rhc-shared-components/rich-text-editor",
3
- "version": "0.6.3",
3
+ "version": "0.6.4",
4
4
  "description": "WYSWYG Editor for Red Hat Certified Apps",
5
5
  "author": "gautamkrishnar",
6
6
  "license": "MIT",