Forum Discussion
nathan
11 years agoExecutive
The editor for the message body is in an iframe, so you need to get a reference to the iframe first, then change the content.
On my test community, this code sets the content of the message to "Hello World!":
LITHIUM.jQuery('#tinyMceEditor_ifr').contents().find('#tinymce').html('<p>Hello World!</p>')
Note that Lithium may not always use the iframe (e.g. on mobile devices or older browsers).
Related Content
- 5 years ago
- 2 years ago
- 4 years ago
- 3 years ago
- 10 months ago