Ticket #2439 (closed defect: fixed)

Opened 18 months ago

Last modified 5 months ago

Editor: Update (Insert) Image not functional in IE6sp2

Reported by: tdedischew@… Owned by: peller
Priority: normal Milestone: 1.1
Component: Dojox Version: 0.4.1
Severity: major Keywords: Editor2 InsertImage IE6
Cc:

Description

Test Case: http://download.dojotoolkit.org/release-0.4.1/dojo-0.4.1-kitchen_sink/tests/widget/Editor/test_Editor2.html

Add an image to one of the Editor2's via the toolbar or cut/paste of html (say http://dojotoolkit.org/img/page-title-smaller.png), then select that image and hit the toolbar icon again to modify.

Regardless of any property changes, when you hit Ok, you'll get a javascript error in IE6 (line 4971 Object doesn't support this property or method).

The exception is happening during the inserthtml execCommand...

I have to find a solution this weekend (or scrap using Editor2) so will hopefully post a fix shortly. I couldn't find this bug logged elsewhere in trac, but maybe someone has encountered this strange IE/Editor2 behavior before?

Change History

Changed 18 months ago by tdedischew@…

Current solution is to nuke the existing image node (explicit delete+insert vs. relying on the implied replacement via the "inserthtml" command)...

		if(this.imageNode){
			dojo.withGlobal(curInst.window, "selectElement", dojo.html.selection, [this.imageNode]);
			/* if IE, nuke node -- 'cursor' remains where node was, 
			   so this seems safe and the later inserthtml command
			   inserts right where the old image was... */
			if (dojo.render.html.ie)
			  curInst.execCommand('delete');
		}

Changed 17 months ago by alex

  • priority changed from high to normal
  • milestone changed from 0.4.2 to 0.9

Changed 12 months ago by liucougar

  • milestone changed from 0.9 to 1.0

0.9 editor does not yet have an image dialog plugin, punt this

Changed 11 months ago by bill

  • owner changed from liucougar to ttrenka
  • summary changed from Editor2 Update (Insert) Image not functional in IE6sp2 to Editor: Update (Insert) Image not functional in IE6sp2
  • component changed from Editor to Dojox
  • milestone deleted

Changed 11 months ago by bill

  • owner changed from ttrenka to liucougar

Changed 5 months ago by peller

(In [12335]) First stab at porting the old url 'insertImage' dialog feature from 0.4. Refs #2439 Uses same code as 'createLink' in LinkDialog? plugin. A fancy dojox.image plugin might extend this. Refs #5759. Also, cleanup code in LinkDialog?.js.

Changed 5 months ago by alex

  • milestone set to 1.1

we should verify and fix/spike for 1.1

Changed 5 months ago by peller

  • owner changed from liucougar to peller

Changed 5 months ago by peller

  • status changed from new to closed
  • resolution set to fixed

generally working. have some other tickets open to track issues.

Changed 5 months ago by peller

(In [12770]) Remove 'experimental.' Refs #2439, #4171, #4971

Changed 5 months ago by peller

(In [12771]) Oops. Remove log. Refs #2439

Note: See TracTickets for help on using tickets.