Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thanks!! Helped a ton :-). Here’s what I did:

    reusables/screens/page-add.php
    reusables/screens/page-edit-single.php

    In both files, remove the entire wp_tiny_mce(…); block.

    In both files, remove all of the Javascript that references tinyMCE:

    var id = 'content';
    tinyMCE.execCommand('mceAddControl', false, id);
    
    $('a.toggleVisual').click(
    	function() {
    		tinyMCE.execCommand('mceAddControl', false, id);
    
    		$(this).addClass("active");
    		$("a.toggleHTML").removeClass("active");
    
    	}
    );
    
    $('a.toggleHTML').click(
    	function() {
    		tinyMCE.execCommand('mceRemoveControl', false, id);
    
    		$(this).addClass("active");
    		$("a.toggleVisual").removeClass("active");
    
    	}
    );

    In page-add.php replace everything within div#postdivrich with:

    <?php the_editor(""); ?>
    <table id="post-status-info" cellspacing="0"><tbody><tr>
    	<td class="autosave-info">
    	<span class="autosave-message">&nbsp;</span>
    	</td>
    </tr></tbody></table>

    In page-edit-single.php replace everything within div#postdivrich with:

    <?php the_editor($reus->post_content); ?>
    <table id="post-status-info" cellspacing="0"><tbody><tr>
    	<td class="autosave-info">
    	<span class="autosave-message">&nbsp;</span>
    	</td>
    </tr></tbody></table>

    Works great with TinyMCE Advanced plugin too.

    Can you post the fix?

Viewing 2 replies - 1 through 2 (of 2 total)