Ticket #88 (closed enhancement: fixed)

Opened 1 year ago

Last modified 1 month ago

Request for div and span tags

Reported by: ozum Assigned to: jf.hovinne
Priority: major Milestone: 0.5
Component: Editor Version: trunk
Keywords: Cc:

Description

When editing a part of the page DIV and SPAN tags are necessary. Although P tag with some css tricks does the job, it is a false implementation for a good XHTML code. I'll be happy if you include DIV and SPAN tags. Thanks.

Change History

05/22/08 12:32:17 changed by dixon_

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

I really don't think thats a god idea. WYMeditor is intended to edit textual content. It shall not act like a full blown HTML-editor.

Also, adding support of DIV and SPAN enables you to mess up the semantics of the produced code.

05/22/08 20:36:19 changed by jf.hovinne

  • status changed from closed to reopened.
  • resolution deleted.

Adding optional support for more inline tags would be great, since the current choice is rather limited. Furthermore, span elements can be used to give meaning to the selection (e.g. by using the 'lang' attribute).

DIV support is a little bit more complicated, due to editing issues in some designMode implementations.
A DIV element has no real meaning, and is generally used to define areas in the page's layout, so I agree its support in WYMeditor isn't mandatory (though it could be implemented as a plugin).

10/16/08 21:05:34 changed by jf.hovinne

  • status changed from reopened to closed.
  • resolution set to fixed.

Inline elements are now supported with the help of the insert(), wrap() and unwrap() API calls.