Skip to content
This repository has been archived by the owner on Dec 11, 2017. It is now read-only.

Integrate with Text mode and Custom HTML block in Gutenberg editor #10

Open
westonruter opened this issue Jul 7, 2017 · 3 comments
Open

Comments

@westonruter
Copy link
Member

See WordPress/gutenberg#1733

@westonruter
Copy link
Member Author

Let's de-prioritize this for now.

@arniebradfo
Copy link

arniebradfo commented Sep 4, 2017

Maybe I could help out on this when you reprioritize it.

I maintain a plugin called the HTML Editor Syntax Highlighter. I've written a custom Codemirror syntax mode that highlights everything in the post/page text editor:

  • htmlmixed:
    • html
    • css
    • js
  • shortcodes [squarebrackets/] syntax
  • WP specific things:
    • <!--more-->
    • <!--nextpage-->
    • etc...

Adding this to WP-core for the Gutenberg editor would be awesome!

@westonruter
Copy link
Member Author

@arniebradfo hi! I can see that I actually reached out to you yesterday on the support forum on this topic: https://wordpress.org/support/topic/html-editor-syntax-highlighter-codemirror-being-added-to-core-in-4-9/

I agree, extending the htmlmixed mode with support for highlighting shortcodes and WordPress-specific comments would be really useful in WordPress, even though the post editor isn't a current target for integrating CodeMirror 4.9. It would still be useful now for when that happens, and it would be useful in the short term for a Gutenberg integration.

Also, CodeMirror should be integrated with the Custom HTML block in Gutenberg, so that's another thing that would be in scope here.

Your insights and experience are appreciated!

@westonruter westonruter changed the title Integrate with Text mode in Gutenberg editor Integrate with Text mode and Custom HTML block in Gutenberg editor Sep 4, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants