or using jQuery<script type="text/javascript"> window.onload = function () { tinyMCE.activeEditor.setContent('some html content here'); } </script>
<script type="text/javascript"> $(function () { tinyMCE.activeEditor.setContent('some html content here'); }); </script>
It requires you have only one tinyMCE editor. But if you have more you can use this.
tinyMCE.editors[index0].setContent('some html content here'); tinyMCE.editors[index1].setContent('some html content here'); tinyMCE.editors["nameOfEditor"].setContent('some html content here');
Hope this helps!
No comments:
Post a Comment