sleemanj / xinha

WYSIWYG HTML Editor Component (turns <textarea> into HTML editors)
http://trac.xinha.org/
Other
13 stars 2 forks source link

Safari 5.1.6 Webkit insertNodeAtSelection (Trac #1597) #1597

Closed sleemanj closed 3 years ago

sleemanj commented 12 years ago

Within the WebKit.js, the selection process for the object passed to insertNodeAtSelection at line 420 is always of node type DOCUMENT and not ELEMENT:

Xinha.prototype.getSelection = function() { return this._iframe.contentWindow.getSelection(); };

Therefore when switching on the node.NodeType on line 430, none of the cases are met and the text is just deleted and not replaced with underlined text.

Reported by guest, migrated from http://trac.xinha.org/ticket/1597

sleemanj commented 12 years ago

ejucovy changed cc to ejucovy

sleemanj commented 12 years ago

No steps to reproduce, I can't figure out what the problem is being talked about, chrome also uses Webkit and I use chrome with Xinha all the time and havn't come across anything that sounds like this.

Closing wontfix.