Ticket #110 (closed enhancement: wontfix)

Opened 8 years ago

Last modified 4 years ago

Editable regions

Reported by: holtwickd Owned by: gogo
Priority: normal Milestone: 2.0
Component: Xinha Core Version:
Severity: normal Keywords: editable
Cc:

Description

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.

Attachments

htmlarea.js (137.7 kB) - added by anonymous 8 years ago.
The link had broken, ere is the file that it went to. This is a great answer to anyone that thinks they have to use Contribute because of Dreamweaver templates. This would be a powerful feature for a lot of people that think WYSIWYG's aren't powerful enough to do the job.

Change History

Changed 8 years ago by niko

yes, would be a nice feature, but very had to do (you said allready three points) and imho useless (at least for me) if i would like to let the user only edit parts of a site i would show him just these parts in several xinhas!

Changed 8 years ago by gogo

  • version deleted
  • severity changed from minor to enhancement

Changed 8 years ago by anonymous

The link had broken, ere is the file that it went to. This is a great answer to anyone that thinks they have to use Contribute because of Dreamweaver templates. This would be a powerful feature for a lot of people that think WYSIWYG's aren't powerful enough to do the job.

Changed 6 years ago by ray

  • milestone set to 2.0

Changed 4 years ago by gogo

  • status changed from new to closed
  • resolution set to wontfix

Inactive, closing. Very hard to do this properly. See my WysiwygWrap? plugin for something a bit "similar" (not really, but it helps to solve the same sort of "it looks different in the editor" problems).

Maybe one day we'll get Gecko to have a midas:editable="no" attribute or something.

Note: See TracTickets for help on using tickets.