CKEditor not working after update 2.3.8.1

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
2/19/2012 7:23:12 AM
Gravatar
Total Posts 52

CKEditor not working after update 2.3.8.1

Hello,

I just updated to version the latest version a couple of sites and installed a new one. Everything worked perfect but CKEditor does not load anymore.

Operating System: Windows 2008 R2 standard with SP1
Database: SQL Server 2008 R2
mojoPortal: 2.3.8.1

When you try to edit or make a new post with CKEditor configured for the site no editor is show, if you choose TinyMCE everything works fine. I have tested this with the same results with Chrome and IE 8.

I have checked the web and found a previous post that said .htaccess file needed to be removed, but there is not such file in this version. I have tested this with the same results with Chrome and IE.

Thanks,

Carlos

2/19/2012 7:33:58 AM
Gravatar
Total Posts 550

Re: CKEditor not working after update 2.3.8.1

Hi Carlos,

See this setting in your user/web.config:

 <add key="CKEditor:BasePath" value="~/ClientScript/ckeditor362/"/>

Hope helps

Asad

2/19/2012 7:48:55 AM
Gravatar
Total Posts 52

Re: CKEditor not working after update 2.3.8.1

Asad, thanks for your quick answer, but the setting is correctly set up in the web.config file.

Also in the web.config you can find:

<add key="CKEditor:ConfigPath" value="~/ClientScript/ckeditor-mojoconfig.js"/>
<add key="CKEditor:Skin" value="v2"/>

And then file "ckeditor-mojoconfig.js" is present, and also the folder "~/ClientScript/ckeditor362" with the files that came with the release.
 

2/19/2012 7:57:37 AM
Gravatar
Total Posts 550

Re: CKEditor not working after update 2.3.8.1

See these settings in your user.config. Maybe is is different. If so , correct it and touch web.config and save it again so that new changes in user.config load.

Hope Helps

Asad

 

2/19/2012 7:58:36 AM
Gravatar
Total Posts 52

Re: CKEditor not working after update 2.3.8.1

I have found that the browser shows an error "Uncaught SyntaxError: Unexpected token ILLEGAL" at line 508 with says:

<script type="text/javascript">var editorctl00_mainContent_edContentinnerEditor = CKEDITOR.replace('ctl00_mainContent_edContentinnerEditor', { customConfig : '/ClientScript/ckeditor-mojoconfig.js' , baseHref : '/', height : 350,skin:'v2',language:'en', contentsCss : '/csshandler.ashx?skin=1personalizado&amp;s=1&amp;sv=b47eff08-fb85-4148-859e-7dc720c096b6',bodyClass:'wysiwygeditor' ,filebrowserWindowWidth : 860,filebrowserWindowHeight : 700,filebrowserBrowseUrl:'http://www.comolopienso.com/Dialog/FileDialog.aspx?ed=ck&type=file' ,filebrowserImageBrowseUrl:'http://www.comolopienso.com/Dialog/FileDialog.aspx?ed=ck&type=image' ,filebrowserFlashBrowseUrl:'http://www.comolopienso.com/Dialog/FileDialog.aspx?ed=ck&type=media' ,toolbar:'FullWithTemplates'}); function SetupEditorctl00_mainContent_edContentinnerEditor( editorObj){editorObj.config.stylesCombo_stylesSet = 'mojo:http://www.comolopienso.com/Services/CKeditorStyles.ashx?cb=399a2e8c4e4843ecbfe6bf33df9e83df';editorObj.config.templates = 'mojo';editorObj.config.templates_files = ['http://www.comolopienso.com/Services/CKeditorTemplates.ashx?cb=47f09db7-2b26-47bc-a9d9-d861911b9d7d'];editorObj.config.templates_replaceContent = false;editorObj.config.smiley_path = '/Data/SiteImages/emoticons/';editorObj.config.extraPlugins='onchange'; editorObj.on( 'change', function(e) {hookupGoodbyePrompt("Tiene cambios sin guardar, &#191;esta seguro que desea abandonar esta pagina sin salvar?
"); }); }SetupEditorctl00_mainContent_edContentinnerEditor(editorctl00_mainContent_edContentinnerEditor);</script><script type="text/javascript">
$(document).ready(function() { $('#ctl00_mainContent_dpdpBeginDate').datetimepicker({showOn: 'button',buttonText:'...',duration: ''}); });
</script>

I think the exception happens in the last script.

2/19/2012 8:16:02 AM
Gravatar
Total Posts 52

Re: CKEditor not working after update 2.3.8.1

Found that the error is related to the Resource.es.resx file (I use Spanish language), if I remove the file then every think works as expected.

2/19/2012 8:56:55 AM
Gravatar
Total Posts 52

Re: CKEditor not working after update 2.3.8.1

Solved: I just replaced the Resources.es.resx file from version 2.3.8.1 with the last updated version in the main development branch of the project and it works now.

I think the error was introduced a long time ago (in revision 2574 - 5 months ago) but I didn't realize about it until a new site was installed. It has been solved in revision 3982. The failure was due to an line feed inside the value of the UnSavedChangesPrompt resource.

Thanks for your help,

Carlos

2/19/2012 8:32:57 PM
Gravatar
Total Posts 2253

Re: CKEditor not working after update 2.3.8.1

Hi Carlos,

Sorry for not responding to this sooner. I just got around to looking through posts today.

This problem was reported a couple weeks ago and has fixed the javascript that has to do with this issue. You found the correct cause for the problem also. I just wanted to let you know that Joe is aware of it and it has been fixed in the repository. You can read his post on the subject in this thread

Thanks,
Joe D. 

2/20/2012 6:48:13 AM
Gravatar
Total Posts 52

Re: CKEditor not working after update 2.3.8.1

Thanks for your answer.

This could be better in requests forum, but as it happened with this post:

Just a note for the forums search, before posting the issue I searched the it (and also googled around) for a while and I wasn't able to find an answer. Now that I know where the answer was I have searched the forum and found the thread in page 23. My problem was simple, I was searching for CKEditor and the post was titled "WYSIWYG....". Maybe there are only 15 or 20 post that appear before, bus as the search engine shows a result for each comment it moves quite far from the first page. It may be interesting to "collapse" same threads in just one search result instead of having so many times the same thread, and maybe adding some sort of "This thread (so many related posts)".

It could be also useful to use some king of tagging in the thread so creators and advanced users could easily tag a thread to a more appropriated classification so the search engine could also take this information into account. Now if your search criteria does not mach the post titles an important result may came in a very deep search results pages.

Anyway thanks again for the help,

Carlos 

You must sign in to post in the forums. This thread is closed to new posts.