Changeset 3314137
- Timestamp:
- 06/18/2025 07:44:34 PM (9 months ago)
- Location:
- light-code-block/trunk
- Files:
-
- 5 edited
-
assets/css/tinymce.css (modified) (1 diff)
-
assets/js/tinymce.js (modified) (2 diffs)
-
bootstrap.php (modified) (1 diff)
-
light-code-block.php (modified) (1 diff)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
light-code-block/trunk/assets/css/tinymce.css
r3313460 r3314137 1 1 .mce-light-code-block, 2 .mce-simple- code-block{2 .mce-simple-block-code { 3 3 padding: 10px; 4 4 color: #ccc; -
light-code-block/trunk/assets/js/tinymce.js
r3313460 r3314137 28 28 div.innerText = api.data.code; 29 29 30 editor.selection.setContent( '<pre class="mce- simple-code-block mce-light-code-block" contenteditable="false">' + div.innerHTML + '</pre>' );30 editor.selection.setContent( '<pre class="mce-light-code-block mce-simple-block-code" contenteditable="false">' + div.innerHTML + '</pre>' ); 31 31 } 32 32 } … … 48 48 'click', 49 49 function( e ) { 50 if ( editor.dom.hasClass( e.target, 'mce- simple-code-block' ) ) {50 if ( editor.dom.hasClass( e.target, 'mce-light-code-block' ) || editor.dom.hasClass( e.target, 'mce-simple-block-code' ) ) { 51 51 let code = e.target.innerHTML; 52 52 -
light-code-block/trunk/bootstrap.php
r3313460 r3314137 12 12 13 13 const PATH = __DIR__; 14 const VERSION = '1.0. 0';14 const VERSION = '1.0.1'; 15 15 16 16 define( 'PLANCE_PLUGIN_LIGHT_CODE_BLOCK_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) ); -
light-code-block/trunk/light-code-block.php
r3313460 r3314137 8 8 * Description: Adds a button to the TinyMCE editor to display a popup and enter code into it. 9 9 * Plugin URI: https://plance.top/ 10 * Version: 1.0. 010 * Version: 1.0.1 11 11 * Author: plance 12 12 * License: GPL v2 or later -
light-code-block/trunk/readme.txt
r3313460 r3314137 4 4 Requires at least: 6.0 5 5 Tested up to: 6.8 6 Stable tag: 1.0. 06 Stable tag: 1.0.1 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 45 45 == Changelog == 46 46 47 = 1.0.1 = 48 * For backward compatibility, the class "mce-simple-block-code" has been added. 49 47 50 = 1.0.0 = 48 51 * Init release.
Note: See TracChangeset
for help on using the changeset viewer.