Acosix / alfresco-site-hierarchy

Addon that allows creating hierarchies of sites as secondary structures and provides some common automatisms for site hierarchies
Apache License 2.0
3 stars 5 forks source link

Customisation for Aikau SiteService createSite/editSite dialogs breaks TinyMCE use #1

Open AFaust opened 7 years ago

AFaust commented 7 years ago

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.

AFaust commented 7 years ago

Alfresco JIRA issue: ALF-21855

p4535992 commented 1 year ago

6 years later this issue still persist on Alfresco Share 7.3...