MDL-42026 Atto: Remove the styles from the headings menu + focus when opened
This commit is contained in:
Vendored
+6
-6
@@ -43,12 +43,12 @@ M.atto_title = M.atto_title || {
|
||||
M.atto_title.change_title(e, elementid, '<p>');
|
||||
};
|
||||
|
||||
var h3 = '<h3>' + M.util.get_string('h3', 'atto_title') + '</h3>';
|
||||
var h4 = '<h4>' + M.util.get_string('h4', 'atto_title') + '</h4>';
|
||||
var h5 = '<h5>' + M.util.get_string('h5', 'atto_title') + '</h5>';
|
||||
var pre = '<pre>' + M.util.get_string('pre', 'atto_title') + '</pre>';
|
||||
var blockquote = '<p> ' + M.util.get_string('blockquote', 'atto_title') + '</p>';
|
||||
var p = '<p>' + M.util.get_string('p', 'atto_title') + '</p>';
|
||||
var h3 = M.util.get_string('h3', 'atto_title');
|
||||
var h4 = M.util.get_string('h4', 'atto_title');
|
||||
var h5 = M.util.get_string('h5', 'atto_title');
|
||||
var pre = M.util.get_string('pre', 'atto_title');
|
||||
var blockquote = M.util.get_string('blockquote', 'atto_title');
|
||||
var p = M.util.get_string('p', 'atto_title');
|
||||
|
||||
M.editor_atto.add_toolbar_menu(params.elementid,
|
||||
'title',
|
||||
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
YUI.add("moodle-atto_title-button",function(e,t){M.atto_title=M.atto_title||{init:function(e){var t=function(e,t){M.atto_title.change_title(e,t,"<h3>")},n=function(e,t){M.atto_title.change_title(e,t,"<h4>")},r=function(e,t){M.atto_title.change_title(e,t,"<h5>")},i=function(e,t){M.atto_title.change_title(e,t,"<pre>")},s=function(e,t){M.atto_title.change_title(e,t,"<blockquote>")},o=function(e,t){M.atto_title.change_title(e,t,"<p>")},u="<h3>"+M.util.get_string("h3","atto_title")+"</h3>",a="<h4>"+M.util.get_string("h4","atto_title")+"</h4>",f="<h5>"+M.util.get_string("h5","atto_title")+"</h5>",l="<pre>"+M.util.get_string("pre","atto_title")+"</pre>",c="<p> "+M.util.get_string("blockquote","atto_title")+"</p>",h="<p>"+M.util.get_string("p","atto_title")+"</p>";M.editor_atto.add_toolbar_menu(e.elementid,"title",e.icon,e.group,[{text:u,handler:t},{text:a,handler:n},{text:f,handler:r},{text:l,handler:i},{text:c,handler:s},{text:h,handler:o}])},change_title:function(e,t,n){e.preventDefault(),M.editor_atto.is_active(t)||M.editor_atto.focus(t),document.execCommand("formatBlock",!1,n)}}},"@VERSION@",{requires:["node"]});
|
||||
YUI.add("moodle-atto_title-button",function(e,t){M.atto_title=M.atto_title||{init:function(e){var t=function(e,t){M.atto_title.change_title(e,t,"<h3>")},n=function(e,t){M.atto_title.change_title(e,t,"<h4>")},r=function(e,t){M.atto_title.change_title(e,t,"<h5>")},i=function(e,t){M.atto_title.change_title(e,t,"<pre>")},s=function(e,t){M.atto_title.change_title(e,t,"<blockquote>")},o=function(e,t){M.atto_title.change_title(e,t,"<p>")},u=M.util.get_string("h3","atto_title"),a=M.util.get_string("h4","atto_title"),f=M.util.get_string("h5","atto_title"),l=M.util.get_string("pre","atto_title"),c=M.util.get_string("blockquote","atto_title"),h=M.util.get_string("p","atto_title");M.editor_atto.add_toolbar_menu(e.elementid,"title",e.icon,e.group,[{text:u,handler:t},{text:a,handler:n},{text:f,handler:r},{text:l,handler:i},{text:c,handler:s},{text:h,handler:o}])},change_title:function(e,t,n){e.preventDefault(),M.editor_atto.is_active(t)||M.editor_atto.focus(t),document.execCommand("formatBlock",!1,n)}}},"@VERSION@",{requires:["node"]});
|
||||
|
||||
Vendored
+6
-6
@@ -43,12 +43,12 @@ M.atto_title = M.atto_title || {
|
||||
M.atto_title.change_title(e, elementid, '<p>');
|
||||
};
|
||||
|
||||
var h3 = '<h3>' + M.util.get_string('h3', 'atto_title') + '</h3>';
|
||||
var h4 = '<h4>' + M.util.get_string('h4', 'atto_title') + '</h4>';
|
||||
var h5 = '<h5>' + M.util.get_string('h5', 'atto_title') + '</h5>';
|
||||
var pre = '<pre>' + M.util.get_string('pre', 'atto_title') + '</pre>';
|
||||
var blockquote = '<p> ' + M.util.get_string('blockquote', 'atto_title') + '</p>';
|
||||
var p = '<p>' + M.util.get_string('p', 'atto_title') + '</p>';
|
||||
var h3 = M.util.get_string('h3', 'atto_title');
|
||||
var h4 = M.util.get_string('h4', 'atto_title');
|
||||
var h5 = M.util.get_string('h5', 'atto_title');
|
||||
var pre = M.util.get_string('pre', 'atto_title');
|
||||
var blockquote = M.util.get_string('blockquote', 'atto_title');
|
||||
var p = M.util.get_string('p', 'atto_title');
|
||||
|
||||
M.editor_atto.add_toolbar_menu(params.elementid,
|
||||
'title',
|
||||
|
||||
@@ -41,12 +41,12 @@ M.atto_title = M.atto_title || {
|
||||
M.atto_title.change_title(e, elementid, '<p>');
|
||||
};
|
||||
|
||||
var h3 = '<h3>' + M.util.get_string('h3', 'atto_title') + '</h3>';
|
||||
var h4 = '<h4>' + M.util.get_string('h4', 'atto_title') + '</h4>';
|
||||
var h5 = '<h5>' + M.util.get_string('h5', 'atto_title') + '</h5>';
|
||||
var pre = '<pre>' + M.util.get_string('pre', 'atto_title') + '</pre>';
|
||||
var blockquote = '<p> ' + M.util.get_string('blockquote', 'atto_title') + '</p>';
|
||||
var p = '<p>' + M.util.get_string('p', 'atto_title') + '</p>';
|
||||
var h3 = M.util.get_string('h3', 'atto_title');
|
||||
var h4 = M.util.get_string('h4', 'atto_title');
|
||||
var h5 = M.util.get_string('h5', 'atto_title');
|
||||
var pre = M.util.get_string('pre', 'atto_title');
|
||||
var blockquote = M.util.get_string('blockquote', 'atto_title');
|
||||
var p = M.util.get_string('p', 'atto_title');
|
||||
|
||||
M.editor_atto.add_toolbar_menu(params.elementid,
|
||||
'title',
|
||||
|
||||
+2
@@ -72,6 +72,7 @@ M.editor_atto = M.editor_atto || {
|
||||
}
|
||||
}, this);
|
||||
overlay.show();
|
||||
overlay.bodyNode.one('a').focus();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -202,6 +203,7 @@ M.editor_atto = M.editor_atto || {
|
||||
'</div>'));
|
||||
if (!M.editor_atto.buttonhandlers[plugin + '_action_' + i]) {
|
||||
Y.one('body').delegate('click', M.editor_atto.buttonclicked_handler, '.atto_' + plugin + '_action_' + i);
|
||||
Y.one('body').delegate('key', M.editor_atto.buttonclicked_handler, 'space,enter', '.atto_' + plugin + '_action_' + i);
|
||||
M.editor_atto.buttonhandlers[plugin + '_action_' + i] = entry.handler;
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
+2
@@ -72,6 +72,7 @@ M.editor_atto = M.editor_atto || {
|
||||
}
|
||||
}, this);
|
||||
overlay.show();
|
||||
overlay.bodyNode.one('a').focus();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -202,6 +203,7 @@ M.editor_atto = M.editor_atto || {
|
||||
'</div>'));
|
||||
if (!M.editor_atto.buttonhandlers[plugin + '_action_' + i]) {
|
||||
Y.one('body').delegate('click', M.editor_atto.buttonclicked_handler, '.atto_' + plugin + '_action_' + i);
|
||||
Y.one('body').delegate('key', M.editor_atto.buttonclicked_handler, 'space,enter', '.atto_' + plugin + '_action_' + i);
|
||||
M.editor_atto.buttonhandlers[plugin + '_action_' + i] = entry.handler;
|
||||
}
|
||||
}
|
||||
|
||||
+2
@@ -70,6 +70,7 @@ M.editor_atto = M.editor_atto || {
|
||||
}
|
||||
}, this);
|
||||
overlay.show();
|
||||
overlay.bodyNode.one('a').focus();
|
||||
}
|
||||
},
|
||||
|
||||
@@ -200,6 +201,7 @@ M.editor_atto = M.editor_atto || {
|
||||
'</div>'));
|
||||
if (!M.editor_atto.buttonhandlers[plugin + '_action_' + i]) {
|
||||
Y.one('body').delegate('click', M.editor_atto.buttonclicked_handler, '.atto_' + plugin + '_action_' + i);
|
||||
Y.one('body').delegate('key', M.editor_atto.buttonclicked_handler, 'space,enter', '.atto_' + plugin + '_action_' + i);
|
||||
M.editor_atto.buttonhandlers[plugin + '_action_' + i] = entry.handler;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user