Drupal is a registered trademark of Dries Buytaert
Protected Pages 3.0.0 Major update available for module protected_pages (3.0.0). Commerce Core 3.3.8 Minor update available for module commerce (3.3.8). Search API HTML Element Filter 1.0.7 Minor update available for module search_api_html_element_filter (1.0.7). Layout Builder Reorder 2.0.1 Minor update available for module layout_builder_reorder (2.0.1). Ban 1.1.0 Minor update available for module ban (1.1.0). Field Formatter Range 2.0.0 Major update available for module field_formatter_range (2.0.0). Field Formatter Range 8.x-1.8 Minor update available for module field_formatter_range (8.x-1.8). Varbase Media Header 9.2.1 Minor update available for module varbase_media_header (9.2.1). Search API Solr 4.3.11 Module search_api_solr updated after 14 months of inactivity (4.3.11). Provus Mega Menu Module provus_mega_menu crossed 1,000 active installs.

CKEditor FakeObjects

13,874 sites Security covered
View on drupal.org

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

  1. Download the plugin from https://ckeditor.com/cke4/addon/fakeobjects at least version 4.5.11.
  2. Place the plugin in the root libraries folder (/libraries).
  3. Enable FakeObjects module in the Drupal admin.

Activity

Total releases
4
First release
Feb 2025
Latest release
1 year ago
Releases (12 mo)
0 ▼ from 4
Maintenance
Dormant

Release Timeline

Releases

Version Type Release date
2.0.1 Stable Feb 21, 2025
2.0.0 Stable Feb 21, 2025
2.x-dev Dev Feb 21, 2025
8.x-1.3 Stable Feb 20, 2025