���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/title.tar
���ѧ٧ѧ�
tests/behat/title.feature 0000644 00000001460 15152164475 0011502 0 ustar 00 @editor @editor_atto @atto @atto_title Feature: Atto title To format text in Atto, I need to add headings @javascript Scenario: Create a heading Given I log in as "admin" And I open my profile in edit mode And I set the field "Description" to "How The Rock Has Made the WWE World Heavyweight Title More Important Than Ever" And I select the text in the "Description" Atto editor When I click on "Paragraph styles" "button" When I click on "Heading (large)" "link" And I press "Update profile" And I follow "Preferences" in the user menu And I follow "Editor preferences" And I set the field "Text editor" to "Plain text area" And I press "Save changes" And I click on "Edit profile" "link" in the "region-main" "region" Then I should see "<h3>How The Rock" lib.php 0000644 00000002347 15152164475 0006043 0 ustar 00 <?php // 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 <http://www.gnu.org/licenses/>. /** * Atto text editor integration version file. * * @package atto_title * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); function atto_title_strings_for_js() { global $PAGE; $PAGE->requires->strings_for_js(array('h3', 'h4', 'h5', 'pre', 'p'), 'atto_title'); } version.php 0000644 00000002244 15152164475 0006756 0 ustar 00 <?php // 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 <http://www.gnu.org/licenses/>. /** * Atto text editor integration version file. * * @package atto_title * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ defined('MOODLE_INTERNAL') || die(); $plugin->version = 2022112800; // The current plugin version (Date: YYYYMMDDXX). $plugin->requires = 2022111800; // Requires this Moodle version. $plugin->component = 'atto_title'; // Full name of the plugin (used for diagnostics). classes/privacy/provider.php 0000644 00000002773 15152164475 0012244 0 ustar 00 <?php // 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 <http://www.gnu.org/licenses/>. /** * Privacy Subsystem implementation for block_activity_modules. * * @package atto_title * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace atto_title\privacy; defined('MOODLE_INTERNAL') || die(); /** * Privacy Subsystem for atto_title implementing null_provider. * * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @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'; } } yui/build/moodle-atto_title-button/moodle-atto_title-button-debug.js 0000644 00000004706 15152164475 0022010 0 ustar 00 YUI.add('moodle-atto_title-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 <http://www.gnu.org/licenses/>. /* * @package atto_title * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_title-button */ /** * Atto text editor title plugin. * * @namespace M.atto_title * @class button * @extends M.editor_atto.EditorPlugin */ var component = 'atto_title', styles = [ { text: 'h3', callbackArgs: '<h3>' }, { text: 'h4', callbackArgs: '<h4>' }, { text: 'h5', callbackArgs: '<h5>' }, { text: 'pre', callbackArgs: '<pre>' }, { text: 'p', callbackArgs: '<p>' } ]; Y.namespace('M.atto_title').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var items = []; Y.Array.each(styles, function(style) { items.push({ text: M.util.get_string(style.text, component), callbackArgs: style.callbackArgs }); }); this.addToolbarMenu({ icon: 'e/styleparagraph', globalItemConfig: { callback: this._changeStyle }, items: items }); }, /** * Change the title to the specified style. * * @method _changeStyle * @param {EventFacade} e * @param {string} color The new style * @private */ _changeStyle: function(e, style) { document.execCommand('formatBlock', false, style); // Mark as updated this.markUpdated(); } }); }, '@VERSION@', {"requires": ["moodle-editor_atto-plugin"]}); yui/build/moodle-atto_title-button/moodle-atto_title-button-min.js 0000644 00000001272 15152164475 0021500 0 ustar 00 YUI.add("moodle-atto_title-button",function(t,a){var e=[{text:"h3",callbackArgs:"<h3>"},{text:"h4",callbackArgs:"<h4>"},{text:"h5",callbackArgs:"<h5>"},{text:"pre",callbackArgs:"<pre>"},{text:"p",callbackArgs:"<p>"}];t.namespace("M.atto_title").Button=t.Base.create("button",t.M.editor_atto.EditorPlugin,[],{initializer:function(){var a=[];t.Array.each(e,function(t){a.push({text:M.util.get_string(t.text,"atto_title"),callbackArgs:t.callbackArgs})}),this.addToolbarMenu({icon:"e/styleparagraph",globalItemConfig:{callback:this._changeStyle},items:a})},_changeStyle:function(t,a){document.execCommand("formatBlock",!1,a),this.markUpdated()}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]}); yui/build/moodle-atto_title-button/moodle-atto_title-button.js 0000644 00000004706 15152164475 0020724 0 ustar 00 YUI.add('moodle-atto_title-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 <http://www.gnu.org/licenses/>. /* * @package atto_title * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_title-button */ /** * Atto text editor title plugin. * * @namespace M.atto_title * @class button * @extends M.editor_atto.EditorPlugin */ var component = 'atto_title', styles = [ { text: 'h3', callbackArgs: '<h3>' }, { text: 'h4', callbackArgs: '<h4>' }, { text: 'h5', callbackArgs: '<h5>' }, { text: 'pre', callbackArgs: '<pre>' }, { text: 'p', callbackArgs: '<p>' } ]; Y.namespace('M.atto_title').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var items = []; Y.Array.each(styles, function(style) { items.push({ text: M.util.get_string(style.text, component), callbackArgs: style.callbackArgs }); }); this.addToolbarMenu({ icon: 'e/styleparagraph', globalItemConfig: { callback: this._changeStyle }, items: items }); }, /** * Change the title to the specified style. * * @method _changeStyle * @param {EventFacade} e * @param {string} color The new style * @private */ _changeStyle: function(e, style) { document.execCommand('formatBlock', false, style); // Mark as updated this.markUpdated(); } }); }, '@VERSION@', {"requires": ["moodle-editor_atto-plugin"]}); yui/src/button/meta/button.json 0000644 00000000164 15152164475 0012623 0 ustar 00 { "moodle-atto_title-button": { "requires": [ "moodle-editor_atto-plugin" ] } } yui/src/button/build.json 0000644 00000000223 15152164475 0011455 0 ustar 00 { "name": "moodle-atto_title-button", "builds": { "moodle-atto_title-button": { "jsfiles": [ "button.js" ] } } } yui/src/button/js/button.js 0000644 00000004514 15152164475 0011757 0 ustar 00 // 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 <http://www.gnu.org/licenses/>. /* * @package atto_title * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_title-button */ /** * Atto text editor title plugin. * * @namespace M.atto_title * @class button * @extends M.editor_atto.EditorPlugin */ var component = 'atto_title', styles = [ { text: 'h3', callbackArgs: '<h3>' }, { text: 'h4', callbackArgs: '<h4>' }, { text: 'h5', callbackArgs: '<h5>' }, { text: 'pre', callbackArgs: '<pre>' }, { text: 'p', callbackArgs: '<p>' } ]; Y.namespace('M.atto_title').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var items = []; Y.Array.each(styles, function(style) { items.push({ text: M.util.get_string(style.text, component), callbackArgs: style.callbackArgs }); }); this.addToolbarMenu({ icon: 'e/styleparagraph', globalItemConfig: { callback: this._changeStyle }, items: items }); }, /** * Change the title to the specified style. * * @method _changeStyle * @param {EventFacade} e * @param {string} color The new style * @private */ _changeStyle: function(e, style) { document.execCommand('formatBlock', false, style); // Mark as updated this.markUpdated(); } }); lang/en/atto_title.php 0000644 00000002340 15152164475 0010761 0 ustar 00 <?php // 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 <http://www.gnu.org/licenses/>. /** * Strings for component 'atto_title', language 'en'. * * @package atto_title * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['h3'] = 'Heading (large)'; $string['h4'] = 'Heading (medium)'; $string['h5'] = 'Heading (small)'; $string['p'] = 'Paragraph'; $string['pluginname'] = 'Paragraph styles'; $string['pre'] = 'Pre-formatted'; $string['title'] = 'Paragraph styles'; $string['privacy:metadata'] = 'The atto_title plugin does not store any personal data.';
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0.01 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�