rme 0.1.8 → 0.1.9

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.mjs CHANGED
@@ -19876,12 +19876,14 @@ var WysiwygEditor = (props) => {
19876
19876
  );
19877
19877
  useEffect6(() => {
19878
19878
  const ext = editorDelegate.manager.getExtension(TransformerExtension);
19879
- editorDelegate.manager.view.dispatch(
19880
- editorDelegate.manager.view.state.tr.setMeta(ext.pluginKey, {
19881
- stringToDoc: editorDelegate.stringToDoc,
19882
- docToString: editorDelegate.docToString
19883
- })
19884
- );
19879
+ if (ext) {
19880
+ editorDelegate?.manager?.view?.dispatch(
19881
+ editorDelegate.manager.view.state.tr.setMeta(ext.pluginKey, {
19882
+ stringToDoc: editorDelegate.stringToDoc,
19883
+ docToString: editorDelegate.docToString
19884
+ })
19885
+ );
19886
+ }
19885
19887
  }, [editorDelegate]);
19886
19888
  let initialContent;
19887
19889
  try {