mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-28 08:10:35 +00:00
Get rid of range parameter in ve.ce.TextNode.prototype.getHtml as it is
not being used anyway. Change-Id: I7c54d35001fa0db6d7ab9d12f35ab2d841016f0d
This commit is contained in:
parent
dd6094842e
commit
ff40652099
|
@ -197,18 +197,12 @@ ve.ce.LeafNode.prototype.render = function() {
|
|||
};
|
||||
|
||||
/**
|
||||
* Gets an HTML rendering of a range of data within content model.
|
||||
* Gets an HTML rendering of data within content model.
|
||||
*
|
||||
* @method
|
||||
* @param {ve.Range} range Range of content to render
|
||||
* @param {String} Rendered HTML of data within content model
|
||||
*/
|
||||
ve.ce.TextNode.prototype.getHtml = function( range ) {
|
||||
if ( range ) {
|
||||
range.normalize();
|
||||
} else {
|
||||
range = { 'start': 0, 'end': undefined };
|
||||
}
|
||||
ve.ce.TextNode.prototype.getHtml = function() {
|
||||
var data = this.model.getDocument().getDataFromNode( this.model ),
|
||||
render = ve.ce.TextNode.renderAnnotation,
|
||||
htmlChars = ve.ce.TextNode.htmlCharacters;
|
||||
|
|
Loading…
Reference in a new issue