Skip to content

Ability to ignore user-defined elements or selectors #64

@bkosborne

Description

@bkosborne

We use CKEditor and this library interferes with it by performing the smart quotes replacements within the editor. This causes problems as the library is essentially modifying user input instead of just user output (which we prefer). So if someone loads the editing interface for one of our pages, it replaces all the straight quotes with smart ones. This is specifically problematic because it modifies the straight quotes involved in custom HTML that's part of the input that CKEditor wraps.

In most cases, the pages that load the CKEditor interface in our platform use a separate admin interface and we just don't run smart quotes JS there. But there are some pages where the "front end" has some CKEditor editing interfaces on it, and that's where we run into the problem.

Our CKEditor instances are always wrapped by a

element, so that's one option: just having the library ignore form elements and their descendants. However, CKEditor doesn't have to be wrapped by a form element, so that's not a long term fix for others.

Another option could be to modify the logic in elements.js to optionally ignore an element and its descendants if it has a CSS class or ID that matches some user-defined list

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions