Question
I have a question concerning WYSIWYG editor. As a large amount of documents to be edited in my project are html files (with embedded tags etc). It would be good for users to use WYSIWYG as an html editor. That’s why I am thinking of doing something to disable the html2tml and tml2html translators and store the html files directly to the file system. I have a couple of questions on this:
1. As TWiki can deal with most of the html mark-ups, I assume it is fine to store html instead of tml. Will this cause any problems to the other functions of wiki (like versioning)?
2.I am not a perl/unix programmer. I assume I need to do something with the beforeSaveHandler in
WysiwygPlugin.pm but not sure how to. Any advice on how to disable the html2tml and tml2html processes? Many thanks
Environment
--
RosieLian - 21 Sep 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
On storing html HTML of TML: There are no issues with that, just some side-effects, such as not being able to sort tables, automatically colorize table rows in alternate colors, messy HTML for those user agents that do not support the WYSIWYG editor. When pasting HTML, make sure to paste only content between
<body> and
</body> (excluding body tags.)
Crawford can possibly answer the other questions.
--
PeterThoeny - 21 Sep 2006
In
templates/edit.kupu.tmpl there are two lines
<input type="hidden" name="cover" value="%WYSIWYGPLUGIN_WYSIWYGSKIN%" />
<input type="hidden" name="wysiwyg_edit" value="1" />
Remove those two lines.
--
CrawfordCurrie - 26 Sep 2006
I sure was glad to see this thread. The group I'm working with has a need to move large amounts of HTML docs in and out of the TWiki environment and this may get around a lot of conversion issues I've seen. I'll give the edit.kupu.tmpl modification a try.
--
GregMiller - 29 Nov 2006