[pmwiki-users] Pre-alpha rich text WYSIWTF editor

Petko Yotov 5ko at 5ko.fr
Tue Mar 29 08:04:25 CDT 2011

On Tuesday 29 March 2011 13:47:40, Peter Bowers wrote :
> I wonder if this recipe could be combined with
> http://www.pmwiki.org/wiki/Cookbook/ConvertHTML...

This recipe could be useful if someone worked with a RichText editor and 
decided to go back to wiki markup.

> I would see something like this:
> ?action=edit --> no change from current operation
> ?action=wysiwig -> run MarkupToHtml() over the source, put the result
> in the WhizzyWig editor, when saved run ConvertHTML so as to save
> markup in the page.
> I'm guessing that there are just too many possibilities in HTML and so
> you don't get an accurate round-trip conversion, but the possibilities
> *seem* quite large.

It is exactly the opposite: there are just too many possibilities in wiki 
markup that produce HTML that can never be reverted back to its source wiki 
markup. For example dynamic PageLists, WikiTrails, PageVariables, Includes, 
picture galleries... :-)

The only way I can think of combinig the strength of the PmWiki markups and 
the ease of use for newcomers is to only RichEdit sections of the page that 
will not contain any wiki markup. But yes, in this case, it would be possible 
to convert the HTML of the section to wiki markup. :-)

Thanks to all, that kind of brainstorming is exactly what I was hoping for. 
(Speak up.)


More information about the pmwiki-users mailing list