SOURCE button in kentico 10

Rita Mikusch asked on August 11, 2017 19:48

Hi,

We've upgraded our site from 8.0 to 10.0 .... and the SOURCE button in the editing toolbar is giving us grief. The information I've googled isn't helping.

No matter what I do, if I add the SOURCE button to a toolbar definition in ckeditor’s config.js … that SOURCE button doesn’t get displayed in CKEditor.

I’ve used this web.config key to force CKeditor to choose a specific toolbar: <add key="CKEditor:DefaultToolbarSet" value="Full"/>

CKeditor is definitely using those toolbar definitions on config.js … it’s just the SOURCE button that isn’t working.

Funny thing is … if I choose a toolbar in web.config THAT DOESN’T HAVE A DEFINITION IN CONFIG.JS, I get this crazy toolbar WITH a SOURCE button … plus a ton of other CRAP.

So does anybody know how I can add a SOURCE button to CKeditor in Kentico 10??

Thank you!

Correct Answer

Rita Mikusch answered on August 11, 2017 22:38

I figured it out ... oops, the config.js file didn't get upgraded.

config.js was missing: var sourceName = config.useInlineMode ? 'Sourcedialog' : 'Source';

Then use sourceName instead of 'Source' in the toolbar definitions.

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.