Support the ongoing development of Laravel.io →
Installation Views Packages
Last updated 2 years ago.
0

Use an id rather than class name to reference the textarea (add id="editor" to the textarea).

0
Solution

First, you should probably move your javascript call to just before </body> so it loads after the page..

I wouldn't recommend using an id, because it makes it more difficult to have multiple ckeditors on one page, so I always use just the class.

<textarea class="ckeditor" name="editor"></textarea>

To initialize it, just use:

<script type="text/javascript">
    CKEDITOR.replace(jQuery('.ckeditor'));
</script>
Last updated 9 years ago.
0

Actually the problem is with the src path in calling ckeditor.js.... after i tried to store ckeditor files in public it worked fine. Thank you @schniper and @bgies

0

Sign in to participate in this thread!

Eventy

Your banner here too?

sdt502 sdt502 Joined 13 Aug 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.