Support » Plugins and Hacks » How can I add php into quicktags.js?
11 years, 2 months ago
Im trying to add this quicktag in my quicktags.js file…
edButtons[edButtons.length] = new edButton('ed_home'
,'<phpcode><?php echo get_settings('home'); ?>'
…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]
(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?