[MTOS-dev] WYSIWYG Editor, Postprocessing (was: [ProNet] Javascript Library Standardization)

Alvar Freude alvar at a-blast.org
Wed Jan 23 15:46:21 PST 2008


Hi,

-- Arvind Satyanarayan <arvind.2111 at gmail.com> wrote:

> Boy, I must be falling behind the times, last time I checked, we did
> have a *usable* wysiwyg. It just doesn't happen to output valid html
> but that doesn't make it any less usable.

the 4.0 Editor has the problem, that the generated code depends on the 
browser. And with Safari this is full with strange style definitions, 
which partly break the CSS layout.

My favourite WYSIWYG-Editor should at first generate good structured 
HTML, not WYSIWYG: from H1 to Hx, P, STRONG, SMALL, PRE, UL/LI, DEL, INS 
and so on, perhaps with an additional class selector.
How this will be displayed is defined in my styles, the editor should not 
handle the display, only the structure.

I don't know if one of the usual editors can handle this, everything I 
looked at (it's not very much) included more or less ugly HTML.


One other thing:
There should be the possibility of HTML postprocessing, e.g. to change 
the class for internal/external links or links to special sites.

Example:
In my Blaster-Blog I have three types of links: Internal (no class), 
external (class="ext"), and links to the project pages (class="blast"); 
the external gets an image before and the blast a pulsing hover.

<http://blog.assoziations-blaster.de/2007/12/jugendschutz-erwachsenenschutz.html> 
(sorry, text is in german; you can see the mentioned links types it at 
the first two links and the overview link list after the first (bold) 
paragraphs)


I have to do this by hand, but writing a simple filter would be easy, 
because the links can be distinguished by their domain.


I have not checked the new features in 4.1, perhaps this postprocessing 
is possible with them ...


Ciao
  Alvar




-- 
** Alvar C.H. Freude, http://alvar.a-blast.org/
** http://www.assoziations-blaster.de/
** http://www.wen-waehlen.de/
** http://odem.org/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://www.sixapart.com/pipermail/mtos-dev/attachments/20080124/d67504c4/attachment.bin 


More information about the MTOS-dev mailing list