Uploaded image for project: 'Magnolia UI'
  1. Magnolia UI
  2. MGNLUI-3433

Resolve AceEditor mode automatically for syntax highlighting.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Neutral
    • 5.4
    • None
    • forms

    Description

      Currently we have to define mappings (e.g. in the old resources app) for identifying AceEditor mode.
      This ticket aims to detect it automatically in BasicTextCodeFieldFactory, based on the file extension.

      For this feature to be usable in various apps, we assume the Vaadin Item has to provide the file name as one of its properties—which name may vary, e.g.:

      • JcrNodeAdapter provides it as "jcrName"
      • new resources app is currently using BeanItem<ResourcePath>, hence providing file name as its "name" property.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              ilgun Ilgun Ilgun
              ilgun Ilgun Ilgun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Task DoD