Closed (fixed)
Project:
Scald: Media Management made easy
Version:
7.x-1.x-dev
Component:
Library/DnD
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Jan 2015 at 04:44 UTC
Updated:
21 Apr 2015 at 07:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
nagy.balint commentedConfirmed, after enabling "Plugin to count symbols, symbols without blanks and words"
After saving a node, and reopening the edit form, the following errors appear:
---------------
plugin.js?t=EAPE:67:
Uncaught TypeError: Cannot read property 'getHtml' of undefined
CKEDITOR.plugins.add.init.editor.widgets.add.downcast
...
--------------
ckeditor.js?nmeljs:594
Uncaught TypeError: Cannot read property 'getRanges' of null
(anonymous function)
ckeditor.js?nmeljs:630
CKEDITOR.menu.CKEDITOR.tools.createClass._.onShow
...
-----------
Comment #2
nagy.balint commentedSo far it seems that this line in ckeditor module
var text = ev.editor.getData();inside the
function count( ev )in ckeditor/plugins/counter/plugin.js breaks it, if I comment this single line everything works. (except counting of course).Comment #3
nagy.balint commentedSo far i realized that the issue is with the events getData calls:
!internal && this.fire( 'beforeGetData' );!internal && this.fire( 'getData', eventData );As if i call it with true parameter (internal)
Then it does not throw any errors (it does not get the proper updated text though)
Comment #4
nagy.balint commentedManaged to solve the issue.
It seems that simply when there is no caption, then it does not exist and then this.editables.caption.getHtml() will fail. So an additional check there and all is fine :)
Comment #5
nagy.balint commentedCommitted.
Comment #6
nagy.balint commented