Ticket #88 (closed enhancement: fixed)

Opened 5 years ago

Last modified 4 years ago

Request for div and span tags

Reported by: ozum Owned by: jf.hovinne
Priority: major Milestone: 0.5
Component: editor Version: trunk
Keywords: Cc:


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

comment:1 Changed 4 years ago 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.

comment:2 Changed 4 years ago by jf.hovinne

  • Status changed from closed to reopened
  • Resolution wontfix 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).

comment:3 Changed 4 years ago 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.

Note: See TracTickets for help on using tickets.