Tags:
create new tag
view all tags

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

TWiki version: TWikiRelease04x00x04
TWiki plugins: DefaultPlugin, EmptyPlugin, InterwikiPlugin, Plugins.Wygiwyg
Server OS: TWiki VM /Linux
Web server: Twiki VM/ Apache
Perl version: TWiki VM
Client OS: Windows XO sp 2
Web Browser: IE, firefox
Categories: Plugins

-- RosieLian - 21 Sep 2006

Answer

ALERT! 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

Change status to:
Edit | Attach | Watch | Print version | History: r4 < r3 < r2 < r1 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r4 - 2006-11-29 - GregMiller
 
  • Learn about TWiki  
  • Download TWiki
This site is powered by the TWiki collaboration platform Powered by Perl Hosted by OICcam.com Ideas, requests, problems regarding TWiki? Send feedback. Ask community in the support forum.
Copyright © 1999-2026 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.