Steps to reproduce:

-Create a custom block: /admin/structure/block/block-content
-Enable layout builder to some content type.
- Add the custom block via the layout builder:
Go to Manage display -> Manage layout:
Add block -> the custom block-> Save layout
- Edit again via layout builder -> check console errors

Uncaught Error: Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="block_content/1/body/en/full"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="block_content/1"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.

Checked:
https://www.drupal.org/project/drupal/issues/2948828

Edit--

Documentation:
Every field that has 'data-quickedit-field-id', it looks for the attribute 'data-quickedit-entity-id'.
I think we are missing 'data-quickedit-entity-id="block_content/x" ' attribute for custom blocks inside the layout builder.

4 different scenarios:

1. A block that inside the layout builder:

<div data-layout-content-preview-placeholder-label="&quot;block created from the layout builder&quot; block" class="block block-layout-builder block-inline-blockbasic">
      <h2>block created from the layout builder</h2>
      <div class="content">
            <div data-quickedit-field-id="block_content/2/body/en/full" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>block created from the layout builder</p></div>

2. Other entites that inside the layout builder. entity refernce for example:

<article data-history-node-id="1" data-quickedit-entity-id="node/1" role="article" about="/node/1" typeof="schema:Article" class="node node--type-article node--promoted node--view-mode-default clearfix" data-quickedit-entity-instance-id="1">
  <header>
    
            <h2 class="node__title">
        <a href="/node/1" rel="bookmark" tabindex="-1">
<span property="schema:name" data-quickedit-field-id="node/1/title/en/layout_builder-default-non_component-c0858af7a82aba2ec7c7ed558d26d297babd406ce385e96d915d68e5fecbc963" class="field field--name-title field--type-string field--label-hidden">some page</span>

3. A block that outside the layout builder:

<div data-quickedit-entity-id="block_content/1" id="block-test-2" class="contextual-region block block-block-content block-block-content7d6f1fdf-86ec-4e36-8ef6-5fd4f42dc984" data-quickedit-entity-instance-id="0">
  
      <h2>Test</h2>
    <div data-contextual-id="block:block=test_2:langcode=en|block_content:block_content=1:changed=1572513265&amp;langcode=en" data-contextual-token="dr7X0PNb0twopWeXtlB0Ckw7pLP5vBE1EZERQ_JZ5xo" class="contextual"><button class="trigger visually-hidden focusable" type="button" aria-pressed="false">Open Test configuration options</button>

            <div data-quickedit-field-id="block_content/1/body/en/full" class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item quickedit-field"><p>test</p></div>
      

4. Other entities that outside the layout builder.

<article data-history-node-id="2" data-quickedit-entity-id="node/2" role="article" class="contextual-region node node--type-page node--view-mode-default clearfix" about="/node/2" typeof="schema:WebPage" data-quickedit-entity-instance-id="0">
  <header>    
            <h2 class="node__title">
        <a href="/node/2" rel="bookmark">
<span property="schema:name" data-quickedit-field-id="node/2/title/en/default" class="field field--name-title field--type-string field--label-hidden quickedit-field">test123</span>
CommentFileSizeAuthor
#85 3072231-85.patch2.94 KBnitin shrivastava
#84 reroll_diff_83-84.txt3.92 KBpooja saraah
#84 3072231-84.patch2.96 KBpooja saraah
#83 interdiff_82-83.txt768 bytesnikhil_110
#83 3072231-83.patch2.96 KBnikhil_110
#82 3072231-82.patch2.61 KBalbert volkman
#75 3072231-75.patch2.82 KBpradhumanjain2311
#74 reroll_diff_73-74.txt3.58 KBpooja saraah
#74 3072231-74.patch3.93 KBpooja saraah
#73 3072231-73-9.5.x.patch3.63 KBxaqrox
#65 3072231-65-9.3.x.patch3.89 KBnigelcunningham
#61 3072231-61-9.2.x.patch4.18 KBs3b0un3t
#59 3072231-59-9.2.x.patch4.19 KBjoegraduate
#55 quickedit.gif192.63 KBlarowlan
#48 3072231-lb-custom-blocks-47-FAIL.patch1012 bytestim.plunkett
#46 3072231-46-core-9-1-x.patch1.74 KBcrasx
#45 3072231-45-core-9-1-x.patch1.74 KBwmcmillian
#42 3072231-42-core-8-9-x.patch3.33 KBwmcmillian
#39 interdiff-3072231-31-39.txt677 bytesjoegraduate
#39 3072231-39-core-9-2-x.patch3.48 KBjoegraduate
#37 3072231-37-core-8-9-x.patch3.83 KBtomefa
#31 3072231-31-core-9-1-x.patch3.48 KBjoegraduate
#31 interdiff-3072231-30-31.txt677 bytesjoegraduate
#30 3072231-30-core-9-1-x.patch3.48 KBjoegraduate
#30 interdiff-3072231-29-30.txt1.73 KBjoegraduate
#29 3072231-29-core-9-1-x.patch1.74 KBjoegraduate
#27 3072231-26-core-8-9-x-.patch3.86 KBmaskedjellybean
#20 3072231-20-core-8-8-x-.patch3.77 KBsimgui8
#15 3072231-14-core-8-8-x.patch4.05 KBtorreytoomajanian
#13 3072231-13-core-8-7-x.patch3.74 KBdiego_mow
#12 3072231-12-plus-3091870-2.patch19.33 KBdiego_mow
#12 3072231-12.patch3.99 KBdiego_mow
#10 3072231-10-plus-3091870-2.patch18.57 KBtedbow
#10 3072231-10.patch3.23 KBtedbow

Issue fork drupal-3072231

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

tamarpe created an issue. See original summary.

kevinfunk’s picture

I'm also seeing this is 8.6.7 on a fresh install with Layout Builder being the only additional module turned on. You can also get the same error by creating a custom block via Layout builder (Layout -> Add Block -> Create custom block).

tim.plunkett’s picture

Does the presence of a custom block break _all_ of the integration? Meaning, can you quickedit any other fields alongside the brokenness.

kevinfunk’s picture

With the presence of a custom block, quick edit is missing from the contextual links. Removing the custom block restores the quick edit option.

drakythe’s picture

We're also experiencing this issue.

The issue does break the quick edit for everything on the page, removing the block from layout builder restores it. If you put the same block on the page using Block Layout you don't get the error and quick edit works.

renguer0’s picture

I see that block edit in blocks created from Layout Builder didn't save the changes. I'll try to look into permissions but I think that needs to be enabled by default.

Maybe this issues could be related.

lpeabody’s picture

This is breaking all of the theming javascript we have on the page.

npoku’s picture

+1. Confirming issue still exist, even with a fresh umami installation.

tamarpe’s picture

Issue summary: View changes
tedbow’s picture

Version: 8.7.5 » 8.9.x-dev
Status: Active » Needs review
Related issues: +#3091870: Fail Functional Javascript tests that throw Javascript errors
StatusFileSize
new3.23 KB
new18.57 KB

@tamparpe Thanks for the detailed description of the provided in #9

There are 2 reasons our tests didn't fail for this

  1. We don't have test that uses inline blocks and has user that has permission to access quickedit
  2. Even if we had this test our tests don't fail if there is Javascript error on the page. So unless the error broke core's functionality the test would still pass.

    So I created #3091870: Fail Functional Javascript tests that throw Javascript errors

    This is important because the site could have non-core JS on the page that will not run if there is another JS error on the page. I talked with @tamarpe at DrupalCon Amsterdam and I think this the problem that she has been experiencing.

I am uploading 2 patches.

  1. 1 with a test that extends \Drupal\Tests\layout_builder\FunctionalJavascript\InlineBlockTest but enables QuickEdit and gives the test users quickedit permission.

    This test will pass because of 2) above.

  2. The other will be combined with #3091870: Fail Functional Javascript tests that throw Javascript errors to prove it would fail if we took into account JS errors.

Status: Needs review » Needs work

The last submitted patch, 10: 3072231-10-plus-3091870-2.patch, failed testing. View results

diego_mow’s picture

Status: Needs work » Needs review
StatusFileSize
new3.99 KB
new19.33 KB

Hi.

I'm uploading a possible solution based on the tests from #10.

The quickedit.module quickedit_entity_view_alter function add the attribute data-quickedit-entity-id to the block ($block['#attributes']['data-quickedit-entity-id']).

Following the debugger, it was called by layout_builder EventSubscriber BlockComponentRenderArray->onBuildRender().

At this function, it adds layout_builder block inside content array render param, but doesn't implement the #attributes array.

So, what happens is that #attributes is not defined on $build render array, but on $build['content'] render array, being totally ignored when rendering our field.

My proposal is to set the $build['#attributes'] with legacy value from $build['content']['#attributes']. I'm doing that on file core/modules/layout_builder/src/EventSubscriber/BlockComponentRenderArray.php at line #120:

      $build = [
        // @todo Move this to BlockBase in https://www.drupal.org/node/2931040.
        '#theme' => 'block',
        '#configuration' => $block->getConfiguration(),
        '#plugin_id' => $block->getPluginId(),
        '#base_plugin_id' => $block->getBaseId(),
        '#derivative_plugin_id' => $block->getDerivativeId(),
        '#weight' => $event->getComponent()->getWeight(),
        '#attributes' => isset($content['#attributes']) ? $content['#attributes'] : [],
        'content' => $content,
      ];

Patch 3072231-12.patch is both tests from #10 and the fix, while patch 3072231-12-plus-3091870-2.patch has also the code from patch #3091870: Fail Functional Javascript tests that throw Javascript errors.

diego_mow’s picture

StatusFileSize
new3.74 KB

Also adding patch 3072231-13-core-8-7-x.patch for Drupal Core 8.7 (actual stable version).

torreytoomajanian’s picture

Adding an 8.8.x version as well

torreytoomajanian’s picture

StatusFileSize
new4.05 KB
tim.plunkett’s picture

Status: Needs review » Postponed
Issue tags: +Blocks-Layouts

Rerolling a testbot-only version of the patch (with drupalci changes) for branches other than the current development branch is not very helpful.

In the meantime, as #10 shows, this test is not viable without waiting for #3091870: Fail Functional Javascript tests that throw Javascript errors. Postponing on that.

maskedjellybean’s picture

#15 is working for me on Drupal 8.8.1. Thanks!

simgui8’s picture

#15 fixes it for me on Drupal 8.8.1 - Thank you

handkerchief’s picture

simgui8’s picture

StatusFileSize
new3.77 KB

This is a rerolled of #15

#15 applied successfully on 8.8.2 but didn't on 8.8.3

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

digitaldonkey’s picture

3072231-20-core-8-8-x-.patch confirmed working with Drupal 8.8.4/8.8.5 too.

marcoka’s picture

Fails on 8.9.0

aprupue’s picture

+1

arjunonemail@gmail.com’s picture

it is not working for me as well for Drupal 8.9.0 version

mfechtner’s picture

I applied that patch to 8.9.0 it seems to work in a way, that it resolves the javascript error and adds the the needed attribute.
But quick edit for blocks in layout builder still does not work.

maskedjellybean’s picture

StatusFileSize
new3.86 KB

Here's a reroll against 8.9.1

I felt a bit uncomfortable doing it because I can't make sense of all the deletions made to drupalci.yml, but this is based on the previous patches.

tim.plunkett’s picture

The drupalci.yml changes are just to hack the testbot to only run one particular test. Those don't need to stay in for future rerolls.

joegraduate’s picture

StatusFileSize
new1.74 KB

The attached patch is a re-roll of #27 (without the drupalci.yml changes) that applies cleanly to 9.1.x.

joegraduate’s picture

Issue tags: +Global2020
StatusFileSize
new1.73 KB
new3.48 KB

The attached patch updates the expected render array structures contained in the following tests to include an #attributes element with an empty array to address the test failures in #29:

  • BlockComponentRenderArrayTest::testOnBuildRender()
  • BlockComponentRenderArrayTest::testOnBuildRenderWithoutPreviewFallbackString()
  • SectionRenderTest::testToRenderArray()
  • SectionRenderTest::testContextAwareBlock()
joegraduate’s picture

StatusFileSize
new677 bytes
new3.48 KB

Failed to notice the existing coding standards issues with #27, #29. The attached patch addresses the coding standards issues in InlineBlockQuickeditEnabledTest.php

stuckinconcretejungle’s picture

Version: 9.1.x-dev » 8.9.x-dev

the patches didnt work for me, so I'm guessing there is no working patch for 8.9-x yet...

joegraduate’s picture

Version: 8.9.x-dev » 9.1.x-dev

This will need to get fixed in 9.1.x first.

rar9’s picture

I have tried this patch #31 for current D9.03 but I still get... so what am I doing wrong? or is something wrong with Radix Theme?

I just use a custom Block where included an Media Image SVG via CKEditor.

Uncaught Error: Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="media/7/thumbnail/en/media_library"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="media/7"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.

randell’s picture

The patch also doesn't do anything for me on 9.0.3. I still get the JS error. I've got a custom block attached to a header of a view as a rendered entity.

rar9’s picture

@joegraduate please help us as patch is not working for any Drupal 9 version.

tomefa’s picture

StatusFileSize
new3.83 KB

Rerolled patch #26 for drupal 8.9.7

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

joegraduate’s picture

StatusFileSize
new3.48 KB
new677 bytes

The attached patch is a 9.2.x re-roll of #31 that also updates the visibility of the $modules property of the InlineBlockQuickeditEnabledTest class in accordance with this change record: https://www.drupal.org/node/2909426 which hopefully addresses the weird failure now showing up for #31.

godotislate’s picture

I'm not sure whether this should be a separate issue, but closely related is:

  1. Add custom inline block to layout builder
  2. Quickedit JS makes an AJAX post request to /quickedit/metadata
  3. Response is 404, because POST form data includes things that look like this:
    • fields[]: block_content//field_name/en/full
    • entities[]: block_content/

This is occurring because the data-quickedit-field-id and data-quickedit-entity-id include the entity ID, which at this point is null because those custom block entities have not yet been saved.

Seems that the POST requests can be prevented from being sent at all by not adding the attributes if $entity->id() is null. Something like this, perhaps?

diff --git a/core/modules/quickedit/quickedit.module b/core/modules/quickedit/quickedit.module
index 38298d562e..31a627505e 100644
--- a/core/modules/quickedit/quickedit.module
+++ b/core/modules/quickedit/quickedit.module
@@ -134,7 +134,7 @@ function quickedit_preprocess_field(&$variables) {
   /** @var \Drupal\Core\Entity\ContentEntityInterface $entity */
   $entity = $element['#object'];

-  if (!\Drupal::currentUser()->hasPermission('access in-place editing') || ($entity instanceof RevisionableInterface && !$entity->isLatestRevision())) {
+  if (is_null($entity->id()) || !\Drupal::currentUser()->hasPermission('access in-place editing') || ($entity instanceof RevisionableInterface && !$entity->isLatestRevision())) {
     return;
   }

@@ -163,7 +163,7 @@ function quickedit_entity_view_alter(&$build, EntityInterface $entity, EntityVie
   }

   $build['#cache']['contexts'][] = 'user.permissions';
-  if (!\Drupal::currentUser()->hasPermission('access in-place editing') || ($entity instanceof RevisionableInterface && !$entity->isLatestRevision())) {
+  if (is_null($entity->id()) || !\Drupal::currentUser()->hasPermission('access in-place editing') || ($entity instanceof RevisionableInterface && !$entity->isLatestRevision())) {
     return;
   }
thomaswalther’s picture

I used a paragraph from an paragraph library. I still got this error:

Uncaught Error: Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="paragraphs_library_item/2/paragraphs/de/default"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="paragraphs_library_item/2"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.

wmcmillian’s picture

StatusFileSize
new3.33 KB

Reworked patch from #37

tlo405’s picture

I'm seeing this error for block_content, media, and paragraphs. I've looked at https://www.drupal.org/project/drupal/issues/3101267 as well. Using a preprocess hook and/or modifying the twig files does fix the issue...however I feel that shouldn't be necessary. The patches here only fix the issue for custom blocks...however the issue still exists for media and paragraphs.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

wmcmillian’s picture

StatusFileSize
new1.74 KB

Reworked #37 again

crasx’s picture

StatusFileSize
new1.74 KB

#45 resolved my issue, here is a fixed patch (hopefully)

Webbeh’s picture

Status: Postponed » Needs review
tim.plunkett’s picture

StatusFileSize
new1012 bytes

This patch with just the tests should fail. Moving to an MR for the real work with the fix.

tim.plunkett’s picture

Status: Needs review » Needs work

The last submitted patch, 48: 3072231-lb-custom-blocks-47-FAIL.patch, failed testing. View results

tim.plunkett’s picture

Status: Needs work » Needs review

Okay the patch in #48 failed as expected, and the MR branch is green!
Can someone manually test the code in the MR and RTBC the issue?

andypost’s picture

Status: Needs review » Reviewed & tested by the community

Looks great!

Webbeh’s picture

+1 to RTBC, applied MR as `/diffs.patch` and the error message no longer appears. After enabling QuickEdit, I can edit `block_content` fields via QuickEdit without issue and error message.

larowlan’s picture

Issue summary: View changes
StatusFileSize
new192.63 KB

Manually tested this and confirmed it does enable quick-edit for LB

However, not sure it works as intended.

Do we have an existing issue for this?

larowlan’s picture

@godotislate can you open a separate issue for that - unrelated to the work here I think

Updating issue credits.

There are several reports here about this enabling editing of custom blocks via quick edit.

I don't think that is the scope here, the scope is fixing the broken JS error.

@tim.plunkett @tedbow as subsystem maintainers - I assume you agree given you both worked on the patch

The MR looks good to me, just waiting for an answer if we have follow-ups for the other reported issues.

tim.plunkett’s picture

#3020876: Contextual links of reusable content blocks are not displayed when rendering entities built via Layout Builder was another issue that added in #attributes. It had a lot more research put into it, judging by the comment added to the code base. I rebased this MR accordingly.

I haven't looked into #55 though...

bigboy’s picture

#39 partly worked for me.

Drupal 9.2.7

Installed patch, cleared chache. At first page load got this on-page error, which didn't show up ever again:

Notice: Undefined index: comment_body in Drupal\layout_builder\Plugin\Derivative\FieldBlockDeriver->getDerivativeDefinitions() (line 102 of core\modules\layout_builder\src\Plugin\Derivative\FieldBlockDeriver.php).

And in the console:

Uncaught Error: Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="media/2/field_media_image/ru/full"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="media/2"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.

However, the patch actually did something ))) Because before the error was different:

Uncaught Error: Quick Edit could not associate the rendered entity field markup (with [data-quickedit-field-id="block_content/13/body/ru/full"]) with the corresponding rendered entity markup: no parent DOM node found with [data-quickedit-entity-id="block_content/13"]. This is typically caused by the theme's template for this entity type forgetting to print the attributes.

So, probably it fixed the custom block issue, but there is still a problem with media.

I have LB page with custom blocks, inline media, background videos and images, slick views carousel.

joegraduate’s picture

StatusFileSize
new4.19 KB

Attached patch is a re-roll of #39 that should apply cleanly to the latest 9.2.x branch.

nishruu’s picture

Hello @joegraduate.
Your patch gives an error.

'#attributes' => '#attributes' => $content['#attributes'] ?? []
should probably be :
'#attributes' => $content['#attributes'] ?? []

s3b0un3t’s picture

StatusFileSize
new4.18 KB

You're right.

I've updated patch.

tim.plunkett’s picture

Status: Reviewed & tested by the community » Needs work

Okay so work on the dev version of Drupal was happening in the MR and now there are patches for 9.2 that are different. And the MR is not passing tests at the moment.
Please help get the MR back to working against latest Drupal before sidetracking it with backports

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

NigelCunningham made their first commit to this issue’s fork.

nigelcunningham’s picture

Version: 9.4.x-dev » 9.3.x-dev
Status: Needs work » Needs review
StatusFileSize
new3.89 KB

There is no 9.4.x at the time of writing so I've rebased the MR against 9.3.x (9.3.0 plus xjm's Back to dev patch) - and added the interdiff to #61. There were no rejects when rebasing and the reject in applying #61 is trivial so I have high confidence everything is good, but it needs more review and testing yet so updating the status to needs review.

Adding S3b0uN3t to the credits since their patch is added into the mix.

Attaching a patch against 9.3.x for those who want it. Attempting to generate an interdiff from #61 failed, sorry.

nigelcunningham’s picture

Version: 9.3.x-dev » 9.4.x-dev

Ok, now I've been able to get 9.4.x. Rebased without any rejects.

nigelcunningham’s picture

Restored initial MR to 9.3.x and made a new one for 9.4.x. Sorry for the noise - still learning how to handle git branches in this new infrastructure.

Status: Needs review » Needs work

The last submitted patch, 65: 3072231-65-9.3.x.patch, failed testing. View results

alvarito75’s picture

Confirming patch #65 is not working well in core 9.3.7 after upgrading from Drupal 8.9.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

xaqrox’s picture

StatusFileSize
new3.63 KB

This is patch #65 updated for 9.5.x. Posting for convenience, mostly my own, but hopefully it helps others ;)

pooja saraah’s picture

StatusFileSize
new3.93 KB
new3.58 KB

Fixed failed commands on #73
Attached patch against Drupal 10.1.x
Attached reroll patch for Reference

pradhumanjain2311’s picture

Status: Needs work » Needs review
StatusFileSize
new2.82 KB

Fix Patch failed to apply for patch #74.
Please review.

Status: Needs review » Needs work

The last submitted patch, 75: 3072231-75.patch, failed testing. View results

the_g_bomb made their first commit to this issue’s fork.

rar9’s picture

Patch #75 no longer applies for D9.5

Webbeh’s picture

Per #79, #75 is tested for 10.1.x, so I suspect that is the culprit. Please see #73 for a 9.5 patch.

For contributors: please read comment #3072231-62: Custom blocks break layout builder module - Quick Edit could not associate the rendered entity field markup before contributing. If you are contributing fixes to bring the code in alignment for RTBC, please contribute work into the MR, not into patches (especially those without an interdiff, as in #75).

You do not need to submit a patch to receive contribution credit, so please be mindful of the previous work done in this issue.

Additionally, this is NW because we have a failing test - that is the next step in getting this resolved.

larowlan’s picture

Now quick edit has moved to contrib, should this go in the quickedit contrib issue queue?

albert volkman’s picture

StatusFileSize
new2.61 KB

Reroll for 9.5.x.

nikhil_110’s picture

StatusFileSize
new2.96 KB
new768 bytes

Patch for 10.x and Try to cs issue fix.. or Re-roll patch #82

pooja saraah’s picture

StatusFileSize
new2.96 KB
new3.92 KB

Fixed failed commands on #83
Attached patch against Drupal 10.1.x

nitin shrivastava’s picture

StatusFileSize
new2.94 KB

fix failures

nikhil_110’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Needs work
Issue tags: +Needs Review Queue Initiative, +Needs tests

This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request as a guide.

This seems like it should have it's own test cases.

Is #attributes' => [], now required? Will this break existing sites?

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.