Skip to content

Conversation

@n7studios
Copy link
Contributor

Summary

Improves #1012 by

  • Changing the REST API route name to a more descriptive editor/tinymce/modal, with options to define the shortcode and editor_type parameters
  • Changing the REST API verb from POST to GET
  • Validate the REST API request's shortcode and editor_type parameters
  • Use rest_ensure_response, as we do for other REST API routes
  • Remove die() calls so that rest_ensure_response returns the HTML
  • Adds integration tests

Testing

  • RESTAPIEditorTinyMCEModalTest: Adds REST API tests for the modal endpoint

Checklist

@n7studios n7studios self-assigned this Feb 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant