bonny / WordPress-Simple-Fields

WordPress plugin that extend Custom Fields to include textareas, WYSIWYG-editor, files, attachments, well basically anything
http://wordpress.org/extend/plugins/simple-fields/
88 stars 23 forks source link

Stramge behaviour with repetable rich text editors #97

Open powerbuoy opened 10 years ago

powerbuoy commented 10 years ago

I'm experiencing some weird behaviour after having created a repeatable field group which has 3 rich text editors.

I'm using the PHP API to create my fields, and in short I'm using this:

simple_fields_register_field_group('textareas_group', array(
[...]
array(
    'slug' => 'primary_content', 
    'name' => __('Primary Content', 'h5b'), 
    'type' => 'textarea', 
    'type_textarea_options' => array('use_html_editor' => 1)
), 
array(
    'slug' => 'secondary_content', 
    'name' => __('Secondary Content', 'h5b'), 
    'type' => 'textarea', 
    'type_textarea_options' => array('use_html_editor' => 1)
)
[...]
);

And so on.

The problem I'm having is that:

1) The first of the three textareas has THREE rows of buttons in its UI, the second has two rows and the third has one row (attached screenshot of this)

2) When adding a new set of fields using the "+ Add"-link at the bottom things get even stranger and I'm unable to reliably switch between Visual and Text editor, if I try some of the buttons in the UI the dropdowns etc are positioned in the top left corner of the screen as well

3) After having added a new set of fields with "+ Add" and the UI gets messed up, IF I still write something in the textareas and click save it won't save the text

All of these things only seem to happen when you first click "+ Add" to create a new set of fields. If I + Add first, then save the post to update the page everything seems to work fine.

Thanks for an awesome plugin btw!

1-simple-fields-multiple-controls

davidmh commented 10 years ago

Can confirm bug, using the UI as well.