How to add CKEditor?
How to add CKEditor?
ladokjohan
Posts: 15Questions: 3Answers: 0
in Plug-ins
Hi,
I have tried to install the CKEditor plugin but can't get it to work. CKEditor is installed in folder php/lib/ckeditor and the demo file works fine.
I have added <script src="php/lib/ckeditor/ckeditor.js"></script>
to the index.php file.
I have added editor.ckeditor.js to js folder.
In table.uppdoksupport.js I changed
fields: [
{
"label": "Information",
"name": "text",
"type": "textarea"
}
to
fields: [
{
"label": "Information",
"name": "text",
"type": "ckeditor"
}
The only result is that no table data is shown any more in the table... What have I missed or made wrong?
This discussion has been closed.
Replies
That should be all that is needed. Are you seeing any errors reported in your browser's console?
Are you able to give me a link to the page so I can check it out please?
Thanks,
Allan
Firefox console gives this error:
uncaught exception: Error adding field - unknown field type ckeditor
I have made a version without required login at http://goo.gl/ygA9S2 where you can see the empty table.
Thanks,
Johan
I don't see the Editor CKEditor being included anywhere on that page?
Allan
Now I get these errors:
My header is:
Have I missed something?
Add it after you load DataTables and Editor. It is a plug-in for those libraries, so it needs to be loaded after them.
Allan
It worked, thanks.