I want to perform some kind of refresh on the Editor Area.. the problem I have is as follows: I have written a plugin that helps the user insert some non-html tags that are supposedly hidden in the editor view by calling ProtectedSource.Add in my config file. However, after the plugin does its job the tags are visible. They dissapear after the user views the source and returns to the WYSIWYG view. I want to achieve the same effect programmatically (ideally without actually switching the views). Anyone know how I can do that?
Thanks!
Thanks!
Re: Editor Area Refresh
The protected source tags are hidden from view in the editor area simply by commenting them out of the HTML when switching from source to WYSIWYG view. The comment tag is removed when going into source view. When my plugin inserts the non-HTML tags into the WYSIWYG view the text is not commented out. To make them disappear I now insert them already commented out. When switching to source view, FCKeditor removes the comment for me and replaces it when switching back to WYSIWYG mode (because they are still 'ProtectedSource').
I'm not confident that this type of functionality (these weird non-HTML tags - my superior is telling me this is how the tool is to work) is going to be used by many people. I have solved my problem anyway so I'm happy!
Re: Editor Area Refresh
Oops..
That doesn't totally work.. I should have actually tried the whole solution before posting it.. The comments are not removed when I go to source view. I don't know why. I believed they would be because I used
on the tag.