Uploaded image for project: 'In-Portal CMS'
  1. In-Portal CMS
  2. INP-1698

Allow using CKEditor and CodeMirror on same textarea

    XMLWordPrintable

    Details

    • Type: Bug Report
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 5.3.0-B1
    • Fix Version/s: 5.3.0-B1
    • Component/s: CMS
    • Labels:
      None
    • Change Log Group:
      Fixed
    • Change Log Message:
      The value from CKEditor popup wasn't saved back to CodeMirror powered textarea on the form.
    • Story Points:
      1
    • Copy Issue Key:
    • Patch Instructions:

      Patches must be submitted through Phabricator.

      Description

      1. on "change" event (the "InitEditors" function in "forms.js") for textarea controlled by CodeMirror set value in CodeMirror to match one from textarea
      2. in the "popups/editor" template, when changing textarea value based on CKEditor data also trigger "change" event
      3. in the "InitEditors" function in "forms.js" for each CodeMirror instance:
        • set "readOnly" CodeMirror option, when textarea is disabled
        • on textarea listen for "refresh" event and when it happens sync "readOnly" option of CodeMirror based on textarea disabled state

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alex Alex
                Reporter:
                alex Alex
                Developer:
                Alex
                Reviewer:
                Erik Snarski [Intechnic]
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1.5h
                  1.5h