-
Notifications
You must be signed in to change notification settings - Fork 247
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Seems to not work with Gutenberg Wordpress Editor #441
Comments
I'm noticing this also: When I edited an old post with the new editor, I clicked the "code" toolbar item on an existing block of code, and the crayon editor popped up as expected. But when I paste my code, and render the whole post in preview, some unescaped HTML comes through inside the block. And subsequent attempts to pull up the crayon editor haven't worked. when I go to the bottom of the page and add a new block with gutenberg of type Formatting>Code, the Crayon editor similarly doesn't work. But the output page gets rendered as Crayon would by default, and without unescaped HTML. |
I'm not sure if it is a fault of Gutenberg but it seems when Gutenberg saves a post and the The part which needs to be fixed is in crayon_wp.class.php: The line 1323 Changing
to
would solve the problem. I haven't fully tested it thoroughly so not sure about any side effects. [edit] |
Thank you, @mipon I wonder if Crayon Syntax Highlighter developers will fix this problem. |
@EXL try this plugin. |
@mipon thanks! |
In the current version of Wordpress (4.9.8) the WP team introduced a preview of the will-become-default - Editor called Gutenberg (https://wordpress.org/plugins/gutenberg/).
Crayon Syntax Highlighter seems not to be compatible with it; when a code-block is inserted, it doesn't get rendered by CSH as it is with the legacy WordPress editor.
The text was updated successfully, but these errors were encountered: