Hi
I would like to know how I can enable the following plugins for CKEditor:
-
fakeobjects
-
Anchor Link
-
iframe
When I try to enable it does not work, must I do a extra step?
Thanks
Regards
Almudena
Hi
I would like to know how I can enable the following plugins for CKEditor:
fakeobjects
Anchor Link
iframe
When I try to enable it does not work, must I do a extra step?
Thanks
Regards
Almudena
in general CKEditor plugins are made out of two parts:
The general problem is that most of CKEditor plugin Drupal modules are hardcoding the location of the library to /<DRUPAL_ROOT>/libraries/
or /<DRUPAL_ROOT/sites/all/libraries/
and doesn’t allow easily to specify a folder locally to specific sites on a multisite installation (like ours).
So the general woraround is to install the Drupal module locally, and adapt the part of the code that load the Javascript library and point instead to the site’s local libraries folder.
something like
$base_path = \Drupal::service('site.path');
$ckeditor_plugin_name= "Anchor";
$new_path = "/$base_path/libraries/$ckeditor_plugin_name/"
It’s difficult to provide a solution that fits all the CKEditor plugin modules, since it depends how they load the library.
There is another approach I tested for another use case that also can help: Use vendor JS & CSS libraries on multisite installation
Thanks
I will try and see.
Almudena