ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

Problem with CKEditor 4 and Codeigniter 2.1.4

November 03, 2013 1:04pm

Subscribe [1]
  • #1 / Nov 03, 2013 1:04pm

    ecasulo

    1 posts

    I know this is a common topic but I couldn’t find the errors I get anywhere.

    After adding CKEditor to my CI Application and creating an instance of CKEditor on my View I get the following errors on the console:

    View: localhost/sandbox/publications/new.php

    Errors:

    GET <a href="http://localhost/sandbox/publications/config.js?t=D9EF">http://localhost/sandbox/publications/config.js?t=D9EF</a> 404 (Not Found) ------- ckeditor.js ?>:73
    
    GET <a href="http://localhost/sandbox/publications/lang/en.js?t=D9EF">http://localhost/sandbox/publications/lang/en.js?t=D9EF</a> 404 (Not Found) ------ ckeditor.js ?>:73
    
    Uncaught TypeError: Cannot set property 'dir' of undefined ----------------------- ckeditor.js ?>:202
    
    GET <a href="http://localhost/sandbox/publications/skins/moono/editor.css?t=D9EF">http://localhost/sandbox/publications/skins/moono/editor.css?t=D9EF</a> 404 (Not Found) --------- ckeditor.js ?>:73

    My folder structure is:

    sandbox
    - application
    - assets
    —lib
    ——ckeditor
    - fonts
    - system

    And on my view i have:

    <s+c+r+i+p+t type="text/javascript" src="<?php echo base_url();?>assets/lib/ckeditor/ckeditor.js ?>"></s+c+r+i+p+t>

    I have tried adding the corresponding CKEditor helper, controller but error persits.
    Also my .htaccess file on CI root is:

    RewriteEngine on
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L]

    Anyone knows why im getting those errors on the console and CkEditor is not showing?

  • #2 / Nov 03, 2013 5:43pm

    ecasulo

    1 posts

    I found out that it has something to do with CKEDITOR_BASEPATH, it says i have to redefine it but i cant find it on the config.js

    Any ideas?

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases