@rtdui/editor
Version:
React rich text editor based on tiptap
1 lines • 1.01 kB
Source Map (JSON)
{"version":3,"file":"ControlContext.cjs","sources":["../../../src/RichTextEditor/tiptap_controls/ControlContext.ts"],"sourcesContent":["import type { Editor } from \"@tiptap/react\";\nimport { createSafeContext } from \"@rtdui/core\";\nimport type { ControlLabels } from \"./constrolLabels\";\n\ninterface ControlContext {\n\teditor: Editor;\n\tlabels: ControlLabels;\n}\n\nexport const [EditorProvider, useEditorContext] =\n\tcreateSafeContext<ControlContext>(\"Editor was not found in tree\");\n"],"names":["createSafeContext"],"mappings":";;;;;AACY,CAAC,CAAA,CAAA,CAAA,CAAA,CAAA,CAAC,cAAc,CAAE,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAgB,CAAC,CAAGA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAiB,CAAC,CAA8B,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA;;;"}