This is a migrated thread and some comments may be shown as answers.

Custom Filter Error

1 Answer 44 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Bryan
Top achievements
Rank 1
Bryan asked on 09 Sep 2013, 07:15 PM
I am trying to create a custom filter for my radeditor and I keep receiving the following error message:

Javascript runtime error: Unable to get the property 'Filter' of undefined or null reference

The error occurs on this line of code

RadEditorCustomFilter.registerClass('RadEditorCustomFilter', Telerik.Web.UI.Editor.Filter);

1 Answer, 1 is accepted

Sort by
0
Ianko
Telerik team
answered on 10 Sep 2013, 10:36 AM
Hi Bryan,

Currently I could only make assumptions on the custom implementation of the used filter.

You could follow this online demo, in which the required steps to implement a custom content filter are described.

Additionally I could suggest checking:
  • If the Enable property of the RadEditor control is set to false;
  • If the name of the filter is the same as in all of the following declarations:
    • editor.get_filtersManager().add(new FiltersName());
    • FiltersName = function () { ... };
    • MyFilter.registerClass('FiltersName', Telerik.Web.UI.Editor.Filter);

If you are still having difficulties after reviewing the suggestions above, it would be helpful to get back to me with a simple locally runnable project, which isolates the problematic field, so that I could be able to investigate it and find its origin.

Regards,

Ianko
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
Editor
Asked by
Bryan
Top achievements
Rank 1
Answers by
Ianko
Telerik team
Share this question
or