Toolbar - choose type of heading to display in style option
See original GitHub issueHi everyone, awesome job here. I’m playing with the editor but cannot find a way to tell the toolbar option I want only the h1
, h2
and code
formatting. Is there a way? Am I doing something wrong?
Tried like this:
... toolbar: [
['mybutton', ['hello']],
['style', ['h1', 'h2', 'code']], // <--- here
['font', ['strikethrough', 'superscript', 'subscript', 'bold', 'italic', 'underline']],
['para', ['ul', 'ol', 'paragraph']]
] ...
But no luck, any idea?
Issue Analytics
- State:
- Created 6 years ago
- Comments:5
Top Results From Across the Web
Add and remove styles from the Quick Styles gallery
On the Home tab, click the Styles Dialog Box Launcher. · In the lower-right corner of the Styles pane, click Options. · Under...
Read more >Display Document Styles - Suzanne S. Barnhill
Apply Styles toolbar. The keyboard shortcut Ctrl+Shift+S will open the Apply Styles toolbar. This small floating toolbar can be dragged anywhere on your...
Read more >Displaying the Styles You Want Displayed - Word Ribbon Tips
Using the Select Styles to Show drop-down list choose In Current Document. Click OK. The styles that appear in the Styles pane are...
Read more >How to Display All Available Styles in a Word Document ...
By default, only some of the available styles (including heading styles) are displayed in the Home tab in the Ribbon. There are 9...
Read more >How to Create a Custom Heading Style in Microsoft Word
Right-click the text, and then select Styles from the Mini toolbar. Styles button in the Mini toolbar in Word 365. Figure 5. Styles...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This does work for me:
toolbar: [ [‘style’, [‘style’, ‘code’]], ] , styleTags: [‘h1’, ‘h2’]
‘style’ is not only the name of the group but also a button with available tags dropdown