- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 03:49 PM
Grab info inputed into UI page tinymce field?
this is the field that I have in my UI page::
<script>
tinymce.init({
mode : "specific_textareas",
editor_selector : "mce",
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="80" rows="10" name="comment" id="comment" class="mce"> ${jvar_emailbody} </textarea>
I tried to grab the value that the user inputed by using var comment = get('comment').value in the client script,
but that did not work
Solved! Go to Solution.
- Labels:
-
Service Portal Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-22-2022 10:45 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 03:58 PM
<textarea cols="80" rows="10" name="comment" id="comment" value =${jvar_emailbody} class="mce"> ${jvar_emailbody} </textarea>
Hello ,
please change it to above line and execute the same script in client script hope this helps Change your line to the above one And then try to execute the same script above to get the comment Hope this helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-20-2022 04:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2022 05:52 AM
hello
Did it work in grabbing the input ?
If not please try this in client script
window.parent.tinymce.get('contentID').getContent();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2022 08:27 PM