Questions tagged [slate-react]
8 questions
3
votes
0 answers
How can I add third party plugin into my Slate editor?
Hello guys I'm currently building my personal blog with SlateJs.
I want to adopt some useful third-party plugins for the editor
but I can't get it working.
The code below is from the official Slate(v0.66.1) document and I built my editor with this…

Simon Jo
- 65
- 1
- 5
2
votes
0 answers
Convert value of old format to new format, react slate
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 conversion? The old data stored in the db is not…

Bhuwan Adhikari
- 879
- 1
- 9
- 21
1
vote
0 answers
Slate js path is null error when pasting html
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 the code are as follows:
const withHtml = (editor)…

Ayan
- 2,738
- 3
- 35
- 76
0
votes
0 answers
How to render JSON output from Rich-text-editor like (plate) in react js
In a sample project , i want to use a rich-text editor using (plate, slate, tiptap or any other popular text editor).
from plate editor getting output in form of Json like this
[
{
type: 'p',
children: [
{
text:
'This is editable plain text with…

MURARI Yadav
- 240
- 3
- 11
0
votes
0 answers
Unordered list is populating as lines instead of bulletin point in slate editor
I implemented slate editor in my react app using the slate-react package and when clicking the unordered list in the toolbar, the contents are populated between lines instead of bulletin points.
Check the image of the issue:
I am not getting any…

Abhishek Kini
- 11
- 2
0
votes
1 answer
ctrl + z, ctrl + y not working in slate.js editor
ctrl z not working in my slateJs editor, but it is working fine in slate example

Aman Ghanghoriya
- 169
- 3
- 10
0
votes
0 answers
slate not working properly in shopify app
hey all Im trying to use slate and slate-react in my shopify app project but it is throwing me an error (cannot read properties of null useRef from slate component)
have tried exact same thing in my local project (cra) and its fine and works!
what…

pooya dehghan
- 1
- 1
-1
votes
1 answer
TS error when passing myDecorator function as decorate prop to React Slate
I am getting the following TS error:
(property) decorate?: ((entry: NodeEntry) => BaseRange[]) | undefined
Type '([node, path]: [node: any, path: any]) => { anchor: { path: any; offset: string | number; }; focus: { path: any; offset: string;…

Petar Ivcec
- 672
- 1
- 8
- 23