Skip to content

WIP: Packages: Add the code editor package#8252

Closed
youknowriad wants to merge 1 commit intomasterfrom
try/add-code-editor-package
Closed

WIP: Packages: Add the code editor package#8252
youknowriad wants to merge 1 commit intomasterfrom
try/add-code-editor-package

Conversation

@youknowriad
Copy link
Copy Markdown
Contributor

This PR adds the code editor package as a Gutenberg package. The code was copied as is from Core and tweaked a little bit:

  • Removing the use of globals
  • Lodash instead of undersscore

This PR is not working yet because in the CodeEditor component, we try to do async loading of scripts and styles and for some reason the load-scripts.php is not returning the wp-code-editor script and style (registered in Gutenberg), it only works for Core registered scripts/styles (I'll need a help from a WordPress Core expert here).

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

npm Packages Related to npm packages [Status] Blocked Used to indicate that a current effort isn't able to move forward

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants