Hello,
I'm triing to write a plugin, that inserts some php-code into the text being edited. (like <?php function(); ?>)
So, I started out having a popup-window and including the following code:
Guess what - it doesn't work. After all it would be great if the code could work in IE aswell as in Firefox, but I guess that's another issue.
Björn
I'm triing to write a plugin, that inserts some php-code into the text being edited. (like <?php function(); ?>)
So, I started out having a popup-window and including the following code:
<script language="javascript"> FCK = window.opener.FCK; function insertphp() { FCK.Focus(); FCK.insertHTML('<?php echo "test"; ?p>'); window.close(); } </script> <a href="javascript:insertphp();">Insert PHP</a>
Guess what - it doesn't work. After all it would be great if the code could work in IE aswell as in Firefox, but I guess that's another issue.
Björn
[solved] insert php plugin
Ok, I finally got my plugin working - both on IE and Firefox. Here's the complete code: