Does this module really work?

Created on 15 July 2023, 12 months ago
Updated 29 September 2023, 9 months ago

Problem/Motivation

I try to use ace for a long text field in nodes.
1) in edit mode, to get the ace editor showing, one need to switch to another format and back.
2) the default syntax is always HTML, though I set php as default.
Changing the syntax to PHP in the ace UI does not do anything.

Steps to reproduce

Configure ACE default syntax for PHP
Add a text field to a node type
Edit a node of that type
The field appears in the first format - Full HTML for example
Change to ACE
The field displays the ACE editor, it indicates HTML
Type some code to verify that it is HTML, not PHP
Change the syntax setting to PHP in the editor
No change, the actual language is still HTML
Save the node
In view mode, it is still HTML
Edit the node again
The ace format is selected, but the ACE editor is not activated
Select another format and back to ace: the editor shows up.
The editor keeps HTML whatever we do.

Note : In the Devel php exec box, the editor shows up immediately.
However, ACE sticks to HTML either.

Proposed resolution

Maybe I missed or misunderstood something.
Thanks for help

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Closed: duplicate

Version

1.9

Component

Documentation

Created by

πŸ‡«πŸ‡·France jvieille

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

Comments & Activities

  • Issue created by @jvieille
  • Status changed to Closed: duplicate 12 months ago
  • πŸ‡«πŸ‡·France jvieille

    Summary of my experiment of ACE implementation in Drupal to apply ACE to a text field:
    - Problem with Media Ckeditor, preventing triggering ACE in edit mode : I had to disable all CKeditor relate modules and back, resaving Ckeditor config.
    - Syntax (and theme) is set at 4 places :
    1) at admin/config/content/formats/ace_editor, Filter setting section
    2) at admin/config/content/ace-editor
    3) at admin/structure/types/manage/XXX/display
    4) at the native ACE bottom bar available in edit mode

    Syntax highlight works in view mode using the setting (3) : a given field always uses the same syntax, whatever is changed in edit mode
    Syntax highlight works in edit mode using HTML only. No way to change that : the ACE native setting bar has no effect. This setting is ignored in view mode.

Production build 0.69.0 2024