Forum  Community Devel...  Using the FCKEd...  FckEditor to read custom config file
Previous Previous
 
Next Next
New Post 3/12/2008 5:24 PM
  bzamfir
247 posts
www.zbconsulting.eu
4th Level Poster




FckEditor to read custom config file 

Hi,

I need to make an app where to let user to customize the toolbar in fckeditor. I don't want to change the defauilt fckconfig.js, so I want to create a custom config file where I'll create the definition for customized toolbar

However, it seems I cannot manage to make fckeditor to find the custom config file.

I placed custom config  file in root dir of the app

I tried

fckeditor.CustomConfigurationFile = "~/myconfig.js";

fckeditor.CustomConfigurationFile = "/myconfig.js";

fckeditor.CustomConfigurationFile = "../../../../../myconfig.js";

fckeditor.CustomConfigurationFile = "myconfig.js";

But nothing seems to works

How can I access it?

Thank you


Bogdan Zamfir
Consultant / Developer / Programmer
www.zbconsulting.eu
View Bogdan Zamfir's profile on LinkedIn
 
New Post 3/16/2008 6:47 AM
  ori.cohen
4390 posts
1st Level Poster




Re: FckEditor to read custom config file 
Hello,
There
is currently no support for changing the main .js file of this editor for client-side toolbar customizations.
What you can do though is to use the many available server-side properties of the "fckEditor" to customize the look and feel of the editor. For example you could create a custom page, by which the users would be able to make the customizations they like, then submit the form to server-side, set the properties and save them in any way you like (cookie, database, server cache, session cache, etc...) so the user would have these configurations available to him throughout the time scope that you will choose.

Regards!

Ori Cohen
The Visual WebGui team
 
New Post 6/29/2008 4:18 PM
  asmi
4 posts
No Ranking


Re: FckEditor to read custom config file 

After very deep dive inside fck sources, I've discovered the way to do that:

fckEditor1.Config["CustomConfigurationsPath"] = "../fckconfig.custom.js";

Enjoy! :)

 
New Post 6/29/2008 11:48 PM
  ori.cohen
4390 posts
1st Level Poster




Re: FckEditor to read custom config file 
Hello Mr. Smirnov!

I want to thank you on the behalf of the Visual WebGui team for your valuable research and for providing this information in this forum thread.
We greatly appreciate your contribution to our community and hope that you make great use of our framework and other technologies.
Hope to see more of you here.

Regards,

Ori Cohen
The Visual WebGui team
 
New Post 6/30/2008 5:57 AM
  asmi
4 posts
No Ranking


Re: FckEditor to read custom config file 

First of all - thank you for the warm words.

And just a proposal - it would be great if you'll create a property that will incapsulate this "magic string" into property. This will make using that easier and more error-safe

 
Previous Previous
 
Next Next
  Forum  Community Devel...  Using the FCKEd...  FckEditor to read custom config file
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS