Plugin Directory

Changeset 3314137


Ignore:
Timestamp:
06/18/2025 07:44:34 PM (9 months ago)
Author:
plance
Message:

For backward compatibility, the class mce-simple-block-code has been added

Location:
light-code-block/trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • light-code-block/trunk/assets/css/tinymce.css

    r3313460 r3314137  
    11.mce-light-code-block,
    2 .mce-simple-code-block {
     2.mce-simple-block-code {
    33    padding: 10px;
    44    color: #ccc;
  • light-code-block/trunk/assets/js/tinymce.js

    r3313460 r3314137  
    2828                            div.innerText = api.data.code;
    2929
    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>' );
    3131                        }
    3232                    }
     
    4848                'click',
    4949                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' ) ) {
    5151                        let code = e.target.innerHTML;
    5252
  • light-code-block/trunk/bootstrap.php

    r3313460 r3314137  
    1212
    1313const PATH    = __DIR__;
    14 const VERSION = '1.0.0';
     14const VERSION = '1.0.1';
    1515
    1616define( 'PLANCE_PLUGIN_LIGHT_CODE_BLOCK_URL', rtrim( plugin_dir_url( __FILE__ ), '/' ) );
  • light-code-block/trunk/light-code-block.php

    r3313460 r3314137  
    88 * Description: Adds a button to the TinyMCE editor to display a popup and enter code into it.
    99 * Plugin URI:  https://plance.top/
    10  * Version:     1.0.0
     10 * Version:     1.0.1
    1111 * Author:      plance
    1212 * License:     GPL v2 or later
  • light-code-block/trunk/readme.txt

    r3313460 r3314137  
    44Requires at least: 6.0
    55Tested up to: 6.8
    6 Stable tag: 1.0.0
     6Stable tag: 1.0.1
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4545== Changelog ==
    4646
     47= 1.0.1 =
     48* For backward compatibility, the class "mce-simple-block-code" has been added.
     49
    4750= 1.0.0 =
    4851* Init release.
Note: See TracChangeset for help on using the changeset viewer.