javascript — ошибка помощника Ckeditor в каркасе костного огня

Я пытался интегрировать редактор CK для моего проекта. Но это показывает некоторые ошибки массажа.
Я не могу настроить эти ошибки.
Открытая функция контроллера ckeditor ()

   $this->load->helper('ckeditor_helper');
//print_r($this->load->helper('ckeditor_helper'));

//Ckeditor's configuration
$data['ckeditor'] = array(

//ID of the textarea that will be replaced
'id'    =>  'content',
'path'  =>  './assets/js/ckeditor',

//Optionnal values
'config' => array(
'toolbar'   =>  "Full",     //Using the Full toolbar
'width'     =>  "550px",    //Setting a custom width
'height'    =>  '100px',    //Setting a custom height

),

//Replacing styles from the "Styles tool"'styles' => array(

//Creating a new style named "style 1"'style 1' => array (
'name'      =>  'Blue Title',
'element'   =>  'h2',
'styles' => array(
'color'     =>  'Blue',
'font-weight'   =>  'bold'
)
),

//Creating a new style named "style 2"'style 2' => array (
'name'  =>  'Red Title',
'element'   =>  'h2',
'styles' => array(
'color'         =>  'Red',
'font-weight'       =>  'bold',
'text-decoration'   =>  'underline'
)
)
)

);

$data['ckeditor_2'] = array(

//ID of the textarea that will be replaced
'id'    =>  'content_2',
'path'  =>  './assets/js/ckeditor',

//Optionnal values
'config' => array(
'width'     =>  "550px",    //Setting a custom width
'height'    =>  '100px',    //Setting a custom height
'toolbar'   =>  array(  //Setting a custom toolbar
array('Bold', 'Italic'),
array('Underline', 'Strike', 'FontSize'),
array('Smiley'),
'/'
)
),

//Replacing styles from the "Styles tool"'styles' => array(

//Creating a new style named "style 1"'style 3' => array (
'name'      =>  'Green Title',
'element'   =>  'h3',
'styles' => array(
'color'     =>  'Green',
'font-weight'   =>  'bold'
)
)

)
);
// Template::set('toolbar_title', 'Create New Event');
Template::set_view('sport_events/ckeditor');
Template::set('ckeditor',$data);
Template::render();

}

Представления ckeditor.php (Это моя страница просмотра. Просто я вызываю ckeditor.js и передаю массив функций контроллера в представления)

 <script type="text/javascript" src="/asset/ckeditor/ckeditor.js"></script>
<script type="text/javascript" src="/asset/ckfinder/ckfinder.js"></script>

<?php
echo '<pre>';
print_r($ckeditor);
echo '</pre>';
?>
<textarea name="content" id="contents" ><p>Example data</p></textarea>
<?php echo display_ckeditor($ckeditor); ?>
<textarea name="content_2" id="content_2" ><p>Example data</p></textarea>
<?php echo display_ckeditor($ckeditor_2); ?>

введите описание изображения здесь

0

Решение

Ошибка была в том, что я не загрузил правильное место в папку ckeditor.
путь должен быть публичной папкой

0

Другие решения

Других решений пока нет …