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

    • Type: Task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.4.5
    • Component/s: gui
    • Labels:
      None
    • Magnolia Release:
      4.4.5

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: