WordPress.org

Support

Support » Plugins and Hacks » How can I add php into quicktags.js?

How can I add php into quicktags.js?

  • Im trying to add this quicktag in my quicktags.js file…

    edButtons[edButtons.length] = new edButton('ed_home'
    ,'Home'
    ,'<phpcode><?php echo get_settings('home'); ?>'
    ,'</phpcode>'
    ,''
    );

    …but when I upload the file, all buttons from the quicktags in my admin panel dissapears. I’ve noticed that this happens only if I put php code. [b]Why is that and how can I solve it?[/b]

    (WordPress 1.5.2)
    (PHP Exec 1.7)

    PS: Im triyng to add this quicktag because I need to add images to a special page that I move from one parent page to another from time to time. Is there a better way of doing this?

  • The topic ‘How can I add php into quicktags.js?’ is closed to new replies.
Skip to toolbar