This can be used to add WordPress editor(php: wp_editor() - http://codex.wordpress.org/Function_Reference/wp_editor) with jQuery. Maybe after click, ajax success, etc.
Version: 1.1
Requires: WordPress 3.9+
####If you need support for previous versions, you can use the version 1.0
###Instalation:
- Copy into theme dir: - inc folder - js folder
- Add code from functions.php to your theme functions.php
###Usage:
- If you don't have any other WordPress editor on page, you must call js_wp_editor() function.
- Add textarea element. Textarea must have id attribute.
- Call jQuery plugin:
jQuery('textarea').wp_editor();
###Changelog:
-
####1.1:
- Support for WordPress 3.9+ only
-
####1.0:
- Initial version