JiHong88 / suneditor

Pure javascript based WYSIWYG html editor, with no dependencies.
http://suneditor.com
MIT License
1.77k stars 316 forks source link

how do I define the "textStyle" item "code" as a separate toolbar button? #1435

Open rozek opened 3 months ago

rozek commented 3 months ago

The title mentions it: I do not need all entries of the toolbar "textStyles" dropdown - just the "code".

How do I take that entry and add it as a separate button to the toolbar?