I'm using WPAlchemy and I'm using the wp_editor.
My issue is when I use WPAlchemy's "docopy" function for a repeatable group.
The editor is copied but is not functional. It is copied and displayed, but the area is not clickable inside and you can't do anything with it.
If you click on the text tab and then refresh the page and now copy it, it works fine, but if you then click on the Visual tab it doesn't work. So the issue is obviously has something to do with the visual tab area.
I've made a plugin to demonstrate the issue. Install the plugin and go to a post. You'll see the repeating group below it only has a WP_editor area in it.
Here's the test plugin... http://testplugins.s3.amazonaws.com/testplugin.zip
Any help would be greatly appreciated.
Bob answers:
may be this become helpful to you.
http://www.farinspace.com/multiple-wordpress-wysiwyg-visual-editors/
Armand Morin comments:
Thanks but that won't work. The issue is I'm using WP_editor in a repeating field.
Bob comments:
I am not sure the wp_editor documentation says
<blockquote>you cannot put it in meta-boxes that can be dragged and placed elsewhere on the page</blockquote>
I think this is the reason it is not working as expected.
Bob comments:
Here is modified plugin
https://drive.google.com/file/d/0B4TSKnkdVpJ3dXkyV0h1WnFVWVU/edit?usp=sharing
Bob comments:
you might have to do some cleanup
Armand Morin comments:
Bhavesh,
Technically this works. But the problem is that it won't work with the next WordPress 3.9 release. The next version of WordPress updates the TinyMCE to version 4. This changes the way it will be called. So Kathy's solution although works with 3.8.1 will not work in 3.9 due to how it is called.
This is the reason I was looking at using the native WP_editor, thinking it might be easier.
Armand Morin comments:
FYI - I tried it in version 3.9 and it doesn't work. It just displays a blank textarea.
Bob comments:
I tried to fix it with the way you are trying to add editor. But didn't get success.
So again I moved to javascript way of doing it.
After lot's of debugging and searching in google finally I corrected the code.
also added one line of css to fix layout issue.
But here the catch is that we have to create two javascript so that it work with old version of wordpress too.
Yes we can check wordpress version and lode javascript accordingly.
Okay I have modified new javascript so now it is working with 3.9
I found that you tried a lot to solve this issue.
I hope now it will work for you. Let me know if still it create any trouble.
[[LINK href="http://wp-lovers.com/wpquestions/testplugin-new.zip"]]http://wp-lovers.com/wpquestions/testplugin-new.zip[[/LINK]]
Please don't forget to deactivate you plugin before activating this one.
I have tested it and it's working for me in WordPress 3.5.2. as well as Wordprss 3.9
Armand Morin comments:
Yup works on 3.9 just tried it... works perfectly. I'll vote you as best answer. Thanks.
Bob comments:
I am glad to know that your problem is solved :)
Bob comments:
Your vote is really valuable for me. Please vote before this question expire :)
Arnav Joy answers:
I have tested your plugin , and I think it is issue of same name or id of wysiwyg editor , i am looking and will update you if i fix it.
Basilis Kanonidis answers:
Hello,
Please take a look at the following tutorials, the solution is there ( will be more helpful if we knew your code exactly )
http://www.farinspace.com/multiple-wordpress-wysiwyg-visual-editors/
&
http://scottlee.me/wpeditor-with-wpalchemy/
Please let me know if I could do anything else for you, to help you out.
Thanks,
Hariprasad Vijayan answers:
Hello,
The problem is that the wp_editor() automatic load the scripts and this is not possible when editor create dynamically. Check following link
[[LINK href="http://wordpress.stackexchange.com/questions/70797/dynamic-wordpress-editor-in-meta-box/70805#70805"]]Click Here[[/LINK]]