Fix ace editor HTML code throws error when it's used inside layout builder after upgrading to beta1

Created on 12 September 2023, about 1 year ago
Updated 23 September 2023, about 1 year ago

Problem/Motivation

Uncaught Error: ace.edit can't find div #edit-settings-block-form-body-0-value--zyrKaB4UBag-ace-editor

    at exports.edit (ace.js?v=10.1.2:20712:19)
    at Object.attach (editor.js?v=10.1.2:30:63)
    at Drupal.editorAttach (editor.js?v=10.1.2:302:37)
    at Object.success (editor.js?v=10.1.2:57:11)
    at c (jquery.min.js?v=3.7.0:2:25266)
    at Object.fireWith [as resolveWith] (jquery.min.js?v=3.7.0:2:26015)
    at l (jquery.min.js?v=3.7.0:2:77721)
    at XMLHttpRequest.<anonymous> (jquery.min.js?v=3.7.0:2:80204)

Steps to reproduce

  1. install drupal 10
  2. go to layout builder
  3. try to add HTML code

Proposed resolution

  • Change to use .js-form-type-textarea

Remaining tasks

  • File an issue
  • MR/Patch
  • Test
  • Review
  • Release

User interface changes

  • N/A

API changes

  • N/A

Data model changes

  • N/A
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡―πŸ‡΄Jordan Ahmad Khader

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

Comments & Activities

Production build 0.71.5 2024