mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-26 19:56:49 +00:00
Fix for getContentText method. Do not treat content offsets with annotations as elements.
This commit is contained in:
parent
2d7d4866bc
commit
09c0557929
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue