Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Chrome shows this on a page like node/add/page:
[14:19:05.493] [Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: http://localhost/spark-git/8xx/profiles/spark/modules/contrib/aloha/build/alohaeditor/lib/aloha.js?v=custom%20build:%200.21.2%20+%20patches :: <TOP_LEVEL> :: line 29" data: no]: Could not disable enableObjectResizing @ http://localhost/spark-git/8xx/profiles/spark/modules/contrib/aloha/build/alohaeditor/lib/aloha.js?v=custom%20build:%200.21.2%20+%20patches:29
I'm not entirely convinced this is an actual problem w/ Aloha vs. something dumb Spark 8.x-1.x is doing, but filing nonetheless...
Comments
Comment #1
Wim LeersI've never seen anything like this!
Is this in Firefox? Did you also try in Chrome?
Comment #2
Wim Leers@webchick said the above *was* in Chrome. But googling for the error indicates it *must* have been Firefox.
I tried it in Firefox 14, no such error. Updated to 15, still not.
The error message suggests a problem with the specific Firefox version being used. Were you using a non-stable release perhaps?
Comment #3
lightsurge CreditAttribution: lightsurge commentedActually I've had this error in Chrome before, unless it's something other than the error message that you thought meant it had to be Firefox?
For me it was a plugin problem, I don't know which, did lazy trouble-shooting and disabled a few. Actually it might have been a Mozilla plugin for Chrome, maybe that's why there's cross-over.
Comment #4
lightsurge CreditAttribution: lightsurge commentedWas so sure of myself but think I must be remembering wrong, googling it I see what you mean. Unless, I wonder if I had firebug lite installed.
Comment #5
lightsurge CreditAttribution: lightsurge commentedi can replicate in Firefox 15.0.1 with Firebug 1.10.3
[Exception... "Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]" nsresult: "0x80004005 (NS_ERROR_FAILURE)" location: "JS frame :: /modules/aloha/build/alohaeditor/lib/aloha.js?v=custom%20build:%200.21.2%20+%20patches :: :: line 29" data: no]: Could not disable enableObjectResizing
Comment #6
lightsurge CreditAttribution: lightsurge commentedAccording to http://stackoverflow.com/questions/2901759/how-to-i-disable-the-moz-resi...
document.designMode = "on";
should come before:
document.execCommand( 'enableObjectResizing', false, false);
and it doesn't seem to in aloha core
https://github.com/alohaeditor/Aloha-Editor/blob/dev/src/lib/aloha/core....
Comment #7
lightsurge CreditAttribution: lightsurge commentedBtw for me while I get the same error message Aloha loads fine, it just logs this error and presumably won't disable Firefox native image resizing.
Also it's nothing peculiar to Spark/Aloha, you can trigger the same error by going to this minimal demo http://chris.photobooks.com/tests/rte/moz_resizing/moz_resizing.html
Try turning native image resizing off before you click 'Make the iframe editable' (this is what triggers setDesignMode('on')). You'll get the error logged. Make the iframe editable and then turn off image resizing, and it'll work without error.
Comment #8
lightsurge CreditAttribution: lightsurge commentedhttps://github.com/alohaeditor/Aloha-Editor/issues/732
Comment #9
Wim LeersComment #10
Wim Leers.
Comment #11
Wim Leers