WordPress.org

Ready to get started?Download WordPress

Forums

Developer Formatter
[resolved] A simple workaround for DevFormatter 2011.0.1 with WordPress 3.3.1 (5 posts)

  1. xionglingfeng
    Member
    Posted 2 years ago #

    Install DevFormatter, and activate it, you should found the whole editor has been broken. Then FTP to your website, download and modify the file in /wp-content/plugins/devformatter/ with the name of "devinterface.php".
    On line 465, you should see these code:

    for(i = 0; i < edButtons.length; i++)
            if(edButtons[i].id == 'ed_code')
              edCodeId = i;
    
          $(\"input#ed_code\")[0].onclick = function(){
            ed_codeInsert(edCanvas, edCodeId);
          };

    Remove them, save and upload this file to your website, you will find the editor has been recovered.
    WARNING: This workaround would remove the function of the link to DevFormatter of "code" button. You have to insert the "code" tag by yourself, for example, <code lang="c"> or something similar.

    http://wordpress.org/extend/plugins/devformatter/

  2. sabhandari
    Member
    Posted 2 years ago #

    You are life saver.
    Was looking for this fix for quite some time.
    Java Programming

  3. GSaraiva
    Member
    Plugin Author

    Posted 2 years ago #

    Please check the plugin update.

    Working great on clean install 3.3.1.

  4. sabhandari
    Member
    Posted 2 years ago #

    ok, finally the fix came.
    Late but it has come.

    The only problem now with this good plugin is that the js file can't be gzipped with W3TC.

  5. GSaraiva
    Member
    Plugin Author

    Posted 2 years ago #

    What do you mean with W3TC?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic