Plugin Directory

Changeset 3446781


Ignore:
Timestamp:
01/26/2026 01:44:39 AM (2 months ago)
Author:
jamesdlow
Message:

1.5.6

  • Only use syntax highlighting on global page until it works with gutenburg editor
Location:
css-js-files
Files:
7 added
3 edited

Legend:

Unmodified
Added
Removed
  • css-js-files/trunk/css-js-files.php

    r3446057 r3446781  
    44Plugin URI: https://wordpress.org/plugins/css-js-files/
    55Description: Add CSS files and/or CSS custom rules to any single page or post or globally
    6 Version: 1.5.5
     6Version: 1.5.6
    77Author: James Low
    88Author URI: http://jameslow.com
  • css-js-files/trunk/js/css-js-files.js

    r3446057 r3446781  
    8080    init('js');
    8181    document.addEventListener( 'DOMContentLoaded', function () {
    82         initEditor('css-js-files-css-rules', 'css');
    83         initEditor('css-js-files-css-admin', 'css');
    84         initEditor('css-js-files-js-rules', 'javascript');
    85         initEditor('css-js-files-js-admin', 'javascript');
    86         initEditor('css-js-files-head-rules', 'htmlmixed');
    87         initEditor('css-js-files-body-rules', 'htmlmixed');
    88         initEditor('css-js-files-footer-rules', 'htmlmixed');
     82        const params = new URLSearchParams(window.location.search);
     83        if (params.get('page') === 'css-js-files') {
     84            initEditor('css-js-files-css-rules', 'css');
     85            initEditor('css-js-files-css-admin', 'css');
     86            initEditor('css-js-files-js-rules', 'javascript');
     87            initEditor('css-js-files-js-admin', 'javascript');
     88            initEditor('css-js-files-head-rules', 'htmlmixed');
     89            initEditor('css-js-files-body-rules', 'htmlmixed');
     90            initEditor('css-js-files-footer-rules', 'htmlmixed');
     91        }
    8992    });
    9093}(jQuery));
  • css-js-files/trunk/readme.txt

    r3446057 r3446781  
    2929
    3030== Changelog ==
     31
     32= 1.5.6 =
     33* Only use syntax highlighting on global page until it works with gutenburg editor
    3134
    3235= 1.5.5 =
Note: See TracChangeset for help on using the changeset viewer.