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
- install drupal 10
- go to layout builder
- 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
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | Screenshot from 2023-09-23 18-51-55.png | 122.51 KB | rajab natshah |
| #5 | Screenshot from 2023-09-23 18-51-12.png | 91.73 KB | rajab natshah |
Issue fork ace_editor-3386750
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
Comment #3
rajab natshah#3388322: Fix HTML error when textarea view field has ace format
Comment #4
rajab natshahFor some reasons, the following code
is not adding the suffix
-ace-editorto the#edit-settings-block-form-body-0-value--zyrKaB4UBagComment #5
rajab natshahI confirm facing the same issue with any ACE Editor editing on any Front-End theme
With CKEditor 5

When switching to ACE Editor

Comment #6
rajab natshahComment #8
rajab natshahComment #9
rajab natshahComment #10
rajab natshahComment #11
rajab natshahComment #12
rajab natshah✅ Released ace_editor-2.0.0-beta2