Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHow to add Templates / StylesHow to add Templates / Styles
Previous
 
Next
New Post
6/16/2008 8:48 AM
 

Hey,

i'm working on a website that is goin to be maintained by non ICT / Designer People. I would like to make it simple for them by giving them a couple of templates / text styles to choose from. So i was wondering how does one add custom templates / styles to FCK Editor?
Thanks in advance :)

Greetz R-J


www.rjdejong.net
 
New Post
6/16/2008 9:47 AM
 

Found it :p

You can add new styles / templates to your FCK editor by simply adding your preferences in

dotnetnuke\Providers\HtmlEditorProviders\Fck\FCKeditor\fckstyles.xml

dotnetnuke\Providers\HtmlEditorProviders\Fck\FCKeditor\fcktemplates.xml

You need to close and open a new browser to see the changes.

 


www.rjdejong.net
 
New Post
3/17/2010 4:40 AM
 

Anyone know if it's possible to apply a list of templates and styles just for one Portal?



Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
9/20/2010 11:42 PM
 
dotcom wrote:

Anyone know if it's possible to apply a list of templates and styles just for one Portal?

Found this thread while trying to do exactly that today. I think I figured out a pretty good way to do it without having to change anything in DNN core.

First I'll assume that you have a separate skin for admin/edit pages. In that skin you'll be running a couple lines of JavaScript to change the FCKEditor configuration. If you use jQuery, just place this code at the bottom of your admin skin (or if you're like me in an external file):

<script type="text/javascript">
var DNN_SKIN_PATH = '<%= SkinPath %>';
$(function() {
   
var frame = $("iframe[src^='/Providers/HtmlEditorProviders']").attr('id');
    $('#' + frame).load(function() {
        var thisFCKConfig = document.getElementById(frame).contentWindow.FCKConfig;
        thisFCKConfig.TemplatesXmlPath = DNN_SKIN_PATH + "lib/fcktemplates.xml";
    });
 
});
</script>

Basically this code just scans the DOM for the IFRAME that uses the FCKEditor Provider. When that IFRAME is loaded, the FCKConfig object is modified to point to a custom fcktemplates.xml. The DNN FCKEditor Provider already allows for portal and even instance level configuration of styles. These can be changed by clicking on "Show Custom Editor Options" under the FCKEditor on any edit page. I know there's some tutorials around on how to do that, probably on dnncreative.com.

 
New Post
9/21/2010 5:16 AM
 
For FCK Editor, the provider allows you specifying Styles and CSS per portal, module and instance interactively by using advanced options beneath the editor on the page.

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorHow to add Templates / StylesHow to add Templates / Styles


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out