When adding a path like this

admin/content/templates/classroom

to fckeditor's exclusion settings (I'd like to disable Fckeditor on all contemplates pages) I get the following error:

warning: preg_match() [function.preg-match]: Unknown modifier 'c' in D:\www\public_html\class\modules\fckeditor\fckeditor.module on line 427

I don't understand what the error is trying to tell me. This is the code on line 427:

    if (!empty($value) && preg_match('/^'.str_replace('*','.*',addslashes($value)).'$/i', $search)) {

Thanks.
Lsabug

Comments

ontwerpwerk’s picture

don't start with a slash (it's an internal drupal path you're entering)

and make it something like admin/content/templates*

lias’s picture

Thank you very much for the clarification ontwerpwerk, worked as intended.

ontwerpwerk’s picture

Status: Active » Fixed
ray007’s picture

A got a similar error on a site of my client, but in line 408 (in function fckeditor_idsearch). He had entered a '/' instead of a '-' when specifying the id ...

Anonymous’s picture

Status: Fixed » Closed (fixed)