Opened 15 years ago

Closed 15 years ago

#803 closed defect (fixed)

Add creation of definition lists (DL) to buttons bar

Reported by: rduke15@… Owned by: gogo
Priority: high Milestone: Version 1.0
Component: Xinha Core Version: trunk
Severity: normal Keywords: dl definition list dd dt


I would like to be able to use HTML definition lists. Tried to hack the code, but it seems that normal unordered lists are created with an execCommand("insertunorderedlist"), which has no "insertdefinitionlist" equivalent.

My javascript and Xinha knowledge is not sufficient to allow me to add such functionality, so I add it here as wishlist item.

Change History (2)

comment:1 Changed 15 years ago by guest

  • Keywords dd dt added
  • Milestone set to Version 1.0
  • Priority changed from normal to high
  • Severity changed from enhancement to normal

I'd like to know that too. I've tried it by modifying the Array this.formatblock as follows:

  this.formatblock = {
    "— format —"  : "",
    "Heading 1": "h1",
    "Heading 2": "h2",
    "Heading 3": "h3",
    "Heading 4": "h4",
    "Heading 5": "h5",
    "Heading 6": "h6",
    "Normal"   : "p",
    "Address"  : "address",
    "Formatted": "pre",
    "Definition list": "dl"

This way I can assign a dl tag to selected text but I neither can enter definition (dt) terms nor descriptions (dd).
Any ideas would be highly appreciated.

comment:2 Changed 15 years ago by gocher

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

I wrote a little plugin for that and commited it in changset 803!

Note: See TracTickets for help on using tickets.