Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagejava
<div class="btn btn-primary" id="get-text">get text</div>

<script>
$(document).ready( function(){
    $("#submit").click(function() {
        
        var description=FormUtil.getField('description');
        let content = FormUtil.getValue('description');
        
        console.log("content",content);
        setTimeout(function(){
            $.unblockUI();
        },500)
        return false;
        
        location.reload();
    });
    
    $('#get-text').on('click', function(){
        content = FormUtil.getField('description');
        text = tinymce.activeEditor.getContent({format: "text"});   //specify format = text so that it returns text-only, not htmls
        console.log(text);
    })
})
</script>

Sample App

View file
nameAPP_kb_dx8_retrieveRTEValue.jwa
height250