n2cms/n2cms — pull request #295 by andy4711 (2013-08-26 17:40:40+00:00)
Title: ckEditor not working with nuget package - fix

ckEditor not working with nuget package - fix

I've found the reason why ckeditor isn't working with nuget package (http://n2cms.codeplex.com/discussions/450462)

I had the problem with different n2cms versions, too. While working on the ckeditor configration options pull request this bug doesn't occur. Now i've upgraded a project to version 2.5.6.1 with nuget and i had the error again.

After a lot of time searching, i used fiddler to analyze the traffic and found the error. Ckeditor tried to load the de.js file which wasn't in the nuget package. Ckeditor should fall back to en if the language file isn't found. But this doesn't work. At first i added the ckeditor defaultLanguage option, but i had the same result. So i've modified the FreeTextArea to fall back, if the language file isn't found.
And while working on the fix i decided to add an option which could be used to set the language.