I have a textarea which is behaving like a ckeditor. In the editor there is a button to view the content as source/html. I have a input button above the textarea to preview the textarea content as html Means on click of my preview button it will trigger the ckeditor button click. Can anybody help me please..?
Shortest answer ever:
editor.execCommand( 'source' );
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With