Geshi plugin - code deleted in WYSIWYG

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Locked
Sonya

Geshi plugin - code deleted in WYSIWYG

Post 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
Sonya

Re: Geshi plugin - code deleted in WYSIWYG

Post 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}
Last edited by Sonya on Sat Apr 19, 2008 5:54 pm, edited 1 time in total.
Locked

Return to “CMSMS Core”