web_development:wordpress:wysiwyg-tinymce

WYSIWYG - TINYMCE

Use this if you need to insert HTML or shortcode into the WYSIWYG of a post in the wordpress backend.

if( ! tinyMCE.activeEditor || tinyMCE.activeEditor.isHidden()) {
				jQuery('textarea#content').val( enterHTML );
			} else {
				tinyMCE.execCommand('mceInsertRawHTML', false, enterHTML );
			}
  • web_development/wordpress/wysiwyg-tinymce.txt
  • Last modified: 2020/10/09 04:11
  • by jimboobrien