mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-15 18:39:52 +00:00
Document annotate method in surface model.
Comment cleanup Change-Id: Ifd3eeab9046f376529a827dfafdc28506845ac15
This commit is contained in:
parent
f958297102
commit
fd5eb80dd7
|
@ -64,8 +64,13 @@ ve.dm.Surface.prototype.transact = function( transaction ) {
|
||||||
this.emit( 'transact', transaction );
|
this.emit( 'transact', transaction );
|
||||||
};
|
};
|
||||||
|
|
||||||
/* converted method from surface view */
|
/**
|
||||||
|
* Applies an annotation to the current selection
|
||||||
|
*
|
||||||
|
* @method
|
||||||
|
* @param {String} annotation action: toggle, clear, set
|
||||||
|
* @param {Object} annotation object to apply.
|
||||||
|
*/
|
||||||
ve.dm.Surface.prototype.annotate = function( method, annotation ) {
|
ve.dm.Surface.prototype.annotate = function( method, annotation ) {
|
||||||
var selection = this.getSelection();
|
var selection = this.getSelection();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue