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

CKEditor may not be defined when creating web content

    Details

      Description

      When creating web content there is no guarantee that an instance of CKEditor exists. Therefore the value of "CKEDITOR.instances" may not be defined and a reference error is returned.

      Steps to Reproduce:

      1. Start an instance of 7.1.

      2.  Create web content Structure in "Global" site without a rich text field (name: "plain-text-web-content") using provided attribute source code (below):

      {
          "availableLanguageIds": [
              "en_US"
          ],
          "defaultLanguageId": "en_US",
          "fields": [
              {
                  "label": {
                      "en_US": "Plain Text Content"
                  },
                  "predefinedValue": {
                      "en_US": ""
                  },
                  "style": {
                      "en_US": ""
                  },
                  "tip": {
                      "en_US": ""
                  },
                  "dataType": "string",
                  "indexType": "text",
                  "localizable": true,
                  "name": "plainTextContent",
                  "readOnly": false,
                  "repeatable": false,
                  "required": false,
                  "showLabel": true,
                  "type": "textarea"
              }
          ]
      }
      
      

      3. Create a template using this structure, with the template having only the plain text field (it should read as: ${plainTextContent.getData()})

      4. Create a web content using this template.

      5. Check the Chrome console.

       

      Expected Result: No errors.

      Actual Result: ReferenceError: CKEDITOR is not defined is thrown.

       

      Reproduced in: 

      7.1.x - f7c65a1f64e813107fb1e116f8e5436ecd208287

      7.1.x DXP-12 fix pack.

      Not Reproduced in:

      Master

      7.0

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                lu.liu Lu Liu
                Reporter:
                lianne.louie Lianne Louie
                Participants of an Issue:
                Recent user:
                Clarissa Velazquez
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  34 weeks, 2 days ago

                  Packages

                  Version Package
                  7.1.10 DXP FP13
                  7.1.X