Ticket #110 (closed enhancement: wontfix)
|Reported by:||holtwickd||Owned by:||gogo|
The plan is to make special portions of the document within Xinha editable or not. Therefore a special attribute should be added like: htmlarea-editable. For example if you'd like someone to just edit the heading and the text area of a document it could be done like this given the body is not editable:
<h1 htmlare-ediatable="true">Heading<h1> <hr> <img src="some_illu.gif"> <div htmlarea-editable="true">Here goes the text</div> <hr> Some Footer
or the other way you just want to make special part of the text not editable and behave kind of images:
Some Text <div htmlarea-editable="false">The Infobox<br>InfoInfo</div> More Text
The problems in implementing this are:
1. Drag'n'drop of mouse and other mouse operations must be handled
2. Selecting a non editable element must be handled as an operation for the whole element even if it is selected partial
3. ... and the will be more ;-)
I already implemented this feature once for the HTMLarea. Important are the part that do the event handling. All relevant parts in my source are marked by // EDITABLE BEGIN ... // EDITABLE END. The code is not tested since 4 months!
You get my code here: http://www.spirito.de/download/htmlarea.js
Would be nice, if someone could go ahead with this feature.