JS error on node page

Created on 19 December 2016, almost 8 years ago
Updated 8 September 2024, 3 months ago

Hello,

I installed ace editor and the library using drush and it works well on admin. Enabled it for PHP code format, it's fat better to write code in node or blocks.

However, when I see the block node, I can see js error in the console :

Uncaught Error: ace.edit can't find div #body-0-pre
    at Object.t.edit (ace.js?oifpqq:1)
    at Object.<anonymous> (ace_editor.js?oifpqq:17)
    at Function.each (jquery.min.js?v=1.10.2:4)
    at $.fn.init.each (jquery.min.js?v=1.10.2:4)
    at Object.attach (ace_editor.js?oifpqq:8)
    at Object.<anonymous> (drupal.js?oifpqq:76)
    at Function.each (jquery.min.js?v=1.10.2:4)
    at Object.Drupal.attachBehaviors (drupal.js?oifpqq:74)
    at HTMLDocument.<anonymous> (drupal.js?oifpqq:504)
    at c (jquery.min.js?v=1.10.2:4)

It prevent all my others scripts that are defined on a $(document).ready() to trigger, so it seems critical to me.

If I remove ace editor, my scripts works, so it's not a problem with my scripts.

Thanks

Alex

🐛 Bug report
Status

Closed: outdated

Version

1.9

Component

Code

Created by

🇫🇷France Alexandre360

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.

Production build 0.71.5 2024