In Chrome: tinymce editor, select an iframe, javascript error(Failed to execute 'setBaseAndExtent' )

1,176 views
Skip to first unread message

WenChen Hol

unread,
Mar 22, 2017, 5:53:48 PM3/22/17
to Canvas LMS Users
Hi

In Chrome, when edit a page, mouse select an iframe, there will be a javascript error.
That causes the LTI resource_selection script not including the selection html text...

Below is the error message, also attach a screen grab. 
Can this be fixed ?
Thanks
Wen 

I am coding LTI richtext editor plugins, update element will need the editor to return the selected html text. It works well in the past, but suddenly it's not working in Chrome, fine when using firefox and IE.

courses/xxx/external_tools/3038/resource_selection?editor=1&selection= 


latest?_=1490217903358:3326 Uncaught DOMException: Failed to execute 'setBaseAndExtent' on 'Selection': There is no child at offset 1.
canvas-iframe-js-error.PNG

WenChen Hol

unread,
Apr 2, 2017, 5:32:46 PM4/2/17
to Canvas LMS Users
must be related to some of the extension installed on Chrome.
After reinstall chrome, the issue is gone.
Reply all
Reply to author
Forward
0 new messages