The CreatorCon Call for Content is officially open! Get started here.

Grab info inputed into UI page tinymce field? ( medium easy points )

juan casas
Mega Expert

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

1 ACCEPTED SOLUTION

juan casas
Mega Expert

document.getElementById("comment").value was the anwes

View solution in original post

5 REPLIES 5

juan casas
Mega Expert

document.getElementById("comment").value was the anwes