CKEditor FakeObjects
This project provides a way to represent complex or uneditable elements within an editable environment, like a rich text editor. It allows these elements to be converted into a placeholder representation and then restored to their original form when needed. This functionality is essential for other editor plugins that require such placeholders.
This plugin helps to create a "representative" (image with styles) for certain elements which have problem with living in editable, it provides the API to transform an real DOM element into the "fake" one, and to restore the real element from the fake one on the output.
Adds FakeObjects plugin integration for CKEditor.
This is required by plugins that require fakeobjects to work, like PageBreak.
Other plugins can leverage fakeobjects by adding this in their plugin definition:
class YourButtonPlugin extends CKEditorPluginBase implements CKEditorPluginConfigurableInterface {
/**
* {@inheritdoc}
*/
public function getDependencies(Editor $editor) {
return ['fakeobjects'];
}
// more code...
Installation
- Download the plugin from https://ckeditor.com/cke4/addon/fakeobjects at least version 4.5.11.
- Place the plugin in the root libraries folder (/libraries).
- Enable FakeObjects module in the Drupal admin.