Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Add following in Javascript section.
- function addCkEditor(id)
- {
- if(CKEDITOR.instances[id])
- {
- CKEDITOR.remove(CKEDITOR.instances[id]);
- }
- CKEDITOR.replace(id);
- }
- // Use following function
- public function addCkEditor()
- {
- $this->Editor->addJavascript('addCkEditor("'.$this->mateInstances[0].'notes");');
- }
- // define, when to use this CKEditor.
- $this->Editor->setConfig('addScreenFun',array(&$this,'addCkEditor'));
- $this->Editor->setConfig('editScreenFun',array(&$this,'addCkEditor'));
Advertisement
Add Comment
Please, Sign In to add comment