<div dir="ltr"><div>A wiki engine work is mainly a one-way rendering from the wiki text into html during page building.</div><div><br></div><div>Dealing with a 
<span class="gmail-im">WYSIWYG editor</span> would consists in handling the exact opposite, ie. getting back some html from a browser's content-editable block (the 
<span class="gmail-im">WYSIWYG </span>

equivalent of a textarea editing) and translate it into wiki markup.</div><div><br></div><div>If this can be done more or less easily for basic styling, the task is rather difficult for complex markup such as tables or div sections and almost impossible for pagelist directives or form elements and all kind of custom stuff defined by various cookbook recipes.</div><div><br></div><div>Therefore, I'm afraid that in this case, the "Worse" is the best.<br></div><div><br></div><div>Dominique<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jun 18, 2019 at 6:24 AM Svetlana Tkachenko <<a href="mailto:svetlana@members.fsf.org">svetlana@members.fsf.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Peter Kay <<a href="mailto:pkay42@gmail.com" target="_blank">pkay42@gmail.com</a>> wrote:<br>
> <br>
> > It would be nice to know how Google Docs overcomes this problem<br>
> <br>
> Probably through the liberal application of money, which can hire people to work.<br>
> <br>
> Pmwiki's markup is translated to HTML server-side by a php-based engine. In order to have a WYSIWYG editor, you would need a way to translate client-side, probably javascript? <br>
<br>
Does it have to be javascript? Perhaps an api which can translate from html to markup and back on the server side?<br>
<br>
With another wiki the translation from html to markdown is enormously difficult. Is this the case here?<br>
<br>
They resolve this by adding additional attributes (like <p data-foo="bar">) to the html markup. Is this the best approach?<br>
<br>
-- Sveta<br>
<br>
_______________________________________________<br>
pmwiki-users mailing list<br>
<a href="mailto:pmwiki-users@pmichaud.com" target="_blank">pmwiki-users@pmichaud.com</a><br>
<a href="http://www.pmichaud.com/mailman/listinfo/pmwiki-users" rel="noreferrer" target="_blank">http://www.pmichaud.com/mailman/listinfo/pmwiki-users</a><br>
</blockquote></div>