jquery - tinyMCE script errors when editing pasted content -


i posted following in tinymce community forum have not heard response, thought broaden audience posting here. kind of long, because found additional information - apologize ;)

in brief: have clients getting script errors such as: "unable property 'haschildnodes' of undefined or null reference" "unable property 'nextsibling' of undefined or null reference" etc... occurs after paste in content, go , edit text (delete word, , hit enter key)


we have run issue of our clients seeing script errors when trying edit text within tinymce. @ first thought issue paste, part of workflow involves pasting text other locations (such word) , editing content.

after pasting in content, if select portion of text, delete it, , hit enter javascript error displayed.

unable property 'haschildnodes' of undefined or null reference

however, error can seen when typing in text, deleting portion of it.

unable property 'nextsibling' of undefined or null reference

from can tell, in of these cases there non-breaking space ( ) either before or after cursor when error appears.

unfortunately, have customers see error, , not. have mixture of use cases - customers using stand alone browser error not seen

the other use case customers accessing our website via application, using .net browser control. unfortunately, in case, users using same version of application hosting browser control see issue, , users not. appears there may environmental differences between these users affecting this, @ loss identify differences are.

since cannot reproduce issue locally @ all, debugging has been big pain.

i have theory related browser compatibility, since browser control will, apparently, default ie7, no matter version of ie installed on computer. however, expect behavior similar between installs - unless how there configuration @ environment level making difference.

has else seen this, , know how address issue?

additional note, have traced error mentioned above (haschildnodes) within specific area within rangeutils. looks in scenario startcontainer null/undefined. hence error. related how ie7 handles empty paragraphs/blocks using contenteditable?

rangeutils.getselectednode = function(range) {     var startcontainer = range.startcontainer,         startoffset = range.startoffset;      if (startcontainer.haschildnodes() && range.endoffset == startoffset + 1) {         return startcontainer.childnodes[startoffset];     }      return null; }; 

update here discovered recently. since loading tinymce jquery dialog, end couple of iframes. set height of dialog specific value, height of tinymce.

once exceed visible height of text editor area scrollbar. now, if tinymce not fitting within dialog height, scrollbar there well.

the error reported above seems happening in scenario (still not able repro locally, have been on webex calls clients , been able walk through them). else observed in scenario once both scrollbars appear, when hit enter doesnt cursor moves. , client not able click @ end of line , hit enter, etc. granted, - there no visible sign (other seeing scrollbar lengthen) happening. so... cursor not visible.

here part of theory have, though @ loss how validate, or fix.

in scenario cursor reason not visible, when hit enter key within paragraph tinymce finding cursor location (i think) paragraph tag can terminated, , new 1 inserted.

if cursor not visible, account errors such mentioned above?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -