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

checkUrl and codemirror-mode do not mix

    XMLWordPrintable

Details

    • 2.369

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: