LuRenJiasWorld / WP-Editor.md

或许这是一个WordPress中最好,最完美的Markdown编辑器
https://wordpress.org/plugins/wp-editormd/
GNU General Public License v3.0
746 stars 87 forks source link

[BUG] codemirror异常及wp is not defined #521

Closed Licoy closed 3 years ago

Licoy commented 3 years ago

具体异常堆栈信息: image.png

插件开启兼容模式(经测试,未开启兼容模式下同样会报出以上异常)

调试信息(本地域名已更改为example.com):

系统环境    Darwin
运行环境    nginx/1.19.6
PHP版本   8.0.1
PHP运行环境 fpm-fcgi
浏览器信息   Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.96 Safari/537.36
WordPress版本 5.6
插件版本    10.2.1
jQuery版本    
当前用户权限  administrator
WordPress地址 http://example.com
站点地址    http://example.com
常规设置    task_list => off
imagepaste => off
imagepaste_sm => off
imagepaste_sm_token =>
image_link => on
open_in_new_tab => on
live_preview => on
sync_scrolling => on
html_decode => on
support_front => off
support_reply => off
support_other_text => wp_editor
编辑器设置   theme_style => default
code_style => base16-light
editor_addres => http://example.com/wp-content/plugins/wp-editormd
语法高亮设置  highlight_mode_auto => off
line_numbers => off
show_language => off
copy_clipboard => off
highlight_library_style => default
customize_my_style => nothing
Emoji表情设置   support_emoji => off
文章目录设置  support_toc => off
科学公式设置  support_latex => katex
绘图设置    support_mermaid => off
mermaid_config => { "theme": "dark", "logLevel": 5, "arrowMarkerAbsolute": false, "startOnLoad": true, "flowchart": { "htmlLabels": true, "curve": "linear" }, "sequence": { "diagramMarginX": 50, "diagramMarginY": 10, "actorMargin": 50, "width": 150, "height": 65, "boxMargin": 10, "boxTextMargin": 5, "noteMargin": 10, "messageMargin": 35, "mirrorActors": true, "bottomMarginAdj": 1, "useMaxWidth": true }, "gantt": { "titleTopMargin": 25, "barHeight": 20, "barGap": 4, "topPadding": 50, "leftPadding": 75, "gridLineStartPadding": 35, "fontSize": 11, "fontFamily": "\"Open-Sans\", \"sans-serif\"", "numberSectionStyles": 4, "axisFormat": "%Y-%m-%d" }, "class": {}, "git": {} }
思维导图设置  support_mindmap => off
customize_mindmap => https://cdn.jsdelivr.net/wp/wp-editormd/tags/10.2.1/assets/MindMap/mindMap.min.js
高级设置    jquery_compatible => on
hide_ads => on
启用插件列表  0 => wp-editormd/wp-editormd.php
Licoy commented 3 years ago

此项是关于主题兼容的选项,已通过remove scripts Editormd_Front 临时解决了此问题,close #521