Uploaded image for project: 'Confluence Source Editor Plugin'
  1. Confluence Source Editor Plugin
  2. SOURCE-733

ScriptRunner conflicts with Confluence Source Editor

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • None
    • None
    • None
    • true

      Problem Definition

      There is a conflict between ScriptRunner and Confluence Source Editor which is preventing the editor from displaying more than 21 rows. Both applications are using different versions of the CodeMirror JavaScript library which is causing the conflict.

      More details can be found here:

      Suggested Solution

      Although this is being tracked by the Scriptrunner vendor, we could update the Source Editor CodeMirror JavaScript library to avoid this issue. Also, the problem is due to Source Editor using an old version of the library, so an update would be beneficial.

      Why this is important

      Customers using Scriptrunner are not able to properly use Source Editor at the same time.

      Workaround

      Add the following to the Confluence Global Stylesheet:

      .CodeMirror {
          height: auto;
      }
      .CodeMirror-scroll{
          margin-bottom: 0px;
          margin-right: 0px;
          padding-bottom: 0px;
      }
      

            [SOURCE-733] ScriptRunner conflicts with Confluence Source Editor

            Seeing this on Server 6.15.2 / Source Editor 1.1.3 / SR4C 5.5.11

            Will be exploring the above workaround until a fix is available

            Christopher Medalis added a comment - Seeing this on Server 6.15.2 / Source Editor 1.1.3 / SR4C 5.5.11 Will be exploring the above workaround until a fix is available

            Note: We've noticed in Confluence 6.13.7 Data Center that the Global Stylesheet functions more as a default space stylesheet. If a space has a custom stylesheet, then changes to the Global Stylesheet have no effect.

            Instead, what we're doing in our instance is placing the .CodeMirror fix in General Configuration > Custom HTML > At the end of HEAD:

             

            <style>
            .CodeMirror {  
                height: auto !important;  
            }  
            .CodeMirror-scroll{  
                margin-bottom: 0px;  
                margin-right: 0px;  
                padding-bottom: 0px;  
            }  
            </style>
            

             

             

            Kameran Kashani added a comment - Note : We've noticed in Confluence 6.13.7 Data Center that the Global Stylesheet functions more as a default space stylesheet. If a space has a custom stylesheet, then changes to the Global Stylesheet have no effect. Instead, what we're doing in our instance is placing the .CodeMirror fix in General Configuration > Custom HTML > At the end of HEAD :   <style> .CodeMirror { height: auto !important; } .CodeMirror-scroll{ margin-bottom: 0px; margin-right: 0px; padding-bottom: 0px; } </style>    

              Unassigned Unassigned
              bandreeti Bernardo Andreeti
              Archiver:
              mkhairuliana Monique Khairuliana (Inactive)

                Created:
                Updated:
                Archived:
                5 years, 42 weeks, 1 day ago