CKeditor shows no custom styles

This is an open forum for any mojoPortal topics that don't fall into the other categories.

This thread is closed to new posts. You must sign in to post in the forums.
1/2/2010 5:06:54 AM
Gravatar
Total Posts 220

CKeditor shows no custom styles

Hi Joe,
I am in a quandary. TinyMCE and FCKeditor are not able to render € and CKeditor shows no custom styles in its select list.
Is it possible to solve one this problems?
Best
Matthias

1/2/2010 5:20:51 AM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

Hi Matthias,

It does work in CKeditor for me. If you downloaded mojoportal 2.3.3.2 right after it was released, you may try downloading and deploying it again. A few patches were applied to it in the days right after the initial release. On of the patches was related to CKeditor template/style integration.

So redeploying the files may fix it for you.

Alternatively, I'm thinking of putting out an interim build of the latest stable code so people can test the new File Manager improvements. If you would be interested in trying the new build let me know. It is also already deployed on demo.mojoportal.com so you can test the new file manager there as well.

Best,

Joe

1/2/2010 6:28:32 AM
Gravatar
Total Posts 220

Re: CKeditor shows no custom styles

Yes, I'm interested in trying the new build.

Best
Matthias

1/2/2010 6:31:43 AM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

I will post again later today when the build is available.

Best,

Joe

1/2/2010 2:06:08 PM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

I've uploaded the new build, see this thread for notes about it.

Best,

Joe

1/3/2010 6:35:49 AM
Gravatar
Total Posts 220

Re: CKeditor shows no custom styles

Hi Joe,

sorry, but I have the version 2.3.3.4 MySQL now, I add a new style, in tinyMCE it is in the select list but the list of the CKEditor is still empty.

Btw.: the browser shows a javascript errror when the editor is open ...
Message: identifier, string or number expected
Zeile: 1
Zeichen: 70
Code: 0
URI: http://localhost/mojoB/Services/CKeditorStyles.ashx?cb=b1ddea91-d302-4848-87d7-7bb2464b47be
Message: 'length' is null or no object
Zeile: 63
Zeichen: 1059
Code: 0
URI: http://localhost/mojoB/ClientScript/ckeditor302/ckeditor.js

Is it possible to load the former version of TinyMCE to solve my problem?

Best
Matthias

1/3/2010 7:12:38 AM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

Hi Matthias,

Can you produce the problem on demo.mojoportal.com?

I just tried it there and it worked for me. I created a style named highlight for element span and class highlight. I then select some text in the editor and click the styles dropdown and chose my style highlight and it wraps the text in a span with class="highlight" just as it should.

Note that it does work different in CKeditor than in TinyMCE, the options you see depend on what you have selected in the editor. For example if you define a style for img element it will only be available when you select an image in the editor.

Is it possible to load the former version of TinyMCE to solve my problem?

What do you mean? You can use TinyMCE if you don't like CKeditor and you can insert € from the toolbar in any of the editors.

Hope it helps,

Joe

1/3/2010 7:34:53 AM
Gravatar
Total Posts 220

Re: CKeditor shows no custom styles

Hi Joe,

maybe CKEditor don't like me.

When I go to http://demo.mojoportal.com and edit "Welcome" select some text in the editor and click the styles dropdown ... it is empty ;(

What can I do ?

Matthias

1/3/2010 7:41:42 AM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

Ok, I see, it is throwing a script error in IE 8. It works fine in Chrome or Firefox.

I will investigate and see if I can fix it in IE.

Best,

Joe

1/3/2010 9:08:45 AM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

I believe this is a bug in CKeditor, I've reported it in their issue tracker.

Best,

Joe

1/3/2010 9:38:15 AM
Gravatar
Total Posts 18439

Re: CKeditor shows no custom styles

Wow, the CKeditor guys already responded and told me how to solve it. Apparently the issue is that the word class is a keyword in javascript so when setting class attribute in json, it must be quoted. Other browsers must have more forgiving javascript engine. In any case, I got it weorking now with IE 8 on my machine, I will make another build package later today and let you know when it is ready.

Best,

Joe

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