You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! Please forgive me if that's documented somewhere but i was not able to locate it - is that possible to, say, render editor.js instance with enforced set of blocks and with disabling a possiblity to remove them or add other ones? Let's say i want to present user with an editor with first block being gallery block and second block being paragraph. I need to make it able for user to add multiple paragraph blocks but it always has to be - fallery first, paragraphs next.
I can imagine doing that with onChange handler but there is still a case when there are Move Up / Move down tunes available for first paragraph block. Also, after clicking "+" next to any paragraph or the gallery, user will be able to add another gallery anywhere he wants which also not an option for me.
For now, as a walkaround, I'm rendering two instances of editor, first one having only gallery enabled and second having only paragraph(s) enabled. Is there any smarter way of doing that? :) Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hey! Please forgive me if that's documented somewhere but i was not able to locate it - is that possible to, say, render editor.js instance with enforced set of blocks and with disabling a possiblity to remove them or add other ones? Let's say i want to present user with an editor with first block being gallery block and second block being paragraph. I need to make it able for user to add multiple paragraph blocks but it always has to be - fallery first, paragraphs next.
I can imagine doing that with onChange handler but there is still a case when there are Move Up / Move down tunes available for first paragraph block. Also, after clicking "+" next to any paragraph or the gallery, user will be able to add another gallery anywhere he wants which also not an option for me.
For now, as a walkaround, I'm rendering two instances of editor, first one having only gallery enabled and second having only paragraph(s) enabled. Is there any smarter way of doing that? :) Thanks!
Beta Was this translation helpful? Give feedback.
All reactions