Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-3771

Codemirror editor variable should be global so that it's accessible by any javascript

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Major
    • 4.4.5
    • None
    • gui
    • None

    Description

      At the moment, the codemirror editor js variable created by DialogEditCode is local to the anonymous js function that instantiates it (the var keyword is used). We need to make its scope global so that other scripts can access it. In particular, I am thinking about the groovy module and this long-standing bug MGNLGROOVY-35.
      This should be safe in case there are multiple instances of the DialogEditCode control, since each editor variable should be created with a unique name.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                fgrilli Federico Grilli
                fgrilli Federico Grilli
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Task DoR