Simple HTML tags used in Inline Blocks, are output as text when using CKE

Created on 3 May 2021, over 3 years ago
Updated 25 March 2024, 9 months ago

Problem/Motivation

When editing an inline block in Layout Builder (using the sidebar experience, or via a modal) and it has a field that uses CKE, sometimes the html tags get output as text after saving. So html-tags get re-encodes into html-characters somehow?

Steps to reproduce

  • Make a block type that contains a field using CKE
  • Go to a page that has Layout Builder enabled for its full view mode
  • Go to the layout for that individual page
  • Add an inline block to a Section, put some text in it
  • Without saving the page, now edit that same block
  • The block now outputs all the html tags in there as text (eg. '

    ' and such is printed as text)

What it looks like in CKE when editing:

What it looks like in the preview mode (or Live, if you save the page):

What it looks like when going back to edit the block:

Proposed resolution

Ideally, the html that's passed to and from CKE remains encoded correctly. There are no JS errors that I can see, so it's difficult to debug and fix. Maybe someone else has some better insight on where things might be going wrong and how to catch it.

πŸ› Bug report
Status

Closed: cannot reproduce

Version

11.0 πŸ”₯

Component
Layout builderΒ  β†’

Last updated 4 days ago

Created by

πŸ‡§πŸ‡ͺBelgium rembrandx

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡¦πŸ‡ΊAustralia pameeela

    I'm not able to reproduce this on D10. Steps I followed:

    1. Edit layout on a node
    2. Create an inline block with HTML
    3. Save block
    4. Edit block before saving node

    The block text appears as expected, without visible HTML.

  • Status changed to Closed: cannot reproduce 9 months ago
  • πŸ‡³πŸ‡ΏNew Zealand danielveza Brisbane, AU

    There has been no further updates to this and it has been marked as postponed for 12 months, so I'm now marking this as closed.

    Please feel free to reopen or raise a new issue if you're able to provide steps to replicate this issue. Thanks!

Production build 0.71.5 2024