[MGNLUI-3052] CKEditor can be loaded before registering external plugins Created: 09/Jul/14 Updated: 09/Oct/14 Resolved: 10/Jul/14 |
|
| Status: | Closed |
| Project: | Magnolia UI |
| Component/s: | widgets |
| Affects Version/s: | 5.2, 5.3 |
| Fix Version/s: | 5.2.7, 5.3.1 |
| Type: | Bug | Priority: | Major |
| Reporter: | Mikaël Geljić | Assignee: | Mikaël Geljić |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | ckeditor, support | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Template: |
|
||||||||||||||||||||
| Acceptance criteria: |
Empty
|
||||||||||||||||||||
| Task DoD: |
[ ]*
Doc/release notes changes? Comment present?
[ ]*
Downstream builds green?
[ ]*
Solution information and context easily available?
[ ]*
Tests
[ ]*
FixVersion filled and not yet released
[ ] 
Architecture Decision Record (ADR)
|
||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||
| Description |
|
CKEditor can be loaded before registering external plugins. When this is the case, plugins are loaded from the default lookup path for CKEditor plugins, i.e. relative to ckeditor.js, while there is no such plugin there. Hence this kind of warning in console
Jun 18, 2014 11:46:50 AM com.vaadin.server.VaadinServlet serveStaticResourcesInVAADIN
Information: Requested resource [/VAADIN/widgetsets/info.magnolia.ui.vaadin.gwt.MagnoliaWidgetSet/ckeditor/plugins/magnolialink/plugin.js] not found from filesystem or through class loader. Add widgetset and/or theme JAR to your classpath or add files to WebContent/VAADIN folder.
This typically does not happen at first load because by the time the CKEditor library is loaded, first updateFromUIDL has already completed, and populated the list of external plugins. On subsequent occasions, it is not granted that external plugins are populated before loading the editor. |