MDL-41237 Atto: Add missing js method docs.

This commit is contained in:
Damyon Wiese 2013-09-10 14:29:08 +08:00
parent 2b6361305d
commit a01914128d
3 changed files with 18 additions and 3 deletions

View file

@ -63,6 +63,12 @@ M.atto_title = M.atto_title || {
]); ]);
}, },
/**
* Handle a choice from the menu (insert the node in the text editor matching elementid).
* @param event e - The event that triggered this.
* @param string elementid - The id of the editor
* @param string node - The html to insert
*/
change_title : function(e, elementid, node) { change_title : function(e, elementid, node) {
e.preventDefault(); e.preventDefault();
if (!M.editor_atto.is_active(elementid)) { if (!M.editor_atto.is_active(elementid)) {
@ -73,5 +79,4 @@ M.atto_title = M.atto_title || {
}; };
}, '@VERSION@', {"requires": ["node"]}); }, '@VERSION@', {"requires": ["node"]});

View file

@ -63,6 +63,12 @@ M.atto_title = M.atto_title || {
]); ]);
}, },
/**
* Handle a choice from the menu (insert the node in the text editor matching elementid).
* @param event e - The event that triggered this.
* @param string elementid - The id of the editor
* @param string node - The html to insert
*/
change_title : function(e, elementid, node) { change_title : function(e, elementid, node) {
e.preventDefault(); e.preventDefault();
if (!M.editor_atto.is_active(elementid)) { if (!M.editor_atto.is_active(elementid)) {
@ -73,5 +79,4 @@ M.atto_title = M.atto_title || {
}; };
}, '@VERSION@', {"requires": ["node"]}); }, '@VERSION@', {"requires": ["node"]});

View file

@ -61,6 +61,12 @@ M.atto_title = M.atto_title || {
]); ]);
}, },
/**
* Handle a choice from the menu (insert the node in the text editor matching elementid).
* @param event e - The event that triggered this.
* @param string elementid - The id of the editor
* @param string node - The html to insert
*/
change_title : function(e, elementid, node) { change_title : function(e, elementid, node) {
e.preventDefault(); e.preventDefault();
if (!M.editor_atto.is_active(elementid)) { if (!M.editor_atto.is_active(elementid)) {
@ -69,4 +75,3 @@ M.atto_title = M.atto_title || {
document.execCommand('formatBlock', false, node); document.execCommand('formatBlock', false, node);
} }
}; };