prbaron / pbckcode

A CKEditor plugin to easily add code into your article
Apache License 2.0
44 stars 26 forks source link

Problem with newest version #6

Closed jonashe closed 11 years ago

jonashe commented 11 years ago

So, it's me again, I'm sorry :D I downlaoded newest version of pbckcode and an clean editor too, but now I have the problem that my console giving me a new error: problem

prbaron commented 11 years ago

Hello! Check if you have that file https://github.com/prbaron/PBCKCode/blob/master/dialogs/PBSyntaxHighlighter.js.

It should be located in pbckcode/dialogs/.

jonashe commented 11 years ago

Yes, i have that file in the /dialogs folder: http://kommodore.cwsurf.de/ckeditor/plugins/pbckcode/dialogs/PBSyntaxHighlighter.js

prbaron commented 11 years ago

Seems you did not load the plugin in your config.js file.

Add this line :

config.extraPlugins = 'pbckcode';
jonashe commented 11 years ago

Hm, that was autobuild, now added that manually and still get same error... If looking at the js, it seems like there is one problem with the syntax highlighting?

prbaron commented 11 years ago

Here is a little ressource. Does it work for you ? http://jsfiddle.net/prbaron/Y8TZs/ The important thing is that you have to have the plugin.js file loaded. This file loads the PBSyntaxHighlighter.js and initializes it. Without the plugin.js file you have that error.

jonashe commented 11 years ago

It dosen't work, but now the console ist giviing me a new error: problem Textarea: <textarea class="ckeditor" cols="80" rows="10" name="content" id="editor1" >

prbaron commented 11 years ago

Can you add the following line into your config.js file ? { name: 'pbckcode },

Seems that your ckeditor does not load the plugin.js file of pbckcode. That means that PBSyntaxHighlighter.js and ace.js is not loaded and you have that error.

jonashe commented 11 years ago

Sorry for late reponse, had to do some stuff for school. But still get some errors: problem

jonashe commented 11 years ago

I have a new idea, it would be very nice, if you can send me a normal ckeditor only with ckcode installed...

prbaron commented 11 years ago

You can download and try the examples. Just switch to the gh-pages branch and click on the zip button

prbaron commented 11 years ago

Hello, did you try the examples ?

jonashe commented 11 years ago

Hm, guessed that I still replyed... Well, your examples are working fine for me, thank you