Hello.
I need to dynamically load the editor ckeditor.
I have my own widget, where i define ckeditor widget:
class MyWidget extends CJuiWidget
{
public function init()
{
$this->widget('application.extensions.ckeditor.ECKEditor', array(
'name'=>$this->id,
'width'=>'100%',
'height'=>'100%',
'value'=>$this->html,
'language'=>'ru',
'editorTemplate'=>'basic',
));
}
}
Those widgets are loaded when the page loads operate normally. Those widgets that I want to load dynamically via ayah ur not charged functional of ckeditor.
Here is the problem:
Editor files are located in the http://site.com/assets/<folder>
initially loaded file ckeditor.js which defines a variable CKEDITOR_BASEPATH, which is used to connect other js and css files.
For some reason when dynamically loading a script does not see the assets folder and can’t include the other scripts and css.
I try to define CKEDITOR.basePath variable manually, but this does not work.