TinyMCE in UI Page is missing tools from toolbar
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2019 09:21 AM
We have an old (but heavily utilized) UI Page with TinyMCE loaded on a textarea. It works fine, but some of the tools aren't showing up in the toolbar even though they are specified in the init. Our users are specifically requesting the Link button. In my personal developer instance, I made a very basic UI Page for troubleshooting this, and I cannot figure out why they aren't there.
Sample UI Page HTML:
<?xml version="1.0" encoding="utf-8" ?>
<j:jelly trim="false" xmlns:j="jelly:core" xmlns:g="glide" xmlns:j2="null" xmlns:g2="null">
<script>
<script>
tinymce.init({
mode : "specific_textareas",
editor_selector : "mceEditor",
width: '100%',
height: '300px',
menubar: "tools",
toolbar: "$[gs.getProperty('glide.ui.html.editor.v4.toolbar.line1')]",
content_css : "* {font: 10px arial, sans-serif;} b {font-weight:bold;} th {font-weight:bold;} strong {font-weight:bold;}",
});
</script>
<textarea cols="60" rows="10" id="textfield" name="textfield" class="mceEditor"></textarea>
</j:jelly>
That first <script> on line 4 is being removed for some reason. It was supposed to be loading 'tinymce.full.jsx' from '/scripts/tinymce4_4_3/'
'glide.ui.html.editor.v4.toolbar.line1' System Property value:
bold,italic,underline,undo,redo,|,fontselect,fontsizeselect,table,|,forecolor,backcolor,link,unlink,|,image,media,code,|,alignleft,aligncenter,alignright,|,bullist,numlist,fullscreen
Resultant UI Page:
It looks like table, forecolor, backcolor, link, unlink, image, media, code, and fullscreen are all missing. Does anyone know what is going on? Thank you for your help with this!
- Labels:
-
Scripting and Coding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-26-2019 10:55 AM - edited ‎09-28-2023 12:38 AM
And they render properly in OoB forms like Knowledge, just not when I load it from a UI Page.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-26-2020 02:38 AM
Hi
I have the same problem as you.
Have you solved it yet?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-27-2020 09:26 AM
Hi Kien,
Not with TinyMCE, but we found an alternative. We ended up loading an open source wysiwyg editor that we could control instead. It is called Jodit. It can be loaded from a CDN, but we chose to host it in a script include.
Jodit Link: https://xdsoft.net/jodit/

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2020 06:14 AM
Hi Robert,
Stumbled across this in search for something else. I had the same issue, and found out that I needed to specify plugins as well in the tinymce.init.
Adding this line (you might need some amendments) should do the trick.
plugins: 'media fullscreen link table lists',
To ensure you capture all your required buttons, see "Plugins" menu section on https://www.tiny.cloud/docs/ for details on which plugins need initialization.
Regards,
Rolf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-05-2022 06:06 PM
This helped.