Uploaded image for project: 'PUBLIC - Liferay Portal Community Edition'
  1. PUBLIC - Liferay Portal Community Edition
  2. LPS-58397

Determine CKEditor version to load based on User Agent

    Details

      Description

      Add a new property to Portal which would enable the Portal to automatically select the CKEditor version (latest/default) based on the client's User Agent.

      This would allow CKEditor to cover all supported browsers in Portal.

      Allow customer to set the point at which the version switches, via Portal Properties (below).

      In order to to minimize regressions, all "other" browsers will use the default CKEditor version.

      NOTE: Customers may need to implement third-party CKEditor plugins for both versions.

      Portal Properties:

      editor.ckeditor.version=default
      #editor.ckeditor.version=latest
       
      #
      # You can set the minimum browser version to be used for CKEditor latest. All other browsers will use CKEditor default. Only takes effect when editor.ckeditor.version=latest. 
      # 
       
      #editor.ckeditor.version.latest.ie=8
      #editor.ckeditor.version.latest.ff=4
      #editor.ckeditor.version.latest.chrome=23
      

      Use BrowserSnifferUtil to determine which browser and version is in use.

      Pseudo Code:

      IF editor.ckeditor.version = default
      
          USE CKEditor default
      
      ELSE editor.ckeditor.version = latest
      
          IF browser = IE AND version >= editor.ckeditor.version.latest.ie
      
              USE CKEditor latest
      
          ELSE IF browser = FF AND version >= editor.ckeditor.version.latest.ff
      
              USE CKEditor latest
      
          ELSE IF browser = Chrome AND version >= editor.ckeditor.version.latest.chrome
      
              USE CKEditor latest
      
          ELSE
      
              USE CKEditor default
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              support-lep@liferay.com SE Support
              Reporter:
              byran.zaugg Byran Zaugg (Inactive)
              Recent user:
              Brian Wulbern
              Participants of an Issue:
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Packages

                  Version Package
                  6.2.X EE