Plugin Directory

Changeset 3003951

Timestamp:
11/30/2023 08:49:54 PM (8 months ago)
Author:
mrwweb
Message:

Update to version 2.12.1 from GitHub

Location:
mrw-web-design-simple-tinymce
Files:
8 edited
1 copied

Legend:

Unmodified
Added
Removed
  • mrw-web-design-simple-tinymce/tags/2.12.1/changelog.txt

    r2988726 r3003951  
     1
     2
     3
    14= 2.12.0 (November 3, 2023) =
    25- WordPress 6.4 compatibility
  • mrw-web-design-simple-tinymce/tags/2.12.1/js/block-editor.js

    r2988726 r3003951  
    11/*
    2  * Hide Blocks
     2 * Hide blocks from the inserter
     3 *
     4 * Unregistering them crashes the editor if they are present in existing content
    35 */
    46wp.hooks.addFilter( 'blocks.registerBlockType', 'hideBlocks', ( blockSettings, blockName ) => {
     
    2022    wp.blocks.getBlockVariations('core/embed').forEach(function (embed) {
    2123
    22         if ( -1 !== mrwEditorOptions.hiddenEmbeds.indexOf(embed.name) ) {
     24        if ( -1 mrwEditorOptions.hiddenEmbeds.indexOf(embed.name) ) {
    2325            wp.blocks.unregisterBlockVariation('core/embed', embed.name );
    2426        }
     
    3739    });
    3840
    39     /* Remove Inline Footnote inserted in block toolbar if Footnote block is hidden */
    40     if( mrwEditorOptions.hiddenBlocks.indexOf( 'core/footnotes' ) ) {
     41    /* Remove Inline Footnote insert in block toolbar if Footnote block is hidden */
     42    if( mrwEditorOptions.hiddenBlocks.indexOf( 'core/footnotes' ) ) {
    4143        wp.richText.unregisterFormatType( 'core/footnote' );
    4244    }
    43     if( mrwEditorOptions.hiddenSettings.indexOf('highlight' ) ) {
    44         wp.richText.unregisterFormatType( 'core/text-color');
     45
     46    /* Remove other inline formatting options */
     47    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'highlight' ) ) {
     48        wp.richText.unregisterFormatType( 'core/text-color' );
    4549    }
    46     if( mrwEditorOptions.hiddenSettings.indexOf('inline-image' ) ) {
     50
     51    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'inline-image' ) ) {
    4752        wp.richText.unregisterFormatType( 'core/image' );
    4853    }
    49     if( mrwEditorOptions.hiddenSettings.indexOf('inline-code' ) ) {
     54
     55    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'inline-code' ) ) {
    5056        wp.richText.unregisterFormatType( 'core/code' );
    5157    }
    52     if( mrwEditorOptions.hiddenSettings.indexOf('keyboard' ) ) {
     58
     59    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'keyboard' ) ) {
    5360        wp.richText.unregisterFormatType( 'core/keyboard' );
    5461    }
  • mrw-web-design-simple-tinymce/tags/2.12.1/mrwweb-simple-tinymce.php

    r2988726 r3003951  
    44* Plugin URI: https://MRWweb.com/wordpress-plugins/mrw-web-design-simple-tinymce/
    55* Description: Streamlines the WordPress editor to focus users on consistent formatting and semantic content.
    6 * Version: 2.12.0
     6* Version: 2.12.
    77* Author: Mark Root-Wiley
    88* Author URI: https://MRWweb.com
  • mrw-web-design-simple-tinymce/tags/2.12.1/readme.txt

    r2988726 r3003951  
    55Requires PHP: 5.6.20
    66Tested up to: 6.4
    7 Stable tag: 2.12.0
     7Stable tag: 2.12.
    88Donate link: https://www.paypal.me/rootwiley
    99License: GPLv3 or later
     
    7878
    7979== Changelog ==
     80
     81
     82
    8083= 2.12.0 (November 3, 2023) =
    8184- WordPress 6.4 compatibility
     
    104107
    105108== Upgrade Notice ==
    106 = 2.12.0 =
    107 * WP 6.4 Compatibility + hide various inline formats and placeholder options
     109= 2.12. =
     110* WP 6.4 Compatibility + hide various inline formats and placeholder options
  • mrw-web-design-simple-tinymce/trunk/changelog.txt

    r2988726 r3003951  
     1
     2
     3
    14= 2.12.0 (November 3, 2023) =
    25- WordPress 6.4 compatibility
  • mrw-web-design-simple-tinymce/trunk/js/block-editor.js

    r2988726 r3003951  
    11/*
    2  * Hide Blocks
     2 * Hide blocks from the inserter
     3 *
     4 * Unregistering them crashes the editor if they are present in existing content
    35 */
    46wp.hooks.addFilter( 'blocks.registerBlockType', 'hideBlocks', ( blockSettings, blockName ) => {
     
    2022    wp.blocks.getBlockVariations('core/embed').forEach(function (embed) {
    2123
    22         if ( -1 !== mrwEditorOptions.hiddenEmbeds.indexOf(embed.name) ) {
     24        if ( -1 mrwEditorOptions.hiddenEmbeds.indexOf(embed.name) ) {
    2325            wp.blocks.unregisterBlockVariation('core/embed', embed.name );
    2426        }
     
    3739    });
    3840
    39     /* Remove Inline Footnote inserted in block toolbar if Footnote block is hidden */
    40     if( mrwEditorOptions.hiddenBlocks.indexOf( 'core/footnotes' ) ) {
     41    /* Remove Inline Footnote insert in block toolbar if Footnote block is hidden */
     42    if( mrwEditorOptions.hiddenBlocks.indexOf( 'core/footnotes' ) ) {
    4143        wp.richText.unregisterFormatType( 'core/footnote' );
    4244    }
    43     if( mrwEditorOptions.hiddenSettings.indexOf('highlight' ) ) {
    44         wp.richText.unregisterFormatType( 'core/text-color');
     45
     46    /* Remove other inline formatting options */
     47    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'highlight' ) ) {
     48        wp.richText.unregisterFormatType( 'core/text-color' );
    4549    }
    46     if( mrwEditorOptions.hiddenSettings.indexOf('inline-image' ) ) {
     50
     51    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'inline-image' ) ) {
    4752        wp.richText.unregisterFormatType( 'core/image' );
    4853    }
    49     if( mrwEditorOptions.hiddenSettings.indexOf('inline-code' ) ) {
     54
     55    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'inline-code' ) ) {
    5056        wp.richText.unregisterFormatType( 'core/code' );
    5157    }
    52     if( mrwEditorOptions.hiddenSettings.indexOf('keyboard' ) ) {
     58
     59    if( -1 < mrwEditorOptions.hiddenSettings.indexOf( 'keyboard' ) ) {
    5360        wp.richText.unregisterFormatType( 'core/keyboard' );
    5461    }
  • mrw-web-design-simple-tinymce/trunk/mrwweb-simple-tinymce.php

    r2988726 r3003951  
    44* Plugin URI: https://MRWweb.com/wordpress-plugins/mrw-web-design-simple-tinymce/
    55* Description: Streamlines the WordPress editor to focus users on consistent formatting and semantic content.
    6 * Version: 2.12.0
     6* Version: 2.12.
    77* Author: Mark Root-Wiley
    88* Author URI: https://MRWweb.com
  • mrw-web-design-simple-tinymce/trunk/readme.txt

    r2988726 r3003951  
    55Requires PHP: 5.6.20
    66Tested up to: 6.4
    7 Stable tag: 2.12.0
     7Stable tag: 2.12.
    88Donate link: https://www.paypal.me/rootwiley
    99License: GPLv3 or later
     
    7878
    7979== Changelog ==
     80
     81
     82
    8083= 2.12.0 (November 3, 2023) =
    8184- WordPress 6.4 compatibility
     
    104107
    105108== Upgrade Notice ==
    106 = 2.12.0 =
    107 * WP 6.4 Compatibility + hide various inline formats and placeholder options
     109= 2.12. =
     110* WP 6.4 Compatibility + hide various inline formats and placeholder options
Note: See TracChangeset for help on using the changeset viewer.