Page 1 of 1

Geshi plugin - code deleted in WYSIWYG

Posted: Sat Apr 19, 2008 3:13 pm
by Sonya
Hello,

I use 1.2.4 "Greenland" (WYSIWYG: TinyMCE WYSIWYG Basic) and GeShi Plugin as described here http://wiki.cmsmadesimple.org/index.php ... hi_hilight. No modifications in source code, no other plugins or modules for content.

I have very strange behaviour while editing my content. How to reproduce:
1. Place test code in your site

Code: Select all

  {cms_geshi lang="php"}
  <?php echo 1; ?>
  {/cms_geshi}
2. Save and see - OK.
3. Go to content edit and "Turn WYSIWYG on/off". Then "Turn WYSIWYG on/off" again. In WYSIWYG the entire code between cms_geshi tags is deleted.

Why? How I can prevent my code from deleting?

Thank you,
Sonya

Re: Geshi plugin - code deleted in WYSIWYG

Posted: Sat Apr 19, 2008 5:51 pm
by Sonya
I found out that all php tags are deleted automatically. So DO NOT use

{cms_geshi lang="php"}
 
  {/cms_geshi}

as stated in example.

If you omit the tag in red the code is not deleted. Example

Code: Select all

{cms_geshi lang="php"}
echo 1;
{/cms_geshi}