Cloneable group with WYSIWYG
- This topic has 10 replies, 5 voices, and was last updated 6 months, 1 week ago by
FED.
-
AuthorPosts
-
August 5, 2016 at 9:57 PM #3813
wefit.lucas
ParticipantHello, I'm having trouble with the WYSIWYG field.
I have a cloneable group with 2 text inputs and a wysiwyg field. The WYSIWYG in the first group is not rendering properly (the tabs Visual and Text are there, but not the rest), but if I add a clone, the second one will work just fine. I've tried reloading the page, but still nothing.Thanks.
August 6, 2016 at 8:51 AM #3817Anh Tran
KeymasterCan you post your code to test?
Thanks
AnhAugust 9, 2016 at 1:17 AM #3824wefit.lucas
ParticipantApparently the problem starts on the second level group:
$meta_boxes[] = array( 'title' => __( 'Content', 'textdomain' ), 'id' => 'myContent', 'post_types' => 'rep_page', 'fields' => array( //---- Select Component Type Metabox ----// array( 'id' => 'content', 'type' => 'group', 'clone' => true, 'sort_clone' => true, 'fields' => array( array( 'id' => 'myTitle', 'name' => __( 'Title', 'textdomain' ), 'type' => 'text', 'placeholder' => 'Title', ), array( 'id' => 'myText', 'name' => __( 'Text', 'textdomain' ), 'type' => 'wysiwyg', 'options' => array( 'media_buttons' => false, 'textarea_rows' => 6, 'teeny' => true, ), ), array( 'id' => 'myGroup', 'type' => 'group', 'clone' => true, 'sort_clone' => true, 'fields' => array( array( 'id' => 'myText2', 'name' => __( 'Text', 'textdomain' ), 'type' => 'wysiwyg', 'options' => array( 'media_buttons' => false, 'textarea_rows' => 6, 'teeny' => true, ), ), ), ), ), ), ), );
August 9, 2016 at 9:37 AM #3826Anh Tran
KeymasterHi,
I tested your code and saw the bug. It relates with the unique ID attribute for the editors which is a technical challenge at the moment. I will keep trying and release a fix as soon as I find a solution.
Thanks
August 19, 2016 at 1:13 AM #3893FED
ParticipantI'm also in need of a solution to this issue. If possible, an ideal fix would work for any level of group-nesting.
Thanks!
September 8, 2016 at 8:11 PM #4045FED
ParticipantHi Anh,
Any updates on this issue?
Thanks
September 9, 2016 at 8:45 AM #4049Anh Tran
KeymasterHi FED, the bug is complicated and I haven't found a good solution yet. I will let you know as soon as I find a way.
Thanks
AnhOctober 8, 2024 at 8:08 PM #46626Grzegorz Sidor
ParticipantHas anyone solved this problem? Because I have one that works in one clonable group, but when I want to add another clonable group to the clonable group, then wysiwig doesn't start in it. You can only click the text tab and refresh the page. Only then can you edit the content, but no buttons appear anyway.
October 10, 2024 at 1:50 PM #46651Kulcsár Peter
ParticipantThis should be priority to solve the issue! I am stuck because of it.
Also the Post - Select Advanced / Multiple field is not working. So we can't change the selected post.
And there are performance issues too, the load of the editor when there are more WYSIWYG editors loaded increases significally.
https://snipboard.io/joRpuX.jpgOctober 10, 2024 at 9:22 PM #46653FED
ParticipantWe are still (years later!!!) seeing significant performance impacts due to this problem and we have not found a solution.
October 10, 2024 at 9:59 PM #46654FED
ParticipantSomewhat related: Is there any way to access older versions of MB Group? Were seeing way more serious issues like this more recently than we have in the past, and I'd like to roll back. However, I can't. We are installing via Composer (that's a known issue) but I also can't find anywhere to download the the older versions of the plugin.
-
AuthorPosts
- You must be logged in to reply to this topic.