Closed timothysantos closed 2 months ago
I noticed that initialContent can't accept JSON when tiptap editor does. I have a simple change that should work and we tested it too. With this change we should be able to use the code below:
const editor = useEditorBridge({ autofocus: true, avoidIosKeyboard: true, initialContent: { type: "doc", content: [ { type: "paragraph", content: [ { type: "text", text: "Leave a note ", }, { type: "text", marks: [ { type: "bold", }, ], text: "—text in bold", }, ], }, ], }, // bridgeExtensions: [...TenTapStartKit, CodeBridge.configureCSS(editorCustomCSS)], // theme: customTheme, })
Can you open a PR?
PR here: https://github.com/10play/10tap-editor/pull/124
I noticed that initialContent can't accept JSON when tiptap editor does. I have a simple change that should work and we tested it too. With this change we should be able to use the code below: