angular-wysiwyg icon indicating copy to clipboard operation
angular-wysiwyg copied to clipboard

exception raised on FF38 (maybe more)

Open blackbadgerltd opened this issue 10 years ago • 1 comments

The following exception is raised (even on the demo) when loading the page

13:47:51.732 Exception { message: "", result: 2147500037, name: "NS_ERROR_FAILURE", filename: "http://localhost:4000/src/angular-w…", lineNumber: 322, columnNumber: 0, inner: null, data: null, stack: "link/scope.format@http://localhost:…" } "

"1 angular.js:9784:17 consoleLog/<() angular.js:9784 $ExceptionHandlerProvider/this.$get</<() angular.js:7219 nodeLinkFn() angular.js:6585 compositeLinkFn() angular.js:5985 nodeLinkFn() angular.js:6576 compositeLinkFn() angular.js:5989 nodeLinkFn() angular.js:6576 compositeLinkFn() angular.js:5989 compositeLinkFn() angular.js:5992 publicLinkFn() angular.js:5894 bootstrap/doBootstrap/</<() angular.js:1384 $RootScopeProvider/this.$get</Scope.prototype.$eval() angular.js:12418 $RootScopeProvider/this.$get</Scope.prototype.$apply() angular.js:12516 bootstrap/doBootstrap/<() angular.js:1382 invoke() angular.js:3873 bootstrap/doBootstrap() angular.js:1380 bootstrap() angular.js:1394 angularInit() angular.js:1307 angular.js:22040 x.Callbacks/l() jquery-2.0.3.min.js:4 x.Callbacks/c.fireWith() jquery-2.0.3.min.js:4 .ready() jquery-2.0.3.min.js:4 S() jquery-2.0.3.min.js:4

blackbadgerltd avatar Jul 02 '15 12:07 blackbadgerltd

Here is a stackoverflow on this issue: http://stackoverflow.com/questions/3250943/problems-with-execcommand-justification-in-firefox

Basically it happens because in the directive I set the contenteditable=true (or false) via the disabled scope parameter. This is so someone can disable the control if needed. It seems that Firefox doesnt like that I am setting it this way and wants contenteditable="true" right away. I will keep researching and see if I can figure out a better way to do this to avoid this error in Firefox. Thanks for letting me know

TerryMooreII avatar Jul 03 '15 02:07 TerryMooreII