- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 02:33 PM
Hi,
I am trying to create a very simple UI page that has the tinyMCE toolbar control on my textarea.
When I try the page the toolbar never shows.
I have tried on both Global and Scoped UI pages.
Does anyone know why the toolbar is not showing?
Thank You.
My HTML Code
<?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>
tinymce.init({
mode : "specific_textareas",
editor_selector : "mceEditor",
width: '100%',
height: '400px',
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="80" rows="10" id="body" name="body" class="mceEditor"></textarea>
</j:jelly>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 05:08 PM
So I finally found the solution.
In my search, I kept seeing an empty set of script tags in a lot of the samples.
It looks like the attributes in the script tag are being removed when posting to the dev forum and other sites.
I finally ran across a posting where they posted the code and said that it was being stripped out for some reason.
When I added the line below I can now see the TinyMCE toolbar on my UI page's text area.
<script src="/scripts/tinymce4_4_3/tinymce.full.jsx"></script>

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-18-2023 06:05 PM
I'm not sure how it works. From your code I see that library of this toolbar is not referred. Please check if you need to include any library to this java script code
Palani
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2023 05:08 PM
So I finally found the solution.
In my search, I kept seeing an empty set of script tags in a lot of the samples.
It looks like the attributes in the script tag are being removed when posting to the dev forum and other sites.
I finally ran across a posting where they posted the code and said that it was being stripped out for some reason.
When I added the line below I can now see the TinyMCE toolbar on my UI page's text area.
<script src="/scripts/tinymce4_4_3/tinymce.full.jsx"></script>