Title: can&#8217;t edit component
Last modified: November 18, 2021

---

# can’t edit component

 *  Resolved [yurann2000](https://wordpress.org/support/users/yurann2000/)
 * (@yurann2000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cant-edit-component/)
 * Hello!
 * Your plugin works great, but it’s impossible to edit you shortcode – only to 
   delete and create a new one.

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Safeer](https://wordpress.org/support/users/safeerz/)
 * (@safeerz)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15083311)
 * Hi [@yurann2000](https://wordpress.org/support/users/yurann2000/)
 * Could you please elaborate on what happens when you try to edit the block with
   some screenshots?
 *  Thread Starter [yurann2000](https://wordpress.org/support/users/yurann2000/)
 * (@yurann2000)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15083894)
 * Yes, sure
 * [https://ibb.co/frtSTJK](https://ibb.co/frtSTJK)
 * And this never stops.
 *  [dgold75](https://wordpress.org/support/users/dgold75/)
 * (@dgold75)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15132280)
 * Hi, for me it´s the same.
    If I add the content block I can edit it. When I save
   it and want to edit it, then the circle keeps turning as shown above… David
 *  [JetteMadd](https://wordpress.org/support/users/jettemadd/)
 * (@jettemadd)
 * [4 years, 6 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15143633)
 * Hi, I have the same problem. Any help? Thanks!
 *  Thread Starter [yurann2000](https://wordpress.org/support/users/yurann2000/)
 * (@yurann2000)
 * [4 years, 4 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15268933)
 * Did anyone find a solution? )
 *  [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * (@squelch)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15480744)
 * Same issue here. In the JavaScript console I can see the following error message:
 * `Uncaught Error: Syntax error, unrecognized expression: selected='selected'<script
   >window.vc_presets_show=true;</script><script>window.vc_settings_show=true;</
   script><div class=" wpb_edit_form_elements vc_edit_form_elements" data-title="
   Edit Reusable Block">…`
 * This occurs in jquery.min.js:2:13639
 * Complete stack trace:
 *     ```
       jQuery 9
           buildParamsContent https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           jQuery 7
           render https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           editElement https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           editElement self-hosted:1183
           jQuery 9
           Backbone 6
           getView https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           appendShortcode https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           Underscore 2
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           Underscore 2
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           Underscore 2
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           addChild https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/backend.min.js?ver=6.8.0:10
           Underscore 2
       ```
   
 * The error is triggered by a POST to `admin-ajax.php` with the following payload:
 *     ```
       action	"vc_edit_form"
       tag	"rcblock"
       parent_tag	"vc_column_inner"
       post_id	"74571"
       params[data_source]	"reusable_block"
       params[id]	"82268"
       params[othe_id]	""
       _vcnonce	"1688427dfd"
       ```
   
 * And the returned response was (snipped a bunch of similar lines for the sake 
   of brevity)
 *     ```
        selected='selected'<script>window.vc_presets_show=true;</script><script>window.vc_settings_show=true;</script><div class=" wpb_edit_form_elements vc_edit_form_elements" data-title="Edit Reusable Block"><div class="vc_edit-form-tab vc_row vc_ui-flex-row vc_active" data-vc-ui-element="panel-edit-element-tab"><div class="vc_col-xs-12 wpb_el_type_dropdown vc_wrapper-param-type-dropdown vc_shortcode-param vc_column" data-vc-ui-element="panel-shortcode-param" data-vc-shortcode-param-name="data_source" data-param_type="dropdown" data-param_settings="{&quot;type&quot;:&quot;dropdown&quot;,&quot;heading&quot;:&quot;Data source&quot;,&quot;param_name&quot;:&quot;data_source&quot;,&quot;value&quot;:{&quot;Reusable Block&quot;:&quot;reusable_block&quot;,&quot;Other Post types&quot;:&quot;db_other&quot;},&quot;description&quot;:&quot;Select data source&quot;,&quot;vc_single_param_edit_holder_class&quot;:[&quot;vc_col-xs-12&quot;,&quot;wpb_el_type_dropdown&quot;,&quot;vc_wrapper-param-type-dropdown&quot;,&quot;vc_shortcode-param&quot;,&quot;vc_column&quot;]}"><div class="wpb_element_label">Data source</div><div class="edit_form_line"><select name="data_source" class="wpb_vc_param_value wpb-input wpb-select data_source dropdown reusable_block" data-option="reusable_block"><option class="reusable_block" value="reusable_block" selected="selected">Reusable Block</option><option class="db_other" value="db_other" >Other Post types</option></select><span class="vc_description vc_clearfix">Select data source</span></div></div><div class="vc_col-xs-12 wpb_el_type_rcb_posts vc_wrapper-param-type-rcb_posts vc_shortcode-param vc_column" data-vc-ui-element="panel-shortcode-param" data-vc-shortcode-param-name="id" data-param_type="rcb_posts" data-param_settings="{&quot;type&quot;:&quot;rcb_posts&quot;,&quot;class&quot;:&quot;reusecb_other_id&quot;,&quot;heading&quot;:&quot;Content Block&quot;,&quot;param_name&quot;:&quot;id&quot;,&quot;admin_label&quot;:true,&quot;value&quot;:&quot;&quot;,&quot;dependency&quot;:{&quot;element&quot;:&quot;data_source&quot;,&quot;value&quot;:[&quot;reusable_block&quot;]},&quot;description&quot;:&quot;Select contnet block to display.&quot;,&quot;vc_single_param_edit_holder_class&quot;:[&quot;vc_col-xs-12&quot;,&quot;wpb_el_type_rcb_posts&quot;,&quot;vc_wrapper-param-type-rcb_posts&quot;,&quot;vc_shortcode-param&quot;,&quot;vc_column&quot;]}"><div class="wpb_element_label">Content Block</div><div class="edit_form_line"><div class="data_rcb_post_block"><select name="id" class="wpb_vc_param_value wpb-input wpb-select dropdownid rcb_posts_field"><option 
       			value="83280">ROCA Ruggedised Panel</option><option 
       			value="83277">ROCA – Looking for 12 Core – Socket</option><option 
       			value="83275">ROCA – Looking for 12 Core – Plug</option><option 
       			...snip...
       			value="81714">Reviews Row</option><option 
       			value="72707">1.0 Need Technical Support – Blonde</option></select></div><span class="vc_description vc_clearfix">Select contnet block to display.</span></div></div><div class="vc_col-xs-12 wpb_el_type_textfield vc_wrapper-param-type-textfield vc_shortcode-param vc_column" data-vc-ui-element="panel-shortcode-param" data-vc-shortcode-param-name="othe_id" data-param_type="textfield" data-param_settings="{&quot;type&quot;:&quot;textfield&quot;,&quot;class&quot;:&quot;db_other&quot;,&quot;heading&quot;:&quot;Post ID&quot;,&quot;param_name&quot;:&quot;othe_id&quot;,&quot;admin_label&quot;:true,&quot;value&quot;:&quot;&quot;,&quot;dependency&quot;:{&quot;element&quot;:&quot;data_source&quot;,&quot;value&quot;:[&quot;db_other&quot;]},&quot;description&quot;:&quot;Enter post ID.&quot;,&quot;vc_single_param_edit_holder_class&quot;:[&quot;vc_col-xs-12&quot;,&quot;wpb_el_type_textfield&quot;,&quot;vc_wrapper-param-type-textfield&quot;,&quot;vc_shortcode-param&quot;,&quot;vc_column&quot;]}"><div class="wpb_element_label">Post ID</div><div class="edit_form_line"><input name="othe_id" class="wpb_vc_param_value wpb-textinput othe_id textfield" type="text" value=""/><span class="vc_description vc_clearfix">Enter post ID.</span></div></div></div></div><script src="https://www.example.com/wp-content/plugins/js_composer/assets/js/dist/edit-form.min.js"></script><script>
       	if ( window.vc ) {
       		window.vc.required_params_to_init = ["rcb_posts","textarea_html","exploded_textarea_safe","options","css_editor","font_container","autocomplete","params_preset","param_group","gutenberg","column_offset"];
       	}</script>0
       ```
   
 * Looks like the AJAX handler is returning bare HTML but the JS is expecting JSON.
 * WP 5.9.2
    PHP 7.4.7 WPBakery 6.8.0 Reusable Content Blocks 1.1.1 Theme BeTheme
   26.0.2
    -  This reply was modified 4 years, 2 months ago by [Matt Lowe](https://wordpress.org/support/users/squelch/).
      Reason: Added WP / plugin / theme versions

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘can’t edit component’ is closed to new replies.

 * ![](https://ps.w.org/reusable-content-blocks/assets/icon-128x128.jpg?rev=1957077)
 * [Reusable Content Blocks](https://wordpress.org/plugins/reusable-content-blocks/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/reusable-content-blocks/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/reusable-content-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/reusable-content-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/reusable-content-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/reusable-content-blocks/reviews/)

 * 6 replies
 * 5 participants
 * Last reply from: [Matt Lowe](https://wordpress.org/support/users/squelch/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/cant-edit-component/#post-15480744)
 * Status: resolved