Problem with Widget and Code Editor API
-
Hello!
Wordpress 4.9 introduces CodeMirror library for use within core and an API to use with plugin development. I was able to successfully manage how to integrate the editor into the administration page of my plugin following Ruter’s advice in his post but when I come to face with Widget API I can not handle this new feature because I don’t know the Widget ID to pass as parameter to
wp.codeEditor.initialize()
.
Before the 4.9 release I used a copy ofcustom-html-widgets.js
adapted for use by my plugin but now it does not work anymore. What is the correct way to use CodeMirror with the Widget API?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Problem with Widget and Code Editor API’ is closed to new replies.