Ticket #5081 (new defect)

Opened 6 months ago

Last modified 3 weeks ago

InlineEditBox: editor="dijit.Editor" doesn't work

Reported by: guest Owned by: doughays
Priority: normal Milestone: 1.2
Component: Dijit Version: 1.0
Severity: normal Keywords: InlineEditBox, Editor, Dijit
Cc:

Description (last modified by doughays) (diff)

Browser: Firefox 2.0.0.9
Dojo Version: 1.0 (installed locally)
Error: Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIDOMNSHTMLDocument.designMode]

That error does not occur with other types of editors. I can use the dijit.Editor outside of the InlineEditBox? without problems. A short note on the InlineEditBox?-Site in the doc suggest it should work. I searched the site and googled for a while but found no solution, let alone mention of that problem.

That's how I did it (produces the error every time on my system):

<p dojoType="dijit.InlineEditBox" editor="dijit.Editor">
    edit me
</p>

It doesn't matter if I add renderAsHtml="true" or anything.

Change History

Changed 6 months ago by bill

  • owner set to bill
  • summary changed from editor="dijit.Editor" in dijit.InlineEditBox gives Error when clicking it to InlineEditBox: editor="dijit.Editor" doesn't work
  • milestone set to 1.1

Changed 5 months ago by bill

FYI, I started to look at this one, but it might be a bit difficult to fix. Programmatic Editor creation does work (see [11801]), but as you said InlineEditBox? fails. For one thing, Editor doesn't have a focusNode attribute, so we crash there. I also think the FF2 iframe though will be problematic, especially w.r.t. copying over the source node's style to the editor.

Changed 5 months ago by bill

(In [11802]) Test case for InlineEditBox? on dijit.Editor, which doesn't work yet. Refs #5081.

Changed 5 months ago by guest

Just FYI, it works nice and without errors on Safari 3 (rendering with webkit).

Changed 3 months ago by bill

  • owner changed from bill to doughays
  • milestone changed from 1.1 to 1.2

Changed 3 weeks ago by doughays

  • description modified (diff)

IBM #83982

Note: See TracTickets for help on using tickets.