[dev] [en] ideas for the rich text editor?
Adrien
souliane at mailoo.org
Sam 28 Sep 16:02:53 CEST 2013
> markdown: {"italic": "(?P<before_selection>*)(?P<after_selection>*), ...
> <other formatters> }
> html: {"italic": "(?P<before_selection><i>)(?P<after_selection></i>),
> ... <other formatters> }
> bbcode: {"italic": "(?P<before_selection>[i])(?P<after_selection>[/i]),
> ... <other formatters> }
I forgot here someting like .* the middle of the groups. Anyway these
initial patterns, which are defined for recognition, need to be reused
somehow:
- to isolate the markers to be added in the composition text area ;
- to define the regexp that will be used for text replacement.
I hope it's more clear now :)
Adrien
Plus d'informations sur la liste de diffusion dev