Fix for getContentText method. Do not treat content offsets with annotations as elements.

This commit is contained in:
Inez Korczynski 2011-12-05 20:10:50 +00:00
parent 2d7d4866bc
commit 09c0557929

View file

@ -268,7 +268,7 @@ es.DocumentModelNode.prototype.getContentText = function( range ) {
var text = '',
element = false;
for ( var i = 0, length = content.length; i < length; i++ ) {
if ( typeof content[i] === 'object' ) {
if ( typeof content[i].type === 'string' ) {
if ( i ) {
element = true;
}