Switch editor button, onEditorChange event method & toggleToolbar method. #4584
trymeouteh
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
To create a new button
ql-toggle-editorwhich when pressed will trigger theonEditorChangeevent method.The
onEventChangemethod is an event that when triggered is used to switch the editor from a rich text editor to a HTML editor or a markdown editor, etc. The method is used to convert the text inside the editor and the converted text is returned in the method.And the
toggleToolbarmethod is used to hide all the buttons in the toolbar except for theql-toggle-editorbutton.Beta Was this translation helpful? Give feedback.
All reactions