I intergrate Ckeditor 3x with syntaxhighlight plugin. I download from here http://cke4sh.funpic.de/ When i use some simple code, it ok, but when code are complicate. When input again, it can not get all content. You can test throght some step: Open http://cke4sh.funpic.de/ Add code into editor, user last button in line 2 of toolbar. Use this code:
public function cmsButton($name,$value = '#',$attribs = null,$options = null ){ if(empty($attribs['iconDir']))$iconDir = "images/icon/"; else $iconDir = $attribs['iconDir']; if(empty($attribs['icon'])) $icon = 'icon-32-default.png'; else $icon = $attribs['icon']; $src = $iconDir . $icon; $link = $value; if($options['type'] == 'submit'){ $link = "javascript:onSubmitForm('" . $options['name'] . "','" . $value . "')"; } if($options['type'] == 'submitQuest'){ $link = "javascript:submitQuestion('" . $options['name'] . "','" . $value . "','" . $options['notice'] . "')"; } $xhtml = '<li> <a href="' . $link . '" class="toolbar"> <span><img src="' . $src . '" /></span> ' . $name . ' </a> </li>'; return $xhtml; }
After, click Send button. Firstime, it's ok. But you see again into content of editor. You will see the pre tag can not contain all input in the first time we add. So, i don't know how? I preview source code of webpage and see in textarea of editor, content are right but when it input into editor. it's wrong. Please help me to solved it. PS: forget my English. Thanks.
Nobody help me? please
Nobody help me? please
Where to begin. You're using
Where to begin. You're using a 3rd-party plugin that appears to be designed for v4 in CKEditor 3. Expect problems. CKEditor comes with a feature called Advanced Content Filter, which will strip code that isn't whitelisted. You'll have to keep that in mind when actually using in it v4. You are also asking the CKEditor team to make the custom plugin perform better. We can't. It's not our plugin. In any case, the SyntaxHighlighter plugin for v3 is here.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Thanks your reply.
Thanks your reply.