Mojo FckConfig.js

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.
5/29/2009 11:06:14 AM
Gravatar
Total Posts 73

Mojo FckConfig.js

Joe, after upgrading to the version of the fckeditor that had the templates, my users complained about the missing font buttons. Found that the

- ['FontFormat','FontName','FontSize'],
- ['TextColor','BGColor'],

was missing from the toolbarsets in the latest mojofckconfig.js. I am fixing mine, just wanted to let you know.

 

5/29/2009 11:14:53 AM
Gravatar
Total Posts 73

Re: Mojo FckConfig.js

Oddly enough, adding those back in to my toolbar sets did not add them back...

 

EDIT: I just verified the font buttons were missing from the demo.mojoportal.com site here too.

5/29/2009 11:28:22 AM
Gravatar
Total Posts 18439

Re: Mojo FckConfig.js

Hi Tim,

They were removed on purpose and a note about the reasons why you are better off without them was added to the FAQ recently. 

If you really want to use them then you should use a custom config file for fckeditor because I don't want them in the default one.

If you make a change to the config file it requires clearing the browser cache to load the new config js.

I am planning in addition to the ability to edit the content templates, to also have the ability to edit items in the Style dropdown. This way you can predefine some font styles using CSS classes and let the user choose them from the style list so it only assigns css classes that change the font. That way you can give the users what they want but not have hard coded fonts in the content that can't be easily changed by the skin.

Best,

Joe

5/29/2009 11:42:00 AM
Gravatar
Total Posts 73

Re: Mojo FckConfig.js

I have my custom config setup, with the added font buttons back in. I was already using a custom one to support the FLV player dialog. Yet the font buttons are still not showing up.

I like your plans for the future, it is just that the user using the site is not capable of editing the source directly. He has been copying into the editor from MS Word with disastrous formatting results. :)

Is there something else I am missing to add these back in?

5/29/2009 11:54:10 AM
Gravatar
Total Posts 18439

Re: Mojo FckConfig.js

Make sure you are adding it to the toolbar named FullWithTemplates. Go to a page that doesn't have the editor, clear the browser cache, then it should work.

Pasting from Word is something I would never do myself, it creates horrible markup and usually makes a page not pass the w3c validator, but I know people do it all the time.

Hope it helps,

Joe

5/29/2009 12:01:48 PM
Gravatar
Total Posts 73

Re: Mojo FckConfig.js

Just curious, why would removing this universal key disable the font buttons?

5/29/2009 12:11:49 PM
Gravatar
Total Posts 18439

Re: Mojo FckConfig.js

Removing what universal key? I don't know what you mean.

btw, I'm not sure you understood about how the style dropdown can work, the user does not have to go to source view and set a css class. The user can type some text, select it then choose a style from the dropdown that would wrap it in a span that has a css class you defined with particular fonts and colors. Its possble currently to edit that list by editing the ClientScript/mojofckstyles.xml file, so even though we don't have the UI feature to edit them yet, you could create a set of styles that your users could easily use.

Best,

Joe

5/29/2009 12:22:03 PM
Gravatar
Total Posts 73

Re: Mojo FckConfig.js

NVM about the universalkey, I saw a comment in the js about it getting removed, and I thought it was relevant. I agree with your sentiment in the reasons for removing the buttons, I just don't think my users will.

5/29/2009 12:33:50 PM
Gravatar
Total Posts 18439

Re: Mojo FckConfig.js

I hear ya, sometimes you just got to do what they want. One of my customers wanted them back too even after I explained the downside of using them. I watch them create content and instead of using headings they set big font sizes so they end up with not very semantic structure, but its their site what can one do but cringe and bear it ;-)

Cheers,

Joe

5/29/2009 12:51:05 PM
Gravatar
Total Posts 73

Re: Mojo FckConfig.js

Hahaha, sigh. I got the font buttons back, but now the templates button is missing. Here is my toolbar:
 


FCKConfig.ToolbarSets["FullWithTemplates"] = [
['Source','Templates'],
['Cut', 'Copy', 'Paste', 'PasteText', 'PasteWord', '-', 'Print', 'SpellCheck'],
['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
'/',
['Blockquote','Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
['OrderedList','UnorderedList','-','Outdent','Indent'],
['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
['Link','Unlink','Anchor'],
['Image','Flash','flvPlayer','Table','Rule','Smiley','SpecialChar'],
'/',
['Style','FontFormat','FontName','FontSize'],
['TextColor','BGColor'],
['FitWindow']
] ;

 

I ran a compare using UltraCompare against the one in svn, and the font changes, and my flvplayer changes are the only changes. I am reminded of an old song : http://www.youtube.com/watch?v=6TDqvD34hEA LOL.

5/29/2009 1:11:57 PM
Gravatar
Total Posts 73

Re: Mojo FckConfig.js

I added the 'Templates' menu to the Full toolbar, and now it is showing up.

FCKConfig.ToolbarSets["Full"] = [
['Source','Templates'],

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