Hi orbi, thanks for your encouragements
'Restrictive mode' would be possible (IMO) using a XML schema or Relax NG at the server-side, and validating WYMeditor's content against it while editing.
I guess it's the easier way to do what you want.
We're planning a 'Selection API' and a rock-solid event handler for 0.4, so it will be possible (well, I hope so) to not only validate the content, but also to automagically 'populate' the editor with a semantic/logical structure while editing, using e.g. AJAX techniques.
Example:
- the user starts to edit a document: WYMeditor automagically transforms the first P by H1
- the user has finished to enter his heading, he presses 'return': WYMeditor automagically inserts a H2
- the user has finished to enter his H2, he presses 'return': WYMeditor inserts a P with a particular class
- and so on...
I think that would be great.