This post is meant to continue the discussion about how to make the syntaxhighlighter plugin work and move this long time discussion to a appropriate place.
First of all, in my system, ckeditor 4 is working together with syntaxhighlighter without any problems. I need no changes in my config.js at all when I download it via ckbuilder. BTW: don't forget to clear your browser's cache when updating ckeditor since I've experienced some weird effects with old plugin-files in new ckeditor instances.
Currently I'm writing an example-site to demonstrate all disbelievers that our plugin is working very well contrary to all claims made. I've just no way to publish it, so feel free to make offers. Unfortunately I will be on a business trip until 14th of april, so just watch out for updates. I'm sorry for your inconvenience.
In two weeks there will be an update as well which will improve some minor bugs, add compatibility to ckeditor 4.1's ACF-feature and some further improvements.
Mon, 04/01/2013 - 01:23
#1
You can find a working sample
You can find a working sample @ http://cke4sh.funpic.de/index.php Additionally we've just released an update with some improvements and several new features.
Hi,
Hi,
I download ckeditor 4.1.2 optimized version by CKBuilder.
How could I configure it?
Can you placed optimized version on here for those who need it?
Thanks!!
Hi,
Hi, you can either define your configs globally in config.js or dynamically during instanciation. For details look at http://docs.ckeditor.com/#!/api/CKEDITOR.editor-event-configLoaded and http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-customConfig. All available options for our plugin are listed above. If you download optimized CKEditor the builder should optimize all included plugins as well. If not, you could use i.e. http://closure-compiler.appspot.com/home to compress all neccessary .js-files. Cheers
using with drupal
hello
i have tried several ways and was not able to make it work with drupal 7.
1st test (without ckeditor)
procedure
result
2nd test
procedure
result
3rd test
procedure
result
4th test
procedure
result
5th test
procedure
result
6th test
procedure
result
Javascript error for 5 and 6 is the same one :
resume
i was not able to make it work in drupal and im not able to try to understand how ckeditor is working to be able to update the drupal module for v4.
questions
the actual site (ckeditor.com) is using a syntaxhighlighter working button. where to find it ?--> found it : http://ckeditor.com/addon/insertpreHi there.
Hi there.
Unfortunately I've got no experience with drupla so far, but let's give it a try. I've downloaded and installed drupal and cke including syntaxhighlighter via ckbuilder. When I call /sites/all/modules/ckeditor/ckeditor/ckeditor/ckeditor.js directly I get a nicely and completely working wysiwyg-editor including the desired syntaxhighlighting-plugin. When I try to add content, only some of the buttons are shown, so obviously drupal messes around with our toolbars somewhere.
Looking at http://localhost/drupal/node#overlay=admin/config/content/ckeditor/edit/Advanced, submenu "editor appearance", I can exclusively see stock-plugin-buttons. So here's my question: did you ever successfully include ckeditor-plugins that weren't written and published by the ckeditor development team? If yes, which ones?
My current assumption is that all buttons that can be selected via drupals configuration interface are limited to the stock ones by hardcoding them by the drupal developers. The antique icons in \sites\all\modules\ckeditor\images only support this suspicion.
thank you for attention
hello
yes, the drupal ckeditor module is using a custom "profile" to define buttons to display.
this is why there is the module : https://drupal.org/project/ckeditor_syntaxhighlighter
this module is adding the option to display the button in drupal and the code looks like your one but i have not made a comparison yet.
edit: after using a "beautifier" to see the code in multilines, i can see that the code is completely different as your one.
just need maybe to convert the code to ckeditor 4 + adding drupal's needs if necessary (because i have swapped the code with your one and i still have the same issue)
Can you provide me a link to
Can you provide me a link to a working cke4 custom plugin module I could have a look at?