Input filters can contain a 'prepare callback' function which does some preprocessing before the filter is actually executed. Many of the hardcoded filters inside ckeditor don't use this function.

However, some do, and ckeditor should provide access to these functions.

Function: https://api.drupal.org/api/drupal/modules!filter!filter.api.php/function...

Patch to come..

Comments

japerry created an issue. See original summary.

japerry’s picture

Status: Active » Needs review
StatusFileSize
new367 bytes

Here is a simple patch

Status: Needs review » Needs work

The last submitted patch, 2: 2705773-ckeditor-preparecallback-1.patch, failed testing.

japerry’s picture

Status: Needs work » Needs review
StatusFileSize
new843 bytes

Lets see if this patch isn't garbage.

Status: Needs review » Needs work

The last submitted patch, 4: 2705773-ckeditor-preparecallback-3.patch, failed testing.

drumm’s picture

Status: Needs work » Reviewed & tested by the community

Looks good to me. Test failure is because there aren't actually any tests.

  • jcisio committed 2aed552 on 7.x-1.x authored by japerry
    Issue #2705773 by japerry: ckeditor missing the 'prepare callback' from...
jcisio’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed. Thanks.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.