mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-41237 Atto: Add missing js method docs.
This commit is contained in:
parent
2b6361305d
commit
a01914128d
3 changed files with 18 additions and 3 deletions
|
@ -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) {
|
||||
e.preventDefault();
|
||||
if (!M.editor_atto.is_active(elementid)) {
|
||||
|
@ -73,5 +79,4 @@ M.atto_title = M.atto_title || {
|
|||
};
|
||||
|
||||
|
||||
|
||||
}, '@VERSION@', {"requires": ["node"]});
|
||||
|
|
|
@ -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) {
|
||||
e.preventDefault();
|
||||
if (!M.editor_atto.is_active(elementid)) {
|
||||
|
@ -73,5 +79,4 @@ M.atto_title = M.atto_title || {
|
|||
};
|
||||
|
||||
|
||||
|
||||
}, '@VERSION@', {"requires": ["node"]});
|
||||
|
|
|
@ -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) {
|
||||
e.preventDefault();
|
||||
if (!M.editor_atto.is_active(elementid)) {
|
||||
|
@ -69,4 +75,3 @@ M.atto_title = M.atto_title || {
|
|||
document.execCommand('formatBlock', false, node);
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue