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

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

      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.

        Acceptance criteria

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

                Created:
                Updated:
                Resolved:

                  Task DoR