Skip to content
Advertisement

Tag: slatejs

How to Inject new element in SlateJS Editor DOM

How to inject new react component/element into SlateJS Editor DOM? I want to inject a new element within the SlateJS editor’s DOM, not above or below. Most of SlateJS’s examples would transform nodes, but it doesn’t allow for direct injecting into the SlateJS DOM. That is within the editor context. EG Right now, you can add a new react component

Cant select text, cant position caret in Firefox – Slatejs

Description Slatejs editor only in Firefox fails with text selection and caret positioning (by mouse). It always selects position before first character (path[0] offset[0]). You can still use the keyboard to select text and position caret. Recording Firefox: Chrome: Expectation It should select text and position caret as it does in other browsers. Environment Slate Version: 0.63.0 Operating System: Windows

Advertisement