[xwiki-users] Ways to protect from visual-editing ?
Hello List, is there a way to prevent some document (or document-classes or...) from being edited with the visual editor ? Clearly some source-freaks will not like it if others carelessly replace their careful source layout! thanks in advance paul
On Jan 2, 2008, at 2:12 AM, Paul Libbrecht wrote:
Hello List,
is there a way to prevent some document (or document-classes or...) from being edited with the visual editor ? Clearly some source- freaks will not like it if others carelessly replace their careful source layout!
I am one of those source freaks and I hate it too when the wysiwyg editor escapes some of my characters :) What we want is that the wysiwyg editor doesn't modify any layout or anything that was written outside of it. If it happens it means that it's a bug. Note that there are already quite a few known bugs in the wysiwyg editor in JIRA. Now back to your question: No this doesn't exist right now. What you could do if you wanted would be to create an Editor Class and modify the vm file (*edit.vm) where the editor is selected. The current rule is: user-selected editor, wiki-level editor. You could modify that and add a check for an Editor object attached to the page. But the best would really be to just fix the bug in the current editor. Patches are most welcome. Thanks -Vincent
participants (2)
-
Paul Libbrecht -
Vincent Massol