Hi everyone,

 

We’re having some major issues with the WYSIWYG editor deleting content that it doesn’t understand when you save a page.  For example, in order to link to an image on another page, we add something like this to the code:

 

<img src=”$xwiki.getAttachmentURL(‘MyPage’,’my-image’)” />

 

That works great, until you edit this page using the WYSIWYG editor.  Savings your changes just deletes the whole tag.  The page basically cannot be edited (other than as raw code) once it links to an image this way.  We have the same issue with the <form> code suggested in the FAQ for document templates – you can’t edit the template page in WYSIWYG mode anymore because if you do, it’ll delete the form.

 

Is there any way around this?

 

- Peter