Closed (fixed)
Project:
Editor
Version:
7.x-1.x-dev
Component:
CKEditor integration
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
11 Jan 2016 at 03:41 UTC
Updated:
23 Nov 2023 at 22:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
devin carlson commentedEditor and Editor CKEditor mirror the Editor and CKEditor modules included with Drupal 8 core.
I'd suggest filing an feature request against the core D8 CKEditor module and referencing it here.
Comment #3
captainack commentedThanks Devin. Will do.
Comment #4
captainack commentedHmm... I haven't learned Drupal 8 yet. I'm trying to read the code to determine if the issue even exists in Drupal 8 or not, but I can't tell if aggregation is disabled for loading of the ckeditor js files. I see the .yml files, but I can't find where the library is being attached.
Also, since CDN hasn't been ported to D8 yet, nobody will have seen this on D8.
What happens if this is ends up unique to D7? Is it still worthwhile?
Comment #5
wim leersSister issue that @captainack created in the
cdnmodule issue queue: #2647558: Incompatibility with editor module and far-future expiration because of disabled aggregation.Comment #6
wim leersI found the root cause.
Drupal 8 core's
CKEditor::getJSSettings()callsfile_create_url()for every external plugin file. And inckeditor.js,_loadExternalPlugins()informs CKEditor about those external plugin URLs. This ensures it works fine even when CKEditor is loaded from a CDN.This Drupal 7 backport of the same code doesn't do that.
editor_ckeditor_get_settings()should be updated to usefile_create_url()when generating the$external_pluginsvariable. Then this problem will go away :)Comment #7
adminerms commentedComment #8
keithdoyle9 commentedGetting an error that CKEDITOR is not defined after switching to serving JS files via CDN. However, the CKEDITOR object is available in the console.
JS Aggregation is on
Comment #9
devin carlson commentedComment #10
devin carlson commented