Adding section headings via TinyMCE

jeffblancato
Tera Contributor

Hi all,

I'm looking for a way to provide Knowledge Base users with a quick and easy mechanism for adding section headings (e.g. h2, h3, h4 tags) in order to structure an article's text. A button in the TinyMCE toolbar would be far preferable to asking our users to directly edit HTML.

I'm aware that templates could be leveraged here, but I'm not prepared to start enforcing standardized section headings via templates just yet.

This table in ServiceNow's documentation mentions a 'paragraph style' drop-down box for TinyMCE v3, but no equivalent for v4 (which we're using). Is that accurate?

If so, I'd be interested in hearing how others using the TinyMCE v4 editor may have tackled this.

Thanks!

-Jeff

1 ACCEPTED SOLUTION

Tim Deniston
Mega Sage
Mega Sage

Totally possible! There is a system property where you can select the buttons that appear in the TinyMCE editor toolbar.



glide.ui.html.editor.v4.toolbar.line1


glide.ui.html.editor.v4.toolbar.line2



Add in formatselect in the Value of the property. I thought it was there by default, but maybe not.



tinymce_heading_choices.PNG


View solution in original post

3 REPLIES 3

Tim Deniston
Mega Sage
Mega Sage

Totally possible! There is a system property where you can select the buttons that appear in the TinyMCE editor toolbar.



glide.ui.html.editor.v4.toolbar.line1


glide.ui.html.editor.v4.toolbar.line2



Add in formatselect in the Value of the property. I thought it was there by default, but maybe not.



tinymce_heading_choices.PNG


MichelSamia
Tera Expert

You can also use the TinyMCE's shortcuts for that:

 

ActionPCMac
Header 1Alt+Shift+1Ctrl+Option+1
Header 2Alt+Shift+2Ctrl+Option+2
Header 3Alt+Shift+3Ctrl+Option+3
Header 4Alt+Shift+4Ctrl+Option+4
Header 5Alt+Shift+5Ctrl+Option+5
Header 6Alt+Shift+6Ctrl+Option+6
ParagraphAlt+Shift+7Ctrl+Option+7

 

Source: Keyboard shortcuts | Docs | TinyMCE

LoadFaster
Tera Contributor

Alt Shift 2 x 1000 was so much better than so many more mouse clicks, ty ty