Plugin.WordPress icon indicating copy to clipboard operation
Plugin.WordPress copied to clipboard

Bug /

Open seabokas opened this issue 1 year ago • 1 comments

WordPress Version

6.2.2

Enlighter Version

4.6.1

Editing method

TinyMCE

What happened?

When changing the constants for the plug-in path, you get an error message:

Failed to load plugin url: https://www.domain.com/cms/plugins/syntaxhighlighter/syntaxhighlighter_mce-4.js?ver=3.6.2

wp-config.php define('WP_PLUGIN_DIR', $_SERVER['DOCUMENT_ROOT'] . '/path/modules'); define('WP_PLUGIN_DIR', 'https://www.domain.com/path/modules');

https://github.com/WordPress/WordPress/blob/master/wp-includes/default-constants.php#L179

What browsers are you seeing the problem on?

No response

Your settings (debug)

{
    "translation-enabled": true,
    "enlighterjs-init": "inline",
    "enlighterjs-assets-js": true,
    "enlighterjs-assets-themes": true,
    "enlighterjs-assets-themes-external": false,
    "enlighterjs-selector-block": "pre.EnlighterJSRAW",
    "enlighterjs-selector-inline": "code.EnlighterJSRAW",
    "enlighterjs-indent": 4,
    "enlighterjs-ampersandcleanup": true,
    "enlighterjs-linehover": true,
    "enlighterjs-rawcodedbclick": true,
    "enlighterjs-textoverflow": "break",
    "enlighterjs-linenumbers": true,
    "enlighterjs-theme": "monokai",
    "enlighterjs-retaincss": false,
    "enlighterjs-language": "generic",
    "toolbar-visibility": "default",
    "toolbar-button-raw": false,
    "toolbar-button-copy": true,
    "toolbar-button-window": false,
    "toolbar-button-enlighterjs": false,
    "tinymce-backend": true,
    "tinymce-frontend": false,
    "tinymce-formats": true,
    "tinymce-autowidth": false,
    "tinymce-tabindentation": false,
    "tinymce-keyboardshortcuts": false,
    "tinymce-font": "sourcecodepro",
    "tinymce-fontsize": "0.7em",
    "tinymce-lineheight": "1.4em",
    "tinymce-color": "#000000",
    "tinymce-bgcolor": "#f9f9f9",
    "gutenberg-backend": false,
    "quicktag-backend": false,
    "quicktag-frontend": false,
    "quicktag-mode": "html",
    "shortcode-mode": "disabled",
    "shortcode-inline": true,
    "shortcode-type-generic": true,
    "shortcode-type-language": false,
    "shortcode-type-group": false,
    "shortcode-filter-content": true,
    "shortcode-filter-excerpt": true,
    "shortcode-filter-widget": false,
    "shortcode-filter-comment": false,
    "shortcode-filter-commentexcerpt": false,
    "gfm-enabled": false,
    "gfm-inline": true,
    "gfm-language": "raw",
    "gfm-filter-content": true,
    "gfm-filter-excerpt": true,
    "gfm-filter-widget": false,
    "gfm-filter-comment": false,
    "gfm-filter-commentexcerpt": false,
    "compat-enabled": false,
    "compat-crayon": false,
    "compat-codecolorer": false,
    "compat-type1": false,
    "compat-type2": false,
    "compat-filter-content": true,
    "compat-filter-excerpt": true,
    "compat-filter-widget": false,
    "compat-filter-comment": false,
    "compat-filter-commentexcerpt": false,
    "cache-custom": false,
    "cache-path": "",
    "cache-url": "",
    "dynamic-resource-invocation": false,
    "ext-infinite-scroll": false,
    "jetpack-gfm-code": false,
    "ext-ajaxcomplete": false,
    "bbpress-shortcode": false,
    "bbpress-markdown": false
}
Custom theme configuration

/*@BASETHEME:monokai*/

.enlighter-t-wpcustom{
	background-color: #272822;
}
.enlighter-t-wpcustom .enlighter-toolbar{
	top: 10px;
	right: 10px;
}
.enlighter-t-wpcustom .enlighter-btn{
	background-image: none;
	background-color: #414339;
	color: #f8f8f2;
	font-size: 1em;
	padding: 2px 8px 2px 8px;
	margin: 0 5px 0 5px;
	border: solid 1px #1e1f1c;
	font-family: "Open Sans",Arial,Verdana,sans-serif;
}
.enlighter-t-wpcustom .enlighter-btn:hover{
	background-color: #4e5145;
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-raw{
	background-image: none;
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-raw:after{
	content: 'Raw';
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-copy{
	background-image: none;
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-copy:after{
	content: 'Copy';
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-window{
	background-image: none;
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-window:after{
	content: 'Extern';
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-website{
	background-image: none;
}
.enlighter-t-wpcustom .enlighter-toolbar .enlighter-btn-website:after{
	content: 'EnlighterJS';
}
.enlighter-t-wpcustom.enlighter-hover div.enlighter>div:hover{
	background-color: #75715e;
}
.enlighter-t-wpcustom .enlighter-raw{
	font-size: 1.25em;
	color: #f8f8f2;
	line-height: 1.85em;
	padding: 4px 5px 4px 55px;
}
.enlighter-t-wpcustom div.enlighter>div{
	padding: 1px 5px 1px 14px;
	line-height: 1.6em;
}
.enlighter-t-wpcustom div.enlighter>div:FIRST-CHILD{
	padding-top: 5px;
}
.enlighter-t-wpcustom div.enlighter>div:LAST-CHILD{
	padding-bottom: 5px;
}
.enlighter-t-wpcustom div.enlighter>div:AFTER{
	content: ' ';
}
.enlighter-t-wpcustom div.enlighter>div.enlighter-special{
	background-color: #414339;
}
.enlighter-t-wpcustom.enlighter-linenumbers div.enlighter>div::before{
	font-size: 1em;
	color: grey;
}
.enlighter-t-wpcustom .enlighter span{
	font-size: 1.25em;
}
.enlighter-t-wpcustom .enlighter-text{
	color: #f8f8f2;
}
.enlighter-t-wpcustom .enlighter-c0{
	color: #75715e;
}
.enlighter-t-wpcustom .enlighter-c1{
	color: #75715e;
}
.enlighter-t-wpcustom .enlighter-c2{
	color: #75715e;
}
.enlighter-t-wpcustom .enlighter-c9{
	color: #75715e;
}
.enlighter-t-wpcustom .enlighter-k0{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k1{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k2{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k3{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k4{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k5{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k6{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k7{
	color: #f8f8f2;
}
.enlighter-t-wpcustom .enlighter-k8{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k9{
	color: #fd971f;
}
.enlighter-t-wpcustom .enlighter-k10{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-k11{
	color: #75715e;
}
.enlighter-t-wpcustom .enlighter-e0{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-e1{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-e2{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-e3{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-e4{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-s0{
	color: #e6db74;
}
.enlighter-t-wpcustom .enlighter-s1{
	color: #e6db74;
}
.enlighter-t-wpcustom .enlighter-s2{
	color: #e6db74;
}
.enlighter-t-wpcustom .enlighter-s3{
	color: #e6db74;
}
.enlighter-t-wpcustom .enlighter-s4{
	color: #e6db74;
	font-weight: 700;
}
.enlighter-t-wpcustom .enlighter-s5{
	color: #e6db74;
	font-style: italic;
}
.enlighter-t-wpcustom .enlighter-n0{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-n1{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-n2{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-n3{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-n4{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-n5{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-m0{
	color: #66d9ef;
}
.enlighter-t-wpcustom .enlighter-m1{
	color: #66d9ef;
}
.enlighter-t-wpcustom .enlighter-m2{
	color: #66d9ef;
}
.enlighter-t-wpcustom .enlighter-m3{
	color: #66d9ef;
}
.enlighter-t-wpcustom .enlighter-g0{
	color: #f8f8f2;
	font-weight: 700;
}
.enlighter-t-wpcustom .enlighter-g1{
	color: #f8f8f2;
	font-weight: 700;
}
.enlighter-t-wpcustom .enlighter-t0{
	color: #f8f8f2;
}
.enlighter-t-wpcustom .enlighter-t1{
	color: #a6e22e;
}
.enlighter-t-wpcustom .enlighter-t2{
	color: #a6e22e;
}
.enlighter-t-wpcustom .enlighter-t3{
	color: #e6db74;
}
.enlighter-t-wpcustom .enlighter-t4{
	color: #e6db74;
}
.enlighter-t-wpcustom .enlighter-t5{
	color: #a6e22e;
}
.enlighter-t-wpcustom .enlighter-t6{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-t7{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-t8{
	color: #75715e;
}
.enlighter-t-wpcustom .enlighter-x1{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-x2{
	color: #a6e22e;
}
.enlighter-t-wpcustom .enlighter-x10{
	color: #a6e22e;
}
.enlighter-t-wpcustom .enlighter-x11{
	color: #a6e22e;
}
.enlighter-t-wpcustom .enlighter-x12{
	color: #66d9ef;
	font-style: italic;
}
.enlighter-t-wpcustom .enlighter-x13{
	color: #f92672;
}
.enlighter-t-wpcustom .enlighter-x14{
	color: #ae81ff;
}
.enlighter-t-wpcustom .enlighter-x15{
	color: #a6e22e;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-switch{
	background-color: #414339;
	padding: 10px 10px 0 30px;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-switch .enlighter-btn{
	background-image: none;
	background-color: #414339;
	color: #f8f8f2;
	font-size: 1.15em;
	padding: 2px 8px 2px 8px;
	margin: 0 10px 0 10px;
	border: none;
	line-height: 2.1em;
	border-radius: 0;
	font-style: italic;
}
.enlighter-t-wpcustom.enlighter-v-codegroup .enlighter-codegroup-switch .enlighter-btn.enlighter-active{
	background-color: #272822;
	color: #f8f8f2;
	font-weight: 700;
	font-style: normal;
}
.enlighter-t-wpcustom div.enlighter>div.enlighter-special:hover{
}
.enlighter-t-wpcustom .enlighter-x16{
}

I've read the docs/troubleshooting guidelines

  • [X] I confirm that i've completely read and followed the troubleshooting guide!

The bug/issues appears in a clean WordPress environment

  • [X] I confirm that the bug/issues happens within a clean WordPress enviroment!

seabokas avatar Jun 28 '23 18:06 seabokas

[plugins/syntaxhighlighter/syntaxhighlighter_mce-4.js?ver=3.6.2](https://www.domain.com/cms/plugins/syntaxhighlighter/syntaxhighlighter_mce-4.js?ver=3.6.2) is not Enlighter related

AndiDittrich avatar Jun 28 '23 18:06 AndiDittrich