Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-15604

checkUrl and codemirror-mode do not mix

XMLWordPrintable

    • 2.369

      If you put <f:textarea codemirror-mode="clike"/> in a Jelly page, and there is a doCheckWhatever method for the field in the corresponding Descriptor, the validation will not work—it will only validate the contents of the text area when the page was loaded, regardless of subsequent edits.

      The cause seems to be that e.value (used from controlValuetoValueqstargetUrlregisterValidatorTEXTAREA.validated) does not update dynamically when CodeMirror is used, unless and until e.codemirrorObject.save() is called.

            jglick Jesse Glick
            jglick Jesse Glick
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: