J!3.4.1 - WYSIWYG content Javascript [SOLVED]

vivoices

New Member
Hi,
how can I get the content of the WYSIWYG editor in Javascript before I hit the submit button of the form?
Code:
...get('aii_email_messages___msg').getValue()
returns just an empty string.
Code:
...get('aii_email_messages___msg').getContent()
returns an error:
"ReferenceError: tinyMCE is not defined".
The site has "ArtofEditor" installed and needs it's functionality.
 
You'll need to find that out from the ArtofEditor API, not something we can help with.

That's why we only support editors which J! itself supports, as every editor has a different API, requiring different code to extract the content prior to form submission.

-- hugh
 
Thanks for your answer.

I am looking for a JS API documentaion for Artof Editor. No luck so far.
 
Found it.
Artof Editor is based on CKEditor, so
Code:
CKEDITOR.instances.aii_email_messages___mesg.getData();
returns the content.

Thanks for making Fabrik available, love it.
 
We are in need of some funding.
More details.

Thank you.

Members online

Back
Top