diff --git a/lib/editor/atto/plugins/fontsize/classes/privacy/provider.php b/lib/editor/atto/plugins/fontsize/classes/privacy/provider.php new file mode 100644 index 0000000000000..0f5ea34a1a904 --- /dev/null +++ b/lib/editor/atto/plugins/fontsize/classes/privacy/provider.php @@ -0,0 +1,36 @@ +. + +namespace atto_fontsize\privacy; + +/** + * Privacy Subsystem for atto_fontsize implementing null_provider. + * + * @package atto_fontsize + * @copyright 2018 Andrew Nicols + * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later + */ +class provider implements \core_privacy\local\metadata\null_provider { + /** + * Get the language string identifier with the component's language + * file to explain why this plugin stores no data. + * + * @return string + */ + public static function get_reason(): string { + return 'privacy:metadata'; + } +} diff --git a/lib/editor/atto/plugins/fontsize/composer.json b/lib/editor/atto/plugins/fontsize/composer.json new file mode 100644 index 0000000000000..b0dfbbb9f61bd --- /dev/null +++ b/lib/editor/atto/plugins/fontsize/composer.json @@ -0,0 +1,10 @@ +{ + "name": "andrewnicols/moodle-atto_fontsize", + "type": "moodle-atto", + "require": { + "composer/installers": "~1.0" + }, + "extra": { + "installer-name": "fontsize" + } +} diff --git a/lib/editor/atto/plugins/fontsize/lang/en/atto_fontsize.php b/lib/editor/atto/plugins/fontsize/lang/en/atto_fontsize.php index 57ae0768671f8..bc5fd45cd764d 100644 --- a/lib/editor/atto/plugins/fontsize/lang/en/atto_fontsize.php +++ b/lib/editor/atto/plugins/fontsize/lang/en/atto_fontsize.php @@ -23,3 +23,4 @@ */ $string['pluginname'] = 'Font size'; +$string['privacy:metadata'] = 'The atto_fontsize plugin does not store any personal data.'; diff --git a/lib/editor/atto/plugins/fontsize/styles.css b/lib/editor/atto/plugins/fontsize/styles.css index ef1274b0d9cb0..94662750f822e 100644 --- a/lib/editor/atto/plugins/fontsize/styles.css +++ b/lib/editor/atto/plugins/fontsize/styles.css @@ -1,3 +1,3 @@ .atto_fontsize_button .dropdown-menu a { - line-height: normal; + line-height: normal; } diff --git a/lib/editor/atto/plugins/fontsize/version.php b/lib/editor/atto/plugins/fontsize/version.php index f41d245d5f77b..56b817dbbfd75 100644 --- a/lib/editor/atto/plugins/fontsize/version.php +++ b/lib/editor/atto/plugins/fontsize/version.php @@ -24,7 +24,7 @@ defined('MOODLE_INTERNAL') || die(); -$plugin->version = 2015042701; // The current plugin version (Date: YYYYMMDDXX). +$plugin->version = 2023091901; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2014050800; // Requires this Moodle version. $plugin->component = 'atto_fontsize'; // Full name of the plugin (used for diagnostics). $plugin->maturity = MATURITY_STABLE; diff --git a/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-coverage.js b/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-coverage.js deleted file mode 100644 index 52b5663159779..0000000000000 --- a/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-coverage.js +++ /dev/null @@ -1,6 +0,0 @@ -if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } -if (!__coverage__['build/moodle-atto_fontsize-button/moodle-atto_fontsize-button.js']) { - __coverage__['build/moodle-atto_fontsize-button/moodle-atto_fontsize-button.js'] = {"path":"build/moodle-atto_fontsize-button/moodle-atto_fontsize-button.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0},"b":{},"f":{"1":0,"2":0,"3":0,"4":0},"fnMap":{"1":{"name":"(anonymous_1)","line":1,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":58}}},"2":{"name":"(anonymous_2)","line":55,"loc":{"start":{"line":55,"column":17},"end":{"line":55,"column":28}}},"3":{"name":"(anonymous_3)","line":57,"loc":{"start":{"line":57,"column":28},"end":{"line":57,"column":43}}},"4":{"name":"(anonymous_4)","line":84,"loc":{"start":{"line":84,"column":18},"end":{"line":84,"column":36}}}},"statementMap":{"1":{"start":{"line":1,"column":0},"end":{"line":92,"column":16}},"2":{"start":{"line":36,"column":0},"end":{"line":52,"column":6}},"3":{"start":{"line":54,"column":0},"end":{"line":89,"column":3}},"4":{"start":{"line":56,"column":8},"end":{"line":56,"column":23}},"5":{"start":{"line":57,"column":8},"end":{"line":63,"column":11}},"6":{"start":{"line":58,"column":12},"end":{"line":62,"column":15}},"7":{"start":{"line":65,"column":8},"end":{"line":72,"column":11}},"8":{"start":{"line":85,"column":8},"end":{"line":87,"column":11}}},"branchMap":{},"code":["(function () { YUI.add('moodle-atto_fontsize-button', function (Y, NAME) {","","// This file is part of Moodle - http://moodle.org/","//","// Moodle is free software: you can redistribute it and/or modify","// it under the terms of the GNU General Public License as published by","// the Free Software Foundation, either version 3 of the License, or","// (at your option) any later version.","//","// Moodle is distributed in the hope that it will be useful,","// but WITHOUT ANY WARRANTY; without even the implied warranty of","// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the","// GNU General Public License for more details.","//","// You should have received a copy of the GNU General Public License","// along with Moodle. If not, see .","","/*"," * @package atto_fontsize"," * @copyright 2014 Andrew Nicols 2015 Adam Jenkins"," * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later"," */","","/**"," * @module moodle-atto_fontsize-button"," */","","/**"," * Atto text editor fontsize plugin."," *"," * @namespace M.atto_fontsize"," * @class button"," * @extends M.editor_atto.EditorPlugin"," */","","var sizes = ["," {"," name: \"xx-small\""," }, {"," name: \"x-small\""," }, {"," name: \"small\""," }, {"," name: \"medium\""," }, {"," name: \"large\""," }, {"," name: \"x-large\""," }, {"," name: \"xx-large\""," }"," ];","","Y.namespace('M.atto_fontsize').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], {"," initializer: function() {"," var items = [];"," Y.Array.each(sizes, function(size) {"," items.push({"," text: '' + size.name + '',"," callbackArgs: size.name,"," callback: this._changeStyle"," });"," });",""," this.addToolbarMenu({"," globalItemConfig: {"," callback: this._changeStyle"," },"," icon: 'icon',"," iconComponent: 'atto_fontsize',"," items: items"," });"," },",""," /**"," * Change the font size to the specified size."," *"," * @method _changeStyle"," * @param {EventFacade} e"," * @param {string} size The new font size"," * @private"," */",""," _changeStyle: function(e, size) {"," this.get('host').formatSelectionInlineStyle({"," fontSize: size"," });"," }","});","","","}, '@VERSION@');","","}());"]}; -} -var __cov_NK9lxwMI1FfgTt6KCVTkGg = __coverage__['build/moodle-atto_fontsize-button/moodle-atto_fontsize-button.js']; -__cov_NK9lxwMI1FfgTt6KCVTkGg.s['1']++;YUI.add('moodle-atto_fontsize-button',function(Y,NAME){__cov_NK9lxwMI1FfgTt6KCVTkGg.f['1']++;__cov_NK9lxwMI1FfgTt6KCVTkGg.s['2']++;var sizes=[{name:'xx-small'},{name:'x-small'},{name:'small'},{name:'medium'},{name:'large'},{name:'x-large'},{name:'xx-large'}];__cov_NK9lxwMI1FfgTt6KCVTkGg.s['3']++;Y.namespace('M.atto_fontsize').Button=Y.Base.create('button',Y.M.editor_atto.EditorPlugin,[],{initializer:function(){__cov_NK9lxwMI1FfgTt6KCVTkGg.f['2']++;__cov_NK9lxwMI1FfgTt6KCVTkGg.s['4']++;var items=[];__cov_NK9lxwMI1FfgTt6KCVTkGg.s['5']++;Y.Array.each(sizes,function(size){__cov_NK9lxwMI1FfgTt6KCVTkGg.f['3']++;__cov_NK9lxwMI1FfgTt6KCVTkGg.s['6']++;items.push({text:''+size.name+'',callbackArgs:size.name,callback:this._changeStyle});});__cov_NK9lxwMI1FfgTt6KCVTkGg.s['7']++;this.addToolbarMenu({globalItemConfig:{callback:this._changeStyle},icon:'icon',iconComponent:'atto_fontsize',items:items});},_changeStyle:function(e,size){__cov_NK9lxwMI1FfgTt6KCVTkGg.f['4']++;__cov_NK9lxwMI1FfgTt6KCVTkGg.s['8']++;this.get('host').formatSelectionInlineStyle({fontSize:size});}});},'@VERSION@'); diff --git a/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-min.js b/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-min.js index a4181da1187ae..5e8c4ab7c4128 100644 --- a/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-min.js +++ b/lib/editor/atto/plugins/fontsize/yui/build/moodle-atto_fontsize-button/moodle-atto_fontsize-button-min.js @@ -1 +1 @@ -YUI.add("moodle-atto_fontsize-button",function(e,t){var n=[{name:"xx-small"},{name:"x-small"},{name:"small"},{name:"medium"},{name:"large"},{name:"x-large"},{name:"xx-large"}];e.namespace("M.atto_fontsize").Button=e.Base.create("button",e.M.editor_atto.EditorPlugin,[],{initializer:function(){var t=[];e.Array.each(n,function(e){t.push({text:''+e.name+"",callbackArgs:e.name,callback:this._changeStyle})}),this.addToolbarMenu({globalItemConfig:{callback:this._changeStyle},icon:"icon",iconComponent:"atto_fontsize",items:t})},_changeStyle:function(e,t){this.get("host").formatSelectionInlineStyle({fontSize:t})}})},"@VERSION@"); +YUI.add("moodle-atto_fontsize-button",function(a,e){var t=[{name:"xx-small"},{name:"x-small"},{name:"small"},{name:"medium"},{name:"large"},{name:"x-large"},{name:"xx-large"}];a.namespace("M.atto_fontsize").Button=a.Base.create("button",a.M.editor_atto.EditorPlugin,[],{initializer:function(){var e=[];a.Array.each(t,function(a){e.push({text:''+a.name+"",callbackArgs:a.name,callback:this._changeStyle})}),this.addToolbarMenu({globalItemConfig:{callback:this._changeStyle},icon:"icon",iconComponent:"atto_fontsize",items:e})},_changeStyle:function(a,e){this.get("host").formatSelectionInlineStyle({fontSize:e})}})},"@VERSION@"); \ No newline at end of file