<h2>Configuring the TinyMCE toolbar via Dictionary attributes</h2><br/><div style="overflow-x:auto"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head><meta content="text/html; charset=UTF-8" /><meta name="copyright" content="(C) Copyright 2026" /><meta name="DC.rights.owner" content="(C) Copyright 2026" /><meta name="generator" content="DITA-OT" /><meta name="DC.type" content="concept" /><meta name="DC.title" content="Configuring the TinyMCE toolbar via Dictionary attributes" /><meta name="abstract" content="You can configure the TinyMCE HTML editor for a specific table by configuring the dictionary attributes." /><meta name="description" content="You can configure the TinyMCE HTML editor for a specific table by configuring the dictionary attributes." /><meta name="DC.subject" content=", HTML fields, TinyMCE deprecated tags, TinyMCE HTML deprecated tags" /><meta name="keywords" content=", HTML fields, TinyMCE deprecated tags, TinyMCE HTML deprecated tags" /><meta name="DC.relation" scheme="URI" content="../../../administer/form-administration/task/t_ConfigTinyMCEHTMLFieldEditor.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/intro-now-platform-landing.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/config-now-platform-core-features.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/general/concept/now-platform-forms-fields-lists.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/reference-pages/concept/c_IntroductionToFields.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/reference-pages/reference/r_FieldTypes.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/form-administration/task/configuring-system-properties-for-tinymce-html-editor.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/form-administration/task/configuring-plugins-for-TinyMCE-HTML-editor.html" /><meta name="DC.relation" scheme="URI" content="../../../administer/form-administration/task/t_ConfigureTheTinyMCEHTMLToolbar.html" /><meta name="DC.creator" content="ServiceNow" /><meta name="DC.date.created" content="2023-08-03" /><meta name="DC.date.modified" content="2024-08-01" /><meta name="DC.format" content="XHTML" /><meta name="DC.identifier" content="tinymce" /><link rel="stylesheet" type="text/css" href="../../../CSS/commonltr.css" /><title>Configuring the TinyMCE toolbar via Dictionary attributes</title></head><body> <div class="nested0" id="tinymce"> <h1 class="title topictitle1" id="ariaid-title1">Configuring the TinyMCE toolbar via Dictionary attributes</h1> <div class="body conbody"><p class="shortdesc"> You can configure the TinyMCE HTML editor for a specific table by configuring the dictionary attributes.</p> <p class="p">For information on configuring the toolbar, see <a class="xref" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/workspace/concept/tinymce.html#set-dictionary-attributes-workspace" title="Set the toolbar items in your system properties to enable or disable throughout Workspace.">Change the TinyMCE default toolbar</a>. For information on configuring specific plugins, see <a class="xref" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/workspace/concept/tinymce.html#set-attributes-tinymce-dictionary" title="Set the attributes in the TinyMCE dictionary to enable or disable plugins in a specific HTML field.">Change TinyMCE plugins for a specific table</a>. For information on configuring the default height of an HTML field, see <a class="xref" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/workspace/concept/tinymce.html#configure-height-tinymce" title="Change the default height of a specific HTML field to expand the size of a journal field.">Change the default height of an HTML field</a>. For information on configuring the default font size in an HTML field, see <a class="xref" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/workspace/concept/tinymce.html#configure-font-size-tinymce" title="Change the default font size of a specific HTML field to use a standard font size across forms.">Change the default font size of an HTML field</a>. For information on configuring the menu bar on the TinyMCE HTML editor, see <a class="xref" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/workspace/concept/tinymce.html#customize-the-text-menu-bar-in-tinymce" title="You can enable the menu bar on the TinyMCE HTML editor in both CoreUI and workspaces. When enabled, the menu bar appears on the top of the HTML editor which can be used to create, edit and format content. By default, the menu bar is inactive. You can enable it for a specific table via dictionary attribute configuration.">Configure the menu bar on the TinyMCE HTML editor</a>.</p> </div> <div class="related-links"> <div class="familylinks"> <div class="parentlink"><strong>Parent Topic:</strong> <a class="link" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/form-administration/task/t_ConfigTinyMCEHTMLFieldEditor.html" title="Configure HTML fields to use TinyMCE or the legacy htmlArea editor. The TinyMCE editor provides better stability and more editing functions than the legacy htmlArea editor.">Configure a field editor for the HTML field</a></div> </div> <div class="linklist relinfo relconcepts"><strong>Related concepts</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/form-administration/task/configuring-plugins-for-TinyMCE-HTML-editor.html" title="The TinyMCE HTML editor is a powerful, flexible, and customizable rich text editor. You can configure and extend the editor by using plugins.">Configuring plugins for the TinyMCE HTML editor</a></li></ul></div> <div class="linklist relinfo reltasks"><strong>Related tasks</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/form-administration/task/t_ConfigureTheTinyMCEHTMLToolbar.html" title="Configure which buttons are available on the HTML toolbar.">Configure the HTML toolbar</a></li></ul></div> <div class="linklist relinfo relref"><strong>Related reference</strong><br /> <ul class="linklist"><li class="linklist"><a class="link" href="https://docs.servicenow.com/bundle/xanadu-platform-administration/page/administer/form-administration/task/configuring-system-properties-for-tinymce-html-editor.html" title="There are multiple system properties that are used to configure the behaviour of the HTML editor field type. Learn about the system properties available in the TinyMCE rich text editor.">Configuring system properties for TinyMCE HTML editor</a></li></ul></div> </div><div class="topic task nested1" id="set-dictionary-attributes-workspace"> <h2 class="title topictitle2" id="ariaid-title2">Change the TinyMCE default toolbar</h2> <div class="body taskbody"><p class="shortdesc">Set the toolbar items in your system properties to enable or disable throughout <span class="ph">Workspace</span>.</p> <div class="section prereq p">Role required: admin</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System Properties</span> > <span class="ph uicontrol">UI Properties</span></span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Update the <span class="ph uicontrol">Configures the editing toolbar for HTML fields(TinyMCE v6.8.2)</span> (glide.ui.html.editor.toolbar) property to add or remove buttons for the toolbar.</span> <div class="itemgroup info"> <div class="note"><span class="notetitle">Note:</span> Use a vertical bar ("|") to add a section separator.</div> <div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="set-dictionary-attributes-workspace__table_gmc_gd4_jyb" class="table" frame="border" border="1" rules="all"><colgroup><col style="width:50%" /><col style="width:50%" /></colgroup><thead class="thead" style="text-align:left;"><tr class="row"><th class="entry cellrowborder" style="vertical-align:top;" id="d483623e296">Type</th><th class="entry cellrowborder" style="vertical-align:top;" id="d483623e299">Buttons</th></tr></thead><tbody class="tbody"><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d483623e296 ">Default buttons</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d483623e299 "><span class="keyword parmname">bold italic underline undo redo | fontfamily fontsize table | forecolor backcolor link unlink | image media code | alignleft aligncenter alignright | bullist numlist fullscreen</span></td></tr><tr class="row"><td class="entry cellrowborder" style="vertical-align:top;" headers="d483623e296 ">Available buttons</td><td class="entry cellrowborder" style="vertical-align:top;" headers="d483623e299 "><span class="keyword parmname">newdocument, bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, blocks, fontfamily, fontsize, tablecontrols, cut, copy, paste, pastetext, pasteword, search, replace, bullist, numlist, outdent, indent, blockquote, undo, redo, link, unlink, image, cleanup, code, forecolor, backcolor, removeformat, hr, visualaid, sub, sup, charmap, media, preview, fullscreen, accordion</span></td></tr></tbody></table> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Save</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="change-tinymce-toolbar-specific-table"> <h2 class="title topictitle2" id="ariaid-title3">Change the TinyMCE toolbar for a specific table</h2> <div class="body taskbody"><p class="shortdesc">Set the attributes in the TinyMCE dictionary to determine which TinyMCE attributes show in a specific table.</p> <div class="section prereq p">Role required: admin</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to a record with an HTML-type field that you want to change.</span> <div class="itemgroup info">For example, select an incident, problem, or knowledge record.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the field label (for example, Article body) and select <span class="ph uicontrol">Configure Dictionary</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Related Links section, select <span class="ph uicontrol">Advanced View</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Attributes</span> field, input editor.toolbar= followed by the desired toolbar buttons.</span> <div class="itemgroup info">For example, editor.toolbar=blocks|bold italic underline strikethrough blockquote subscript superscript removeformat| bullist numlist outdent indent|undo redo|table hr|link unlink|image media code|visualblocks preview fullscreen. <div class="note"><span class="notetitle">Note:</span> <ul class="ul" id="change-tinymce-toolbar-specific-table__ul_ofn_t35_jyb"><li class="li">Include all the toolbar items that you want displayed, not just the toolbar items you want to add.</li><li class="li">The configurations made to a field's Attribute field on the associated Dictionary record overrides the value of the System Property glide.ui.html.editor.toolbar.</li><li class="li">Multiple attributes, such as height, toolbar buttons, and toolbar plugins, can be combined within the Attributes field. For example, editor.height=300,editor.plugins=table colorpicker textcolor link image media codemirror lists advlist fullscreen charmap directionality emoticons hr insertdatetime nonbreaking pagebreak print searchreplace wordcount anchor codesample visualblocks visualchars compat3x autolink align_listitems,editor.toolbar= fontfamily fontsize | bold italic underline strikethrough forecolor backcolor pastetext removeformat | blocks searchreplace undo redo | bullist numlist outdent indent alignleft aligncenter alignright | tableofcontents table link unlink image media codesample | code fullscreen.</li></ul> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="set-attributes-tinymce-dictionary"> <h2 class="title topictitle2" id="ariaid-title4">Change TinyMCE plugins for a specific table</h2> <div class="body taskbody"><p class="shortdesc">Set the attributes in the TinyMCE dictionary to enable or disable plugins in a specific HTML field.</p> <div class="section prereq p">Role required: admin</div> <ol class="ol steps" id="set-attributes-tinymce-dictionary__steps_of5_mhw_3lb"><li class="li step stepexpand"> <span class="ph cmd">Navigate to a record with an HTML-type field that you want to change.</span> <div class="itemgroup info">For example, select an incident, problem, or knowledge record.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the field label (for example, Article body) and select <span class="ph uicontrol">Configure Dictionary</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Related Links section, select <span class="ph uicontrol">Advanced View</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Attributes</span> field, input editor.plugins= followed by the desired plugins, separated with a space.</span> <div class="itemgroup info"> <p class="p">For example, editor.plugins=table colorpicker textcolor link image media codemirror lists advlist fullscreen charmap directionality emoticons hr insertdatetime nonbreaking pagebreak print searchreplace wordcount anchor tableofcontents codesample visualblocks visualchars compat3x autolink align_listitems.</p> <div class="note"><span class="notetitle">Note:</span> <ul class="ul" id="set-attributes-tinymce-dictionary__ul_msy_zgw_3lb"><li class="li">Include all the toolbar items that you want displayed, not just the toolbar items you want to add.</li><li class="li">The configurations made to a field's Attribute field on the associated Dictionary record overrides the value of the System Property glide.ui.html.editor.toolbar.</li><li class="li">Allowed plugins include: advlist align_listitems anchor autolink autoresize bbcode charmap codemirror codesample colorpicker directionality emoticons fullscreen hr image insertdatetime link lists media nonbreaking pagebreak preview print readonlynoborder searchreplace table textcolor tableofcontents visualblocks visualchars wordcount</li><li class="li">Multiple attributes, such as height, toolbar buttons, and toolbar plugins, can be combined within the Attributes field. For example, editor.height=300,editor.plugins=table colorpicker textcolor link image media codemirror lists advlist fullscreen charmap directionality emoticons hr insertdatetime nonbreaking pagebreak print searchreplace wordcount anchor codesample visualblocks visualchars compat3x autolink align_listitems,editor.toolbar= fontfamily fontsize | bold italic underline strikethrough forecolor backcolor pastetext removeformat | blocks searchreplace undo redo | bullist numlist outdent indent alignleft aligncenter alignright | tableofcontents table link unlink image media codesample | code fullscreen.</li></ul> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="configure-height-tinymce"> <h2 class="title topictitle2" id="ariaid-title5">Change the default height of an HTML field</h2> <div class="body taskbody"><p class="shortdesc">Change the default height of a specific HTML field to expand the size of a journal field.</p> <div class="section prereq p">Role required: admin</div> <div class="section context" id="configure-height-tinymce__context_zyg_nj4_flb"> <p class="p">HTML field height is configured per HTML field.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to a record with an HTML-type field that you want to change.</span> <div class="itemgroup info">For example, select an incident, problem, or knowledge record.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the field label (for example, Article body) and select <span class="ph uicontrol">Configure Dictionary</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Related Links section, select <span class="ph uicontrol">Advanced View</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Attributes</span> field, enter editor.height=X, where X is the desired height.</span> <div class="itemgroup info">For example, editor.height=250 <div class="note"><span class="notetitle">Note:</span> <p class="p">HTML fields can range from 72 to 2000. HTML fields are by default 64.</p> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">To configure the height of form fields dynamically as the text line increases rather than providing a specific height, complete the following steps:</span> <ol type="a" class="ol substeps"><li class="li substep substepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System Properties</span> > <span class="ph uicontrol">All Properties</span></span></span> </li><li class="li substep substepexpand"> <span class="ph cmd">In the search bar, enter glide.ui.html.editor.enabled_plugins and select the property.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">In the value field, add autoresize.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> <div class="itemgroup stepresult">The autoresize plugin is active.</div> </li></ol> </li></ol> </div> </div> <div class="topic task nested1" id="configure-font-size-tinymce"> <h2 class="title topictitle2" id="ariaid-title6">Change the default font size of an HTML field</h2> <div class="body taskbody"><p class="shortdesc">Change the default font size of a specific HTML field to use a standard font size across forms.</p> <div class="section prereq p">Role required: admin</div> <div class="section context" id="configure-font-size-tinymce__context_jgp_nb4_hvb"> <p class="p">HTML font size is configured per HTML field.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to a record with an HTML-type field that you want to change.</span> <div class="itemgroup info">For example, select an incident, problem, or knowledge record.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the field label (for example, Article body) and select <span class="ph uicontrol">Configure Dictionary</span>.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Select the Default Value tab.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Default value</span> field, enter <p style="font-size:X;"></p>, where X is the default value.</span> <div class="itemgroup info">For example:<ul class="ul" id="configure-font-size-tinymce__ul_pns_pc4_hvb"><li class="li">To set the font to large, enter <p style="font-size:large;"></p></li><li class="li">To set the size to 10, enter <p style="font-size:10pt;"></p></li></ul> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="tinymce-configure-html-code"> <h2 class="title topictitle2" id="ariaid-title7">Configure TinyMCE to allow deprecated tags</h2> <div class="body taskbody"><p class="shortdesc">You can set a dictionary attribute on a TinyMCE field to allow the use of deprecated HTML tags, such as <b> and <i>. By default, TinyMCE uses the <strong> and <em> tags for bold and italic formatting.</p> <div class="section prereq p">Role required: personalize_dictionary or admin</div> <div class="section context"> <p class="p">After you set the dictionary attribute, use code view to manually enter deprecated tags. The editor does not validate any tags you enter manually, for example, if you type an incorrect character.</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to the form with an HTML field that uses TinyMCE.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the HTML field label and select <span class="ph uicontrol">Configure dictionary</span>.</span> <div class="itemgroup info"> <div class="p"><div class="fig fignone" id="tinymce-configure-html-code__fig_hbf_x1s_pw"> <img class="image" id="tinymce-configure-html-code__image_jsn_ljs_pw" src="../../form-administration/image/HTMLConfigureDictionary.png" alt="Configure dictionary" /> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Attributes</span> field, enter tinymce_allow_all=true, separated by a comma if needed.</span> <div class="itemgroup info"> <p class="p">Dictionary entry attributes can only be added to when the dictionary entry form is in advanced view, as they are not shown in default view.</p> <div class="p"> <div class="fig fignone" id="tinymce-configure-html-code__fig_fnc_lms_pw"> <img class="image" id="tinymce-configure-html-code__image_ln5_mms_pw" src="../../form-administration/image/TinyMCEAllowAll.png" alt="Updated attribute field" /> </div> </div> <p class="p">If other attributes are already listed, use a comma as a separator.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="tinymce-allow-javascript"> <h2 class="title topictitle2" id="ariaid-title8">Configure TinyMCE to allow JavaScript in URLs</h2> <div class="body taskbody"><p class="shortdesc">You can set a dictionary attribute on a TinyMCE field to allow the use of JavaScript in a URL.</p> <div class="section prereq p">Role required: personalize_dictionary or admin</div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to the form with an HTML field that uses TinyMCE.</span> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the HTML field label and select <span class="ph uicontrol">Configure dictionary</span>.</span> <div class="itemgroup info"> <div class="p"><div class="fig fignone" id="tinymce-allow-javascript__fig_hbf_x1s_pw"> <img class="image" id="tinymce-allow-javascript__image_jsn_ljs_pw" src="../../form-administration/image/HTMLConfigureDictionary.png" alt="Configure dictionary" /> </div> </div> </div> </li><li class="li step stepexpand"> <span class="ph cmd">In the <span class="ph uicontrol">Attributes</span> field, enter tinymce_allow_script_urls=true, separated by a comma if needed.</span> <div class="itemgroup info"> <p class="p">Dictionary entry attributes can only be added to when the dictionary entry form is in advanced view, as they are not shown in default view.</p> <p class="p"><img class="image" id="tinymce-allow-javascript__image_ntg_xpd_y1c" src="../../form-administration/image/TinyMCEAllowAll.png" alt="Dictionary entry in Advanced view" /></p> <p class="p">If other attributes are already listed, use a comma as a separator.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">Update</span>.</span> </li></ol> </div> </div> <div class="topic task nested1" id="customize-the-text-menu-bar-in-tinymce"> <h2 class="title topictitle2" id="ariaid-title9">Configure the menu bar on the TinyMCE HTML editor</h2> <div class="body taskbody"><p class="shortdesc">You can enable the menu bar on the TinyMCE HTML editor in both CoreUI and workspaces. When enabled, the menu bar appears on the top of the HTML editor which can be used to create, edit and format content. By default, the menu bar is inactive. You can enable it for a specific table via dictionary attribute configuration.</p> <div class="section prereq p"> <p class="p">Role required: admin</p> </div> <ol class="ol steps"><li class="li step stepexpand"> <span class="ph cmd">Navigate to a record with an HTML-type field that you want to change.</span> <div class="itemgroup info">For example, select an incident, problem, or knowledge record.</div> </li><li class="li step stepexpand"> <span class="ph cmd">Right-click the field label and select <span class="ph uicontrol">Configure Dictionary</span>.</span> <div class="itemgroup info"> <p class="p"><img class="image" id="customize-the-text-menu-bar-in-tinymce__image_py1_nm1_2cc" src="../../../use/using-forms/image/TinyMCEV6-configure-dictionary.png" alt="TinyMCE v6.8.3 Configure dictionary drop-down menu" /></p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">In the Related Links section, select Advanced View.</span> </li><li class="li step stepexpand"> <span class="ph cmd">In the Attributes field, input editor.config=new TinymceConfigScript().getConfiguration().</span> <div class="itemgroup info"> <p class="p"><img class="image" id="customize-the-text-menu-bar-in-tinymce__image_mzk_sn1_2cc" src="../../../use/using-forms/image/TinyMCEV6-dictionary-entry-form.png" alt="TinyMCE v6.8.3 Dictionary entry form" /></p> <p class="p">This <span class="ph uicontrol">editor.config</span> attribute points to a script: <span class="ph uicontrol">TinymceConfigScript()</span>.</p> </div> </li><li class="li step stepexpand"> <span class="ph cmd">Access the <span class="ph uicontrol">TinymceConfigScript</span>.</span> <ol type="a" class="ol substeps" id="customize-the-text-menu-bar-in-tinymce__substeps_r5l_x41_2cc"><li class="li substep substepexpand"> <span class="ph cmd">Navigate to <span class="ph menucascade"><span class="ph uicontrol">All</span> > <span class="ph uicontrol">System Definition</span> > <span class="ph uicontrol">Script Includes</span></span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Enter TinymceConfigScript in the search bar near the top of the form, and select <span class="ph uicontrol">enter</span> or <span class="ph uicontrol">return</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">Select <span class="ph uicontrol">TinymceConfigScript</span>.</span> <div class="itemgroup stepresult"> <p class="p">You will be able to see the following script by default.</p> <p class="p"><img class="image" id="customize-the-text-menu-bar-in-tinymce__image_k5p_4p1_2cc" src="../../../use/using-forms/image/TinyMCEV6-script-include-tinymceconfigscript.png" alt="Script Include for TinymceConfigScript in Buildtools1" /></p> <div class="p"> <pre class="pre codeblock"><code>var TinymceConfigScript = Class.create(); TinymceConfigScript.prototype = { initialize: function() { }, setTinymceConfig: function() { var tinyConfig = { menubar: 'edit format', menu: { file: { title: 'File', items: 'importword exportpdf exportword | print | deleteallconversations' }, edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall | searchreplace' }, view: { title: 'View', items: 'code revisionhistory | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments' } }, style_formats: [ { title: 'Headings', items: [ { title: 'Heading 1', format: 'h1' }, { title: 'Heading 2', format: 'h2' }, { title: 'Heading 3', format: 'h3' }, { title: 'Heading 4', format: 'h4' }, { title: 'Heading 5', format: 'h5' }, { title: 'Heading 6', format: 'h6' } ]}, { title: 'Inline', items: [ { title: 'Bold', format: 'bold' }, { title: 'Italic', format: 'italic' }, { title: 'Underline', format: 'underline' }, { title: 'Strikethrough', format: 'strikethrough' }, { title: 'Superscript', format: 'superscript' }, { title: 'Subscript', format: 'subscript' }, { title: 'Code', format: 'code' } ]}, { title: 'Blocks', items: [ { title: 'Paragraph', format: 'p' }, { title: 'Blockquote', format: 'blockquote' }, { title: 'Div', format: 'div' }, { title: 'Pre', format: 'pre' } ]}, { title: 'Align', items: [ { title: 'Left', format: 'alignleft' }, { title: 'Center', format: 'aligncenter' }, { title: 'Right', format: 'alignright' }, { title: 'Justify', format: 'alignjustify' } ]} ] }; return tinyConfig; }, getConfiguration: function() { var config = this.setTinymceConfig(); answer = JSON.parse(JSON.stringify(config)); }, type: 'TinymceConfigScript' };</code></pre> </div> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">Set the menu bar attribute to <span class="ph uicontrol">true</span> in the script to enable the menu bar.</span> <div class="itemgroup info">This will enable all the options “File” “Edit” “View” “Insert” “Format” “Table” in the menu bar.</div> </li><li class="li substep substepexpand"> <span class="ph cmd">If you want to disable the menu bar set the menu bar attribute to <span class="ph uicontrol">false</span>.</span> </li><li class="li substep substepexpand"> <span class="ph cmd">If you only want to enable specific options on the menu bar, you can change the script by listing those specific options in the menu bar.</span> <div class="itemgroup info"> <p class="p">For example, menu bar: 'file edit format' so that only these 3 options appear on the menu bar.</p> </div> </li><li class="li substep substepexpand"> <span class="ph cmd">You can also configure the buttons that display within a menu by changing the script.</span> <div class="itemgroup info"> <pre class="pre codeblock"><code>tinymce.init({ selector: 'textarea', // change this value according to your HTML menu:{ file: { title: 'File', items: 'newdocument restordraft | preview | importword exportpdf exportword | print | deleteallconversations' }, edit: { title: 'Edit', items: 'undo redo | cut copy paste pastetext | selectall | searchreplace' }, view: { title: 'View', items: 'code revision history | visualaid visualchars visualblocks | spellchecker | preview fullscreen | showcomments' }, insert: { title: 'Insert', items: 'image link media addcomment pageembed codesample inserttable | math | charmap emoticons hr | pagebreak nonbreaking anchor tableofcontents | insertdatetime' }, format: { title: 'Format', items: 'bold italic underline strikethrough superscript subscript codeformat | styles blocks fontfamily fontsize align lineheight | forecolor backcolor | language | removeformat' }, tools: { title: 'Tools', items: 'spellchecker spellcheckerlanguage | a11ycheck code wordcount' }, table: { title: 'Table', items: 'inserttable | cell row column | advtablesort | tableprops deletetable' }, help: { title: 'Help', items: 'help' } } });</code></pre> </div> </li></ol> </li><li class="li step stepexpand"> <span class="ph cmd">Configure custom style format options in the TinyMCEConfigScript by appending the CSS in the style_formats section.</span> <div class="itemgroup info"> <p class="p">Example of style_formats section of the TinyMCEConfigScript:</p> <div class="p"> <pre class="pre codeblock"><code>style_formats: [ { title: 'Headings', items: [ { title: 'Heading 1', format: 'h1' }, { title: 'Heading 2', format: 'h2' }, { title: 'Heading 3', format: 'h3' }, { title: 'Heading 4', format: 'h4' }, { title: 'Heading 5', format: 'h5' }, { title: 'Heading 6', format: 'h6' } ]}, { title: 'Inline', items: [ { title: 'Bold', format: 'bold' }, { title: 'Italic', format: 'italic' }, { title: 'Underline', format: 'underline' }, { title: 'Strikethrough', format: 'strikethrough' }, { title: 'Superscript', format: 'superscript' }, { title: 'Subscript', format: 'subscript' }, { title: 'Code', format: 'code' } ]}, { title: 'Blocks', items: [ { title: 'Paragraph', format: 'p' }, { title: 'Blockquote', format: 'blockquote' }, { title: 'Div', format: 'div' }, { title: 'Pre', format: 'pre' } ]}, { title: 'Align', items: [ { title: 'Left', format: 'alignleft' }, { title: 'Center', format: 'aligncenter' }, { title: 'Right', format: 'alignright' }, { title: 'Justify', format: 'alignjustify' } ]} ]</code></pre> </div> <p class="p">Example with three new style formats added (Bold text, Red text, My-inline):</p> <div class="p"> <pre class="pre codeblock"><code>tinymce.init({ selector: 'textarea', // change this value according to your HTML style_formats: [ { title: 'Bold text', inline: 'b' }, { title: 'Red text', inline: 'span', styles: { color: '#ff0000' } }, { name: 'my-inline', title: 'My inline', inline: 'span', classes: [ 'my-inline' ] } ], // The following option is used to append style formats rather than overwrite the default style formats. style_formats_merge: true });</code></pre> </div> </div> <div class="itemgroup stepresult"> <p class="p">Access the HTML editor and you will see that the new custom style formats (Bold text, Red text, My-inline) appear in the formats section of the menu bar.</p> <p class="p"><img class="image" id="customize-the-text-menu-bar-in-tinymce__image_v11_fv1_2cc" src="../../../use/using-forms/image/TinyMCEV6-customized-text-menubar.png" alt="TinyMCE v6.8.3 Customized text menu bar" /></p> </div> </li></ol> </div> </div> </div> </body></html></div>