���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home3/cpr76684/public_html/strike.tar
���ѧ٧ѧ�
tests/behat/strike.feature 0000644 00000001407 15152164405 0011654 0 ustar 00 @editor @editor_atto @atto @atto_strike @_bug_phantomjs Feature: Atto strike button To format text in Atto, I need to use the strike button. @javascript Scenario: Strike some text Given I log in as "admin" And I open my profile in edit mode And I set the field "Description" to "MUA" And I select the text in the "Description" Atto editor And I click on "Show more buttons" "button" When I click on "Strike through" "button" 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 "<del>MUA</del>" version.php 0000644 00000002246 15152164405 0006751 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_strike * @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_strike'; // Full name of the plugin (used for diagnostics). classes/privacy/provider.php 0000644 00000002776 15152164405 0012240 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_strike * @copyright 2018 Andrew Nicols <andrew@nicols.co.uk> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ namespace atto_strike\privacy; defined('MOODLE_INTERNAL') || die(); /** * Privacy Subsystem for atto_strike 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_strike-button/moodle-atto_strike-button-debug.js 0000644 00000004314 15152164405 0022334 0 ustar 00 YUI.add('moodle-atto_strike-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_strike * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_strike-button */ /** * Atto text editor strike plugin. * * @namespace M.atto_strike * @class button * @extends M.editor_atto.EditorPlugin */ Y.namespace('M.atto_strike').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var strike; this.addButton({ callback: this._toggleStrike, icon: 'e/strikethrough', buttonName: strike, inlineFormat: true, // Watch the following tags and add/remove highlighting as appropriate: tags: 'del, strike' }); this._strikeApplier = window.rangy.createClassApplier("bf-editor-strike-del"); }, /** * Toggle the strikethrough setting. * * @method _toggleStrike */ _toggleStrike: function() { var host = this.get('host'); // Change all <del> and <strike> tags to applier class. host.changeToCSS('del', 'bf-editor-strike-del'); host.changeToCSS('strike', 'bf-editor-strike-del'); // Use the applier toggle selection. this._strikeApplier.toggleSelection(); // Then change the applier class back to <del> tags. host.changeToTags('bf-editor-strike-del', 'del'); } }); }, '@VERSION@', {"requires": ["moodle-editor_atto-plugin"]}); yui/build/moodle-atto_strike-button/moodle-atto_strike-button-min.js 0000644 00000001204 15152164405 0022024 0 ustar 00 YUI.add("moodle-atto_strike-button",function(t,e){t.namespace("M.atto_strike").Button=t.Base.create("button",t.M.editor_atto.EditorPlugin,[],{initializer:function(){this.addButton({callback:this._toggleStrike,icon:"e/strikethrough",buttonName:void 0,inlineFormat:!0,tags:"del, strike"}),this._strikeApplier=window.rangy.createClassApplier("bf-editor-strike-del")},_toggleStrike:function(){var t=this.get("host");t.changeToCSS("del","bf-editor-strike-del"),t.changeToCSS("strike","bf-editor-strike-del"),this._strikeApplier.toggleSelection(),t.changeToTags("bf-editor-strike-del","del")}})},"@VERSION@",{requires:["moodle-editor_atto-plugin"]}); yui/build/moodle-atto_strike-button/moodle-atto_strike-button.js 0000644 00000004314 15152164405 0021250 0 ustar 00 YUI.add('moodle-atto_strike-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_strike * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_strike-button */ /** * Atto text editor strike plugin. * * @namespace M.atto_strike * @class button * @extends M.editor_atto.EditorPlugin */ Y.namespace('M.atto_strike').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var strike; this.addButton({ callback: this._toggleStrike, icon: 'e/strikethrough', buttonName: strike, inlineFormat: true, // Watch the following tags and add/remove highlighting as appropriate: tags: 'del, strike' }); this._strikeApplier = window.rangy.createClassApplier("bf-editor-strike-del"); }, /** * Toggle the strikethrough setting. * * @method _toggleStrike */ _toggleStrike: function() { var host = this.get('host'); // Change all <del> and <strike> tags to applier class. host.changeToCSS('del', 'bf-editor-strike-del'); host.changeToCSS('strike', 'bf-editor-strike-del'); // Use the applier toggle selection. this._strikeApplier.toggleSelection(); // Then change the applier class back to <del> tags. host.changeToTags('bf-editor-strike-del', 'del'); } }); }, '@VERSION@', {"requires": ["moodle-editor_atto-plugin"]}); yui/src/button/meta/button.json 0000644 00000000165 15152164405 0012615 0 ustar 00 { "moodle-atto_strike-button": { "requires": [ "moodle-editor_atto-plugin" ] } } yui/src/button/build.json 0000644 00000000225 15152164405 0011450 0 ustar 00 { "name": "moodle-atto_strike-button", "builds": { "moodle-atto_strike-button": { "jsfiles": [ "button.js" ] } } } yui/src/button/js/button.js 0000644 00000004121 15152164405 0011742 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_strike * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ /** * @module moodle-atto_strike-button */ /** * Atto text editor strike plugin. * * @namespace M.atto_strike * @class button * @extends M.editor_atto.EditorPlugin */ Y.namespace('M.atto_strike').Button = Y.Base.create('button', Y.M.editor_atto.EditorPlugin, [], { initializer: function() { var strike; this.addButton({ callback: this._toggleStrike, icon: 'e/strikethrough', buttonName: strike, inlineFormat: true, // Watch the following tags and add/remove highlighting as appropriate: tags: 'del, strike' }); this._strikeApplier = window.rangy.createClassApplier("bf-editor-strike-del"); }, /** * Toggle the strikethrough setting. * * @method _toggleStrike */ _toggleStrike: function() { var host = this.get('host'); // Change all <del> and <strike> tags to applier class. host.changeToCSS('del', 'bf-editor-strike-del'); host.changeToCSS('strike', 'bf-editor-strike-del'); // Use the applier toggle selection. this._strikeApplier.toggleSelection(); // Then change the applier class back to <del> tags. host.changeToTags('bf-editor-strike-del', 'del'); } }); lang/en/atto_strike.php 0000644 00000002022 15152164405 0011127 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_strike', language 'en'. * * @package atto_strike * @copyright 2013 Damyon Wiese <damyon@moodle.com> * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $string['pluginname'] = 'Strike through'; $string['privacy:metadata'] = 'The atto_strike plugin does not store any personal data.';
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�