Skip to main content

All Questions

Tagged with or
Filter by
Sorted by
Tagged with
1 vote
1 answer
219 views

For example, I will have an editor.children layout like so: [ { type: 'paragraph', children: [ { text: 'A line of text!', }, ], }, { ...
Gavin Baxter's user avatar
1 vote
1 answer
2k views

I'm trying to make it so that when I click on a button, I can get an html string. Generally, this rich text editor will be inside the React-Hook-Form and when the form is submitted, it will save the ...
Eskalifer's user avatar
2 votes
0 answers
111 views

I am migrating to newer version of react slate editor. But the data format of the new version is different than old one(0.47.x). Is there any function given by slate-react or slate itself for the ...
Bhuwan Adhikari's user avatar
-1 votes
1 answer
91 views

I am getting the following TS error: (property) decorate?: ((entry: NodeEntry<Node>) => BaseRange[]) | undefined Type '([node, path]: [node: any, path: any]) => { anchor: { path: any; ...
Petar Ivcec's user avatar
1 vote
1 answer
681 views

ctrl z not working in my slateJs editor, but it is working fine in slate example <Slate editor={editor} value={initialValue}> <Editable renderElement={renderElement} ...
Aman Ghanghoriya's user avatar
0 votes
1 answer
693 views

I am using slate.js and when I delete an image by pressing backspace the image is removed from state and no longer exists. However, with the image still being stored on the server. I would like to ...
coder5666666666's user avatar
1 vote
0 answers
510 views

I have upgraded my slate version to 0.66.5 and slate-react to 0.68.0 but now I am ruuning into the following issue: This issue occurs when I paste html content from third party sources. Snippets of ...
Ayan's user avatar
  • 2,898
0 votes
1 answer
914 views

I'm trying to add a new block right after the block where the cursor is located / where I click on a button. My questions are: How can I determine the path for the current block? Which method can I ...
Thierry Templier's user avatar
4 votes
3 answers
6k views

I'm trying to move the cursor in react slate-editor. I tried to do it in 2 ways. First: // This code saving key in offset in variables const nativeSelection = this.getSelectedText(); const nativeRange ...
ohadinho's user avatar
  • 7,172
3 votes
1 answer
2k views

I have created an editor from composing a couple of slates examples together, namely https://www.slatejs.org/examples/richtext and https://www.slatejs.org/examples/links However when I added these ...
Joe Methven's user avatar