It has been discovered that including the customisation for the Aikau SiteService widgetsForEditSiteDialogOverrides and widgetsForCreateSiteDialogOverrides configuration properties causes the Alfresco.util.RichEditorManager - TinyMCE instance to break. This can be observed by including the Site Notice dashlet on a site dashboard and trying to use its "configure" action. The TinyMCE instance will not load and the console will report that all theme / plugin script files could not be loaded (404 error).
The cause of this has been determined to be related to Surf dependency collection via the JSON widget model and transitive module dependencies. By including an Aikau picker in the widgetsForEditSiteDialogOverrides and widgetsForCreateSiteDialogOverrides our customisation transitively causes AlfListView and _AlfDndDocumentUploadMixin to be included, which requires alfresco/editors/TinyMCE transitively via the default value of the widgetsForUpdate configuration property. The alfresco/editors/TinyMCE module loads the Aikau-bundled code for TinyMCE, but does not yet instantiate it or configure it to use the correct base URL to load its dependencies.
This issue needs to be reported and fixed by Alfresco. In the meantime we will have to decouple the customisation intended for 5.2 from the base customisations and bundle them in a disabled-by-default extension module for the time being.
It has been discovered that including the customisation for the Aikau SiteService
widgetsForEditSiteDialogOverrides
andwidgetsForCreateSiteDialogOverrides
configuration properties causes the Alfresco.util.RichEditorManager - TinyMCE instance to break. This can be observed by including the Site Notice dashlet on a site dashboard and trying to use its "configure" action. The TinyMCE instance will not load and the console will report that all theme / plugin script files could not be loaded (404 error).The cause of this has been determined to be related to Surf dependency collection via the JSON widget model and transitive module dependencies. By including an Aikau picker in the
widgetsForEditSiteDialogOverrides
andwidgetsForCreateSiteDialogOverrides
our customisation transitively causes AlfListView and _AlfDndDocumentUploadMixin to be included, which requiresalfresco/editors/TinyMCE
transitively via the default value of thewidgetsForUpdate
configuration property. Thealfresco/editors/TinyMCE
module loads the Aikau-bundled code for TinyMCE, but does not yet instantiate it or configure it to use the correct base URL to load its dependencies.This issue needs to be reported and fixed by Alfresco. In the meantime we will have to decouple the customisation intended for 5.2 from the base customisations and bundle them in a disabled-by-default extension module for the time being.