Opened 12 years ago

Closed 8 years ago

#110 closed enhancement (wontfix)

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
  1. Selecting a non editable element must be handled as an operation for the whole element even if it is selected partial
  1. ... 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 (1)

htmlarea.js (137.7 KB) - added by anonymous 12 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.

Download all attachments as: .zip

Change History (5)

comment:1 Changed 12 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!

comment:2 Changed 12 years ago by gogo

  • Severity changed from minor to enhancement
  • Version 2.0 deleted

Changed 12 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.

comment:3 Changed 11 years ago by ray

  • Milestone set to 2.0

comment:4 Changed 8 years ago by gogo

  • Resolution set to wontfix
  • Status changed from new to closed

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.