GithubHelp home page GithubHelp logo

lurenjiasworld / wp-editor.md Goto Github PK

View Code? Open in Web Editor NEW
736.0 17.0 87.0 46.87 MB

或许这是一个WordPress中最好,最完美的Markdown编辑器

Home Page: https://wordpress.org/plugins/wp-editormd/

License: GNU General Public License v3.0

PHP 3.10% JavaScript 86.23% CSS 1.22% HTML 7.96% Vue 0.18% TypeScript 0.14% SCSS 1.00% Less 0.01% Hack 0.04% Dockerfile 0.04% Shell 0.08%
wordpress jetpack editor markdown

wp-editor.md's Introduction

WP Editor.md

GitHub issues GitHub forks GitHub stars GitHub releases GitHub license Latest Version

说明 Description

WP Editor.md是一个漂亮又实用的在线Markdown文档编辑器。

WP Editor.md is a beautiful and practical Markdown document editor.

基于Editor.md构建对WordPress平台的支持。

Build support for the WordPress on Editor.md.

使用WordPress Jetpack 的Markdown模块来解析和保存内容。

The plugin uses the Markdown module from WordPress Jetpack for parsing and saving content.


WordPress Plugins Download

WordPress 插件库下载

特征 Feature

  • 支持实时预览/代码插入/代码折叠/列表插入/搜索替换/语法高亮等功能;
  • 支持 Emoji 表情
  • 支持WordPress的多媒体插入
  • 支持Toc文章目录显示
  • 支持GFM Task lists
  • 支持KaTeX科学公式
  • 支持Mermaid
  • 支持图像粘贴

  • Real-time Preview, Preformatted text/Code blocks/Tables insert, Search replace, Code syntax highlighting;
  • Support Emoji
  • Support WordPress multimedia insertion
  • Support Toc
  • Support GFM Task lists
  • Support KaTeX
  • Support Mermaid
  • Support Image Paste

Stars历史 Stargazers over time

欢迎Star本项目,你的Star是对我的最大支持!

Star this project to encourage my work!

Stargazers over time

统计 Stats

Alt

使用说明 ReadMe

请参考 WP-Editor.md Wiki

更新日志 ChangeLog

请见更新日志

授权协议 License

GPLv3

WP-Editor.MD is licensed under GNU General Public License Version 3 or later.

WP-Editor.MD is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

WP-Editor.MD is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with WP-Editor.MD.  If not, see <http://www.gnu.org/licenses/>.

wp-editor.md's People

Contributors

david50407 avatar elity avatar gabrielchl avatar giuem avatar jaxsonwang avatar licoy avatar lurenjiasworld avatar mowangjuanzi avatar muenyu avatar techciel avatar zkl2333 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

wp-editor.md's Issues

语法高亮部分失效

例如html,svg等
在prism中依赖看到

"markup": {
			"title": "Markup",
			"aliasTitles": { "html": "HTML", "xml": "XML", "svg": "SVG", "mathml": "MathML" },
			"option": "default"
		},

I can't use this plugin

WordPress version: 4.8.1
Plugin version: 3.0

I had activated WP Editor.md.

default

But when I add a post,it's a regular editor.

default

强调关键词被转义

例如文章填写

`$link = $node->attributes->getNamedItem( $att );`

发布文章渲染成:

$link = $node-&gt;attributes-&gt;getNamedItem( $att );

单独测试PHP-XSS过滤:

<?php
require('xsshtml.class.php');
$html = '<code>$link = $node->attributes->getNamedItem( $att );</code>';
$xss = new XssHtml($html);
$html = $xss->getHtml();
echo $html;
?>

输出一切正常。

如果编辑器渲染输出不加入xss过滤,也一样正常...

那么这个问题出现在哪儿??

Sequence Diagram Cannot Be Loaded Normally

Caused by: typo in editormd_class.php:line 328
Original: /sequence-diagram.min.js
Change to: /sequence-diagram-min.js

This minor error causes sequence diagram cannot be loaded normally, it returns a 404 error.

最近一次升级后无法实时预览

如题,升级到2.5版本之后,实时预览功能似乎没有生效,之前是好的,现在只能手动关闭再打开实时预览才能看到效果,已安装的插件有:
Crayon Syntax Highlighter(未启用)
Jetpack
WPJAM BASIC
WPJAM 七牛镜像存储
Akismet Anti-Spam(未启用)

其中jetpack没有开启自带的markdown功能

请问应该如何解决无法实时预览的问题?

b.sortable is not a function

edit-post.min.js?ver=2.0.0:1 Uncaught TypeError: b.sortable is not a function

JQMIGRATE: Migrate is installed, version 1.4.1
edit-post.min.js?ver=2.0.0:1 Uncaught TypeError: b.sortable is not a function
at RP4WP_Related_Manager.make_sortable (edit-post.min.js?ver=2.0.0:1)
at RP4WP_Related_Manager.init (edit-post.min.js?ver=2.0.0:1)
at new RP4WP_Related_Manager (edit-post.min.js?ver=2.0.0:1)
at HTMLDivElement. (edit-post.min.js?ver=2.0.0:1)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
at HTMLDocument. (edit-post.min.js?ver=2.0.0:1)
at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
at Function.ready (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
at HTMLDocument.K (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
RP4WP_Related_Manager.make_sortable @ edit-post.min.js?ver=2.0.0:1
RP4WP_Related_Manager.init @ edit-post.min.js?ver=2.0.0:1
RP4WP_Related_Manager @ edit-post.min.js?ver=2.0.0:1
(anonymous) @ edit-post.min.js?ver=2.0.0:1
each @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2
(anonymous) @ edit-post.min.js?ver=2.0.0:1
i @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2
fireWith @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2
ready @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2
K @ load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2
load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-position,jquery&load[]=-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,word-count,post,editor-expand,thickbox,shortcode,backbo&load[]=ne,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,&load[]=imgareaselect,image-edit,svg-painter,wp-auth-check,wp-pointer,quicktags,wplink,wp-embed&ver=4.7.5:684 Uncaught TypeError: Cannot read property 'hasClass' of undefined
at HTMLDocument. (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-position,jquery&load[]=-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,word-count,post,editor-expand,thickbox,shortcode,backbo&load[]=ne,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,&load[]=imgareaselect,image-edit,svg-painter,wp-auth-check,wp-pointer,quicktags,wplink,wp-embed&ver=4.7.5:684)
at HTMLDocument.dispatch (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:3)
at HTMLDocument.r.handle (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:3)
at Object.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:3)
at Object.a.event.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:9)
at HTMLDocument. (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:3)
at Function.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
at a.fn.init.each (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:2)
at a.fn.init.trigger (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,jquery-ui-core,jquery-ui-widget,jquery-ui-mouse,jquery-ui-sortable,plupload&ver=4.7.5:3)
at Object. (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,postbox,jquery-ui-position,jquery&load[]=-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box,underscore,word-count,post,editor-expand,thickbox,shortcode,backbo&load[]=ne,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,&load[]=imgareaselect,image-edit,svg-painter,wp-auth-check,wp-pointer,quicktags,wplink,wp-embed&ver=4.7.5:4)

图像粘贴功能失效

若出现失效的情况,请贴上以下信息:

例如:

操作系统类型:Windows 10 64位
浏览器版本:Chrome 版本 60.0.3112.40(正式版本)beta (64 位)
WordPress版本:Version  4.8.1
插件版本:Version 2.1

两个问题

1,设置中“高亮显示行高”应为“高亮显示行号”;
2,如果可以增加默认是否开启“实时预览”选项会更好。

谢谢!

插件能否支持多站点

WordPress version: 4.8.1
Plugin version: 3.1

插件在子站点中单独启用时,进入设置页点【保存设置】就提示抱歉,您不能访问此页面。

后面试着从整个网络启用,但又发现一个问题,进入子站设置页点【保存设置】自动跳转到网络中。也就是说不能在子站中开启功能,比如想开启支持粘贴图片。

自动引入prismjs相关语言组件的功能

目前插件设置里面只有引入了默认的4种prismjs语言组件,如果需要高亮其他的语言,还得去官网生成后放到某个地方来引用,比较麻烦,我写了一段根据文章内容自动检测用到哪些语言,自动引用相关语言组件的代码。你看下,如果觉得可以的话,可以合并到插件里面,可以提供一个选项来开关这个功能。

class prism_js {

    public $languages = array();

    public $languages_all = array(
        "markup" => "Markup",
        "css" => "CSS",
        "clike" => "C-like",
        "javascript" => "JavaScript",
        "abap" => "ABAP",
        "actionscript" => "ActionScript",
        "ada" => "Ada",
        "apacheconf" => "Apache Configuration",
        "apl" => "APL",
        "applescript" => "AppleScript",
        "asciidoc" => "AsciiDoc",
        "aspnet" => "ASP.NET (C#)",
        "autoit" => "AutoIt",
        "autohotkey" => "AutoHotkey",
        "bash" => "Bash",
        "basic" => "BASIC",
        "batch" => "Batch",
        "bison" => "Bison",
        "brainfuck" => "Brainfuck",
        "bro" => "Bro",
        "c" => "C",
        "csharp" => "C#",
        "cpp" => "C++",
        "coffeescript" => "CoffeeScript",
        "crystal" => "Crystal",
        "css-extras" => "CSS Extras",
        "d" => "D",
        "dart" => "Dart",
        "django" => "Django/Jinja2",
        "diff" => "Diff",
        "docker" => "Docker",
        "eiffel" => "Eiffel",
        "elixir" => "Elixir",
        "erlang" => "Erlang",
        "fsharp" => "F#",
        "fortran" => "Fortran",
        "gherkin" => "Gherkin",
        "git" => "Git",
        "glsl" => "GLSL",
        "go" => "Go",
        "graphql" => "GraphQL",
        "groovy" => "Groovy",
        "haml" => "Haml",
        "handlebars" => "Handlebars",
        "haskell" => "Haskell",
        "haxe" => "Haxe",
        "http" => "HTTP",
        "icon" => "Icon",
        "inform7" => "Inform 7",
        "ini" => "Ini",
        "j" => "J",
        "jade" => "Jade",
        "java" => "Java",
        "jolie" => "Jolie",
        "json" => "JSON",
        "julia" => "Julia",
        "keyman" => "Keyman",
        "kotlin" => "Kotlin",
        "latex" => "LaTeX",
        "less" => "Less",
        "livescript" => "LiveScript",
        "lolcode" => "LOLCODE",
        "lua" => "Lua",
        "makefile" => "Makefile",
        "markdown" => "Markdown",
        "matlab" => "MATLAB",
        "mel" => "MEL",
        "mizar" => "Mizar",
        "monkey" => "Monkey",
        "nasm" => "NASM",
        "nginx" => "nginx",
        "nim" => "Nim",
        "nix" => "Nix",
        "nsis" => "NSIS",
        "objectivec" => "Objective-C",
        "ocaml" => "OCaml",
        "oz" => "Oz",
        "parigp" => "PARI/GP",
        "parser" => "Parser",
        "pascal" => "Pascal",
        "perl" => "Perl",
        "php" => "PHP",
        "php-extras" => "PHP Extras",
        "powershell" => "PowerShell",
        "processing" => "Processing",
        "prolog" => "Prolog",
        "properties" => ".properties",
        "protobuf" => "Protocol Buffers",
        "puppet" => "Puppet",
        "pure" => "Pure",
        "python" => "Python",
        "q" => "Q",
        "qore" => "Qore",
        "r" => "R",
        "jsx" => "React JSX",
        "reason" => "Reason",
        "rest" => "reST (reStructuredText)",
        "rip" => "Rip",
        "roboconf" => "Roboconf",
        "ruby" => "Ruby",
        "rust" => "Rust",
        "sas" => "SAS",
        "sass" => "Sass (Sass)",
        "scss" => "Sass (Scss)",
        "scala" => "Scala",
        "scheme" => "Scheme",
        "smalltalk" => "Smalltalk",
        "smarty" => "Smarty",
        "sql" => "SQL",
        "stylus" => "Stylus",
        "swift" => "Swift",
        "tcl" => "Tcl",
        "textile" => "Textile",
        "twig" => "Twig",
        "typescript" => "TypeScript",
        "vbnet" => "VB.Net",
        "verilog" => "Verilog",
        "vhdl" => "VHDL",
        "vim" => "vim",
        "wiki" => "Wiki markup",
        "xojo" => "Xojo (REALbasic)",
        "yaml" => "YAML"
    );

    public $languages_default = array(
        "markup" => "Markup",
        "css" => "CSS",
        "clike" => "C-like",
        "javascript" => "JavaScript",
    );

    public $prism_base_url = 'https://cdn.bootcss.com/prism/1.6.0';

    public $prism_theme = 'default';

    public $prism_plugins = array();

    public function __construct() {
        add_filter('the_content', array($this, 'prism_languages'));
        add_action('wp_footer', array($this, 'prism_styles_scripts'));
    }

    public function prism_languages($content) {
        if (preg_match_all('/<code class="language-([a-z\-0-9]+)"/', $content, $language_matches) > 0 && !empty($language_matches[1])) {
            foreach ($language_matches[1] as $language_match) {
                if (isset($this->languages_all[$language_match])) {
                    $this->languages[$language_match] = $this->languages_all[$language_match];
                }
            }
        }
        return $content;
    }

    public function prism_styles_scripts() {
        $prism_styles = array();
        $prism_scripts = array();

        if (!empty($this->languages)) {
            if (count($this->languages) <= count($this->languages_default)) {
                $use_default = true;
                foreach ($this->languages as $language => $display_name) {
                    if (!array_key_exists($language, $this->languages_default)) {
                        $use_default = false;
                        break;
                    }
                }
            } else {
                $use_default = false;
            }
            if ($use_default) {
                $prism_scripts[] = "{$this->prism_base_url}/prism.min.js";
            } else {
                $prism_scripts[] = "{$this->prism_base_url}/components/prism-core.min.js";
                foreach ($this->languages as $language => $display_name) {
                    $prism_scripts[] = "{$this->prism_base_url}/components/prism-{$language}.min.js";
                }
            }
            foreach ($this->prism_plugins as $prism_plugin => $prism_plugin_config) {
                if ($prism_plugin_config['css'] === true) {
                    $prism_styles[] = "{$this->prism_base_url}/plugins/{$prism_plugin}/prism-{$prism_plugin}.min.css";
                }
                if ($prism_plugin_config['js'] === true) {
                    $prism_scripts[] = "{$this->prism_base_url}/plugins/{$prism_plugin}/prism-{$prism_plugin}.min.js";
                }
            }
            if (empty($this->prism_theme) || $this->prism_theme == 'default') {
                $prism_styles[] = "{$this->prism_base_url}/themes/prism.min.css";
            } else {
                $prism_styles[] = "{$this->prism_base_url}/themes/prism-{$this->prism_theme}.min.css";
            }
        }

        foreach ($prism_styles as $prism_style) {
            echo '<link rel="stylesheet" type="text/css" href="' . $prism_style . '">';
        }

        foreach ($prism_scripts as $prism_script) {
            echo '<script type="text/javascript" src="' . $prism_script . '"></script>';
        }
    }
}

关于more过滤的问题

测试发现一个问题

目前在文章插入<!--more-->会被php XssHtml过滤。

我对php不是太熟了,看了也没看出啥,请求大佬帮助!

测试路径:WP-Editor.MD/Jetpack/markdown/xsshtml_test.php

xsshtml.class.php

<!--more-->加入白名单即可!

while using Numbered Lists and Code block together, the Numbered Lists stops working

e.g. the below code doesn't do the number work in this editor, the 2nd point is still showing number 1. I had to add a dot (.) at the beginning of point 2.

  1. In your solution (works on both Farm and Sandbox solution), create a new module, then update the Elements.xml file to the below:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<CustomAction
ScriptSrc="~SiteCollection/Style Library/Customized/js/your.js"
Location="ScriptLink"
Sequence="100">
</CustomAction>
</Elements>
  1. Create another module to deploy your.js into SharePoint to match the above location referred by ScriptSrc, the Elements.xml file looks like:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="Style Library" Path="Style Library\Customized\js" Url="Style Library/Customized/js">
<File Path="your.js" Url="your.js" ReplaceContent="TRUE" />
</Module>
</Elements>

image

(See my online page at http://blog.williamyin.com/easiest-way-to-apply-a-js-file-in-sharepoint-site-collection-scope/)

编辑页面无法载入插件

Uncaught ReferenceError: editormd is not defined
at HTMLDocument. (post-new.php:756)
at i (load-scripts.php:2)
at Object.fireWith [as resolveWith] (load-scripts.php:2)
at Function.ready (load-scripts.php:2)
at HTMLDocument.K (load-scripts.php:2)

...
//Emoji表情自定义服务器地址
editormd.emoji     = {
   path  : 'https:' === document.location.protocol ? "https://staticfile.qnssl.com/emoji-cheat-sheet/1.0.0/" : 
  "http://cdn.staticfile.org/emoji-cheat-sheet/1.0.0/",
    ext   : ".png"
};
...

License isn't compatible with GPL-2.0 or newer versions

According to WordPress's Plugin Guidelines, plugins must be compatible with the GNU General Public License v2, or any later version, to be hosted on WordPress.org. The license you are using is MIT which doesn't satisfy the rule.

Please note that if you are going to host it in WP in the future, thanks! :)

相当不错的一款插件,md 导入问题

先赞一个。

目前插件貌似并没有储存 raw md 文件?
不知道是否可以通过什么方式,将 md 文章导入到 wp,并且让导入的内容与这款插件适配。

Wrong post URL in setting pages

capture

The reason is that in my nginx configuration, the server_name is _. I think we use the "Wordpress URL" in Wordpress' general settings is more reasonable.

出现这个现象的原因是我的nginx配置文件中的server_name是_,不过我觉得这里用Wordpress常规设置中的Wordpress URL更合理一点?

bilibili embed not work

video link: https://www.bilibili.com/video/av13761167/

I use this code:

<embed height="415" width="544" quality="high" allowfullscreen="true" type="application/x-shockwave-flash" src="//static.hdslb.com/miniloader.swf" flashvars="aid=13761167&page=1" pluginspage="//www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash"></embed>

the HTML page don't exist the embed tag.

前端显示应该怎么设置

我在后台安装了 WP-Editor.MD 插件, 在后台写文章非常完美, 就是我想要的效果.
但是在前台显示文章就出现各种乱七八糟的格式, 于是, 下载了 pris,引入, 只有一部分格式完整, 另外一部分出错.
控制台错误消息:

prism.js:38 Uncaught TypeError: Cannot set property 'tab' of undefined at prism.js:38 at Object.run (prism.js:2) at Object.highlightElement (prism.js:2) at HTMLDocument.highlightAll (prism.js:2)

请问, 怎么完整引入整个前端呢 ?

LaTeX科学公式在前台没有显示

已经在插件配置中开启LaTeX科学公式支持选项

写LaTeX科学公式时,在编辑器中能正确显示,到前台就没有显示,是不是还得自己安装相应插件?

Chrome 控制台console提示说:
Uncaught ReferenceError: katex is not defined

编辑器预览窗口展现样式错误

已排查出原因:wordpress自带的样式覆盖编辑器样式,可能要重写部分样式。

此帖收集一些样式错误的记录。

目前确认样式错误:
Emoji
2级标题
无序列表

使用引用在前端无样式等

比如我的markdown 为

> 这是一个引用

但是在前端上表现出的是有 <blockquote> 包裹的语句,但是样式上无任何变化,请问这个是我自己设置上的问题吗?而且使用

`23333`

这种也没有语法的任何高亮

在设置里面我勾选了

  1. 前端支持语法高亮
  2. Prism语法高亮加载库

使用 table 的时候也会无样式的情况

实际的页面和写的时候的预览页面表现不一致。
请问这种该如何解决?谢谢 😃

Conflict with Divi Builder

If I switch to visual builder mode (Divi, Visual Composer), the content is not saved, it's keep current version in Markdown.

流程图的语法问题

以下语法连续写两遍画两个流程图就出问题,一遍就正常
$flow
st=>start: User login
op=>operation: lperation
cond=>condition: Successful Yes or No?
e=>end: Into admin
st->op->cond
cond(yes)->e
cond(no)->op
$

Chrome下的兼容性问题

RT,编辑器按钮在Chrome下失效(无反应),在MSIE11中正常。

测试环境:WP 4.7.3 默认主题无插件,Chrome 57.0.2987.133(64 位),MSIE 11.953.14393.0,Windows 10

窗口大小变化时出现错位

RT,在如下情况发生,编辑器空间变大变小时,似乎没有resize编辑器

  1. 窗口大小改变
  2. 收起左侧后台导航菜单
  3. 将两栏布局变为一栏

国际化文件加载问题

我在分支加载国际化文件,发现插件页面正确显示中文,但是在设置页面不显示,排查了很多可能性,还是无法找到原因,请求各位大佬助攻,谢谢!

li 转义没有保存到数据库

  • 列表一
  • 列表二
    实时预览是转义成li标签了,但是保存数据库还是原生的,没有被解析成li。是哪里配置的不对么?

代码高亮的问题

首先感谢作者,非常好用的插件,但是我遇到个小问题,在编辑器里确实有代码高亮显示,但是文章发表后并没有高亮显示,请问是插件的bug吗

Content rendered in rest api is omitted with HTML tags

How to reproduce:

Here is example of MD entered in post:

### H2

`
Another (awesome) song by Jamiroquai!
`

Result:

In api response:

rest_api_response_object.content.rendered:

"<p>### H2</p>↵<p>`<br />↵Another (awesome) song by Jamiroquai!<br />↵`</p>↵"

How it should be:

It should be plain MD text.

无法启用代码高亮

您好。我开启了前端支持代码高亮之后,编辑器显示正常,但文章发布之后代码高亮就无法显示。Chrome控制台有一个错误:Uncaught ReferenceError: Prism is not defined。请问是什么问题?主题用的是自带的TwentyFifteen,只有WP-Editor.MD这个插件。

pjax?

pjax主题下代码高亮失效

Wordpress添加媒体-zip文件无法插入到编辑器

Wordpress添加媒体-zip文件无法插入到编辑器
文章编辑页提示

Uncaught TypeError: Cannot read property 'src' of undefined
    at Object.wp.media.editor.insert (post-new.php:775)
    at Object.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,j&load[]=query-ui-mouse,jquery-ui-sortable,postbox,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box&load[]=,underscore,word-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,&load[]=wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,quicktags,&load[]=wplink,wp-embed&ver=4.8.1:482)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.8.1:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.8.1:2)
    at Object.<anonymous> (load-scripts.php?c=0&load[]=hoverIntent,common,admin-bar,heartbeat,autosave,suggest,wp-ajax-response,jquery-color,wp-lists,jquery-ui-core,jquery-ui-widget,j&load[]=query-ui-mouse,jquery-ui-sortable,postbox,jquery-ui-position,jquery-ui-menu,wp-a11y,jquery-ui-autocomplete,tags-suggest,tags-box&load[]=,underscore,word-count,post,editor-expand,thickbox,shortcode,backbone,wp-util,wp-backbone,media-models,wp-plupload,mediaelement,&load[]=wp-mediaelement,media-views,media-editor,media-audiovideo,mce-view,imgareaselect,image-edit,svg-painter,wp-auth-check,quicktags,&load[]=wplink,wp-embed&ver=4.8.1:445)
    at i (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.8.1:2)
    at Object.fireWith [as resolveWith] (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.8.1:2)
    at y (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.8.1:4)
    at XMLHttpRequest.c (load-scripts.php?c=0&load[]=jquery-core,jquery-migrate,utils,plupload&ver=4.8.1:4)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.