Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-14558

Migrate textArea widget types to be enhanced with code mirror

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.9.5
    • Component/s: Layouts & Widgets

      Description

      Since Studio uses code mirror, we need to be able to distinguish which widget will be rendered with code mirror.

      Currrently, all widget of type 'textArea' are rendered with code mirror along with javascript mode by default.

      We want to easily be able to tell whether a textArea must be rendered with code mirror and with which mode.

      To do so, we'll introduce a new widget type called 'codeArea' and a widget property called 'language' which will determine which mode must be applied by code mirror:

      • javascript
      • css
      • xml
      • nxql
      • ...
        The widget/layout engine will be able to fall back on a regular html text area in the JSF UI (showcase).

      Finally, the new 'codeArea' widget type will also have the following properties:

      • columns
      • lines

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 4 hours
                  4h
                  Remaining:
                  Remaining Estimate - 4 hours
                  4h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified