Problem/Motivation

The ckeditor on the admin side reveals that there is text in the

"Row Title" element, but is doesn't present on the front-end to the user.

Steps to reproduce

  • In a ckeditor5 text editor in the admin side: Add an accordion.
  • Add row title.
  • Add row content.
  • Save node.
  • View page.
  • Row content is there, but row title is not in the source code.
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

UTCbrij created an issue. See original summary.

utcbrij’s picture

Category: Support request » Bug report
risse’s picture

StatusFileSize
new8.76 KB

I am having the same issue, the problem is that the "innerText" property is not working in JS, I think it's due to it not being rendered / is hidden.

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/innerText

If you replace it with "textContent" it works. Attached is a patch.

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

ravi kant’s picture

StatusFileSize
new48.01 KB

@UTCbrij
The issue did not regenerate for me.
I am using -

  • drupal 10.2.3
  • Kite theme

May i know what is your project Drupal version?
Also the issue may be due to any jQuery and javascript bug.

working as accepted

uv516’s picture

I had the same problem:
Drupal 10.2.5, Adaptivetheme

My settings:

[x] Collapse all tabs by default
[ ] Keep accordion rows open when opening another one
[x] Animate accordion open / close
[ ] Open tabs with hash using anchor links or on page load

The patch in #3 helped me.

ravi kant’s picture

I am not getting error on Drupal 10.2.3 with Default Olivero theme.
So i am sure that issue is due to Adaptivetheme so checking for Adaptivetheme theme.

ravi kant’s picture

StatusFileSize
new108.73 KB

The issue is also not more me in new sub theme of Adaptivetheme.

no issue

So the issue is in custom work in custom theme.

marieascomedia’s picture

Got the issue with drupal 10.2.7 and Olivero child theme.
Same settings as #7.
The patch in #3 helped me to.