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

Unable to add a content field when editing a Wiki Creole page or adding a child page

    Details

      Description

      Steps to reproduce:

      1. Go to Site > Content > Wiki
      2. Add a Wiki page
      3. Edit Wiki page

      Expected result: Content is enabled and user can edit content
      Actual result: Content is missing, no way for user to edit wiki content

      Note, this only affects Creole format.

      Firefox error

      TypeError: creoleDataProcessor is null
      http://localhost:8080/o/frontend-editor-ckeditor-web/ckeditor/plugins/creole/plugin.js?t=GB1M
      Line 20
      

      Chrome errors

      plugin.js?t=GB1M:20 Uncaught TypeError: Cannot read property 'init' of null
          at http://localhost:8080/o/frontend-editor-ckeditor-web/ckeditor/plugins/creole/plugin.js?t=GB1M:20:26
          at <anonymous>:20:8
          at args.(anonymous function) (http://localhost:8080/o/frontend-js-web/liferay/aui_sandbox.js?browserId=other&minifierType=&languageId=en_US&b=7003&t=1497459968347:20:23)
      
      ;(function() {
      	CKEDITOR.plugins.add(
      	'creole',
      		{
      			init: function(editor) {
      				var instance = this;
      
      				var path = instance.path;
      
      				var dependencies = [
      					CKEDITOR.getUrl(path + 'creole_data_processor.js'),
      					CKEDITOR.getUrl(path + 'creole_parser.js')
      				];
      
      				CKEDITOR.scriptLoader.loadScripts(
      					dependencies,
      					function() {
      						var creoleDataProcessor = CKEDITOR.plugins.get('creole_data_processor');
      
      						creoleDataProcessor.init(editor);
      					}
      				);
      			}
      		}
      	);
      })();
      
      ;(function() {
      	var ALLOY = YUI();
      
      	if (ALLOY.html5shiv) {
      		ALLOY.html5shiv();
      	}
      
      	var originalUse = ALLOY.use;
      
      	ALLOY.use = function() {
      		var args = Array.prototype.slice.call(arguments, 0);
      
      		var currentURL = Liferay.currentURL;
      
      		var originalCallback = args[args.length - 1];
      
      		if (typeof originalCallback === 'function') {
      			args[args.length - 1] = function() {
      				if (Liferay.currentURL === currentURL) {
      					originalCallback.apply(this, arguments);
      				}
      			};
      		}
      
      		return originalUse.apply(this, args);
      	};
      
      	window.AUI = function() {
      		return ALLOY;
      	};
      
      	ALLOY.mix(AUI, YUI);
      
      	AUI.$ = window.jQuery;
      	AUI._ = window._;
      })();
      

      Reproduced on:
      Tomcat 8.0.32 + MySQL 5.6
      Portal master GIT ID: 34a998720a8ec70d205197ffa563476cafbe776d

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                patricia.perez Patricia Perez
                Reporter:
                patricia.perez Patricia Perez
                Participants of an Issue:
                Recent user:
                Csaba Turcsan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  3 years, 14 weeks, 3 days ago

                  Packages

                  Version Package
                  7.0.0 DXP FP22
                  7.0.0 DXP SP4
                  7.0.X EE
                  7.0.4 CE GA5
                  7.1.X
                  Master