Custom editor not working
Hi, i want to install a custom editor (CKEditor with custom fields), I follow all the instructions in your doc https://docs.grabaperch.com/docs/customizing-perch/installing-editors/ and it do not work. MarkItUp it does.
Any idea? Need to update perch maybe? Running on 2.4.4
Thanks
Yes, before requesting support you need to be sure you are running the latest version of Perch.
Update Perch, if you still have a problem then post back including your Diagnostics Report.
Hi,
What do you see in the edit page?
Can you show an example of your template.
Hi, I update it to last version of perch, but nothing. MarkItUp goes fine.
The edit form: - adds the 'ckeditor2' class to the textarea in the edit form. - do not print my _config.inc file on head.
<head> from the edit form:
My template:
My _config.inc file:
Do you get any errors in the browser console?
No errors in the browser console.
My complete template:
The sample CKEditor page works fine inside Perch's folder https://oficina4play:8888/perch/addons/plugins/editors/ckeditor2/samples/
It's like _config.inc is not loading files
Can you see you code included at the end of the page?
Yes, source its complete
So your code is there?
Yes, no errors, full code.
Sounds like there's something wrong with your code then.
How do I know if this point is working?
Include the special file perch/addons/plugins/editors/myeditor/_config.inc in the <head> section of the edit page.
I do not see any extra callings in my head
You told me you saw them at the bottom of the page.
I saw my code. Not the editors calling.
What do you mean the "editors calling"?
Excuse me Drew, _config.inc loads in the bottom, correct, I was expecting to appear in the <head> section of the edit page.
Then there is a 'ckeditor2' class in the textarea, and _config.inc in the bottom of the page.
Whats going on then...
Thanks for your time Drew
Have you added code to apply the editor to a textarea with that class?
just added
editor="ckeditor2"
in the template.That's not enough. You need to apply the editor to any textarea with that class.
But I thought that class is added by perch to any textarea with
editor=ckeditor2
, isn't it?According to the instructions:
I don't understand, could you please explain me a bit?
The class it added by Perch. The class does nothing on its own.
You need to apply your editor to any textarea with that class. If you can't do that, you might be better to hire a developer to work with. This is beyond what we can help you with in support.