MDL-43870 atto_title: Remove quoted style
This commit is contained in:
committed by
Damyon Wiese
parent
5a06d5d71d
commit
c7ef8e455e
@@ -22,7 +22,6 @@
|
||||
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
|
||||
*/
|
||||
|
||||
$string['blockquote'] = 'Quoted';
|
||||
$string['h3'] = 'Heading 1';
|
||||
$string['h4'] = 'Heading 2';
|
||||
$string['h5'] = 'Heading 3';
|
||||
|
||||
@@ -30,7 +30,6 @@ function atto_title_strings_for_js() {
|
||||
$PAGE->requires->strings_for_js(array('h3',
|
||||
'h4',
|
||||
'h5',
|
||||
'blockquote',
|
||||
'pre',
|
||||
'p'), 'atto_title');
|
||||
}
|
||||
|
||||
Vendored
-5
@@ -36,9 +36,6 @@ M.atto_title = M.atto_title || {
|
||||
var click_pre = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<pre>');
|
||||
};
|
||||
var click_blockquote = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<blockquote>');
|
||||
};
|
||||
var click_p = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<p>');
|
||||
};
|
||||
@@ -47,7 +44,6 @@ M.atto_title = M.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');
|
||||
|
||||
var iconurl = M.util.image_url('e/styleprops', 'core');
|
||||
@@ -61,7 +57,6 @@ M.atto_title = M.atto_title || {
|
||||
{'text' : h4, 'handler' : click_h4},
|
||||
{'text' : h5, 'handler' : click_h5},
|
||||
{'text' : pre, 'handler' : click_pre},
|
||||
{'text' : blockquote, 'handler' : click_blockquote},
|
||||
{'text' : p, 'handler' : click_p}
|
||||
]);
|
||||
},
|
||||
|
||||
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=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"),p=M.util.image_url("e/styleprops","core");M.editor_atto.add_toolbar_menu(e.elementid,"title",p,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),M.editor_atto.text_updated(t)}}},"@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,"<p>")},o=M.util.get_string("h3","atto_title"),u=M.util.get_string("h4","atto_title"),a=M.util.get_string("h5","atto_title"),f=M.util.get_string("pre","atto_title"),l=M.util.get_string("p","atto_title"),c=M.util.image_url("e/styleprops","core");M.editor_atto.add_toolbar_menu(e.elementid,"title",c,e.group,[{text:o,handler:t},{text:u,handler:n},{text:a,handler:r},{text:f,handler:i},{text:l,handler:s}])},change_title:function(e,t,n){e.preventDefault(),M.editor_atto.is_active(t)||M.editor_atto.focus(t),document.execCommand("formatBlock",!1,n),M.editor_atto.text_updated(t)}}},"@VERSION@",{requires:["node"]});
|
||||
|
||||
Vendored
-5
@@ -36,9 +36,6 @@ M.atto_title = M.atto_title || {
|
||||
var click_pre = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<pre>');
|
||||
};
|
||||
var click_blockquote = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<blockquote>');
|
||||
};
|
||||
var click_p = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<p>');
|
||||
};
|
||||
@@ -47,7 +44,6 @@ M.atto_title = M.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');
|
||||
|
||||
var iconurl = M.util.image_url('e/styleprops', 'core');
|
||||
@@ -61,7 +57,6 @@ M.atto_title = M.atto_title || {
|
||||
{'text' : h4, 'handler' : click_h4},
|
||||
{'text' : h5, 'handler' : click_h5},
|
||||
{'text' : pre, 'handler' : click_pre},
|
||||
{'text' : blockquote, 'handler' : click_blockquote},
|
||||
{'text' : p, 'handler' : click_p}
|
||||
]);
|
||||
},
|
||||
|
||||
@@ -34,9 +34,6 @@ M.atto_title = M.atto_title || {
|
||||
var click_pre = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<pre>');
|
||||
};
|
||||
var click_blockquote = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<blockquote>');
|
||||
};
|
||||
var click_p = function(e, elementid) {
|
||||
M.atto_title.change_title(e, elementid, '<p>');
|
||||
};
|
||||
@@ -45,7 +42,6 @@ M.atto_title = M.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');
|
||||
|
||||
var iconurl = M.util.image_url('e/styleprops', 'core');
|
||||
@@ -59,7 +55,6 @@ M.atto_title = M.atto_title || {
|
||||
{'text' : h4, 'handler' : click_h4},
|
||||
{'text' : h5, 'handler' : click_h5},
|
||||
{'text' : pre, 'handler' : click_pre},
|
||||
{'text' : blockquote, 'handler' : click_blockquote},
|
||||
{'text' : p, 'handler' : click_p}
|
||||
]);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user