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 ForumsFCKeditorFCKeditorDynamic Styles Filter cuts off at 256 characters - bug? DNN 4.9.4Dynamic Styles Filter cuts off at 256 characters - bug? DNN 4.9.4
Previous
 
Next
New Post
7/8/2009 8:18 PM
 

I am trying to use the Dynamic styles filter in DNN 4.9.4 and have found that whilst it appears to save a filter string longer than 256 characters when you click "apply" in the custom settings if you close the custom settings window then re-open it the filter has been truncated to 256 characters.

To me this appears to be a bug. If there is a limit then when you initially click 'apply' you should get an error message.

Is anyone else seeing this?

TIA

Antony

 
New Post
7/9/2009 4:28 AM
 

the limit is quite probable. If you need to filter a lot of styles, it might be easier to just create your own static css for the editor


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
New Post
7/9/2009 5:21 AM
 

ErikVB wrote

the limit is quite probable. If you need to filter a lot of styles, it might be easier to just create your own static css for the editor

Erik is not quite correct, you need to create a custom FCKstyles.XML; there are a couple of howTos and explanations avaliable in the web. You can specify the file in advanced editor settings per portal, module or instance.


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/9/2009 5:22 AM
 

PS: AFAIR, style filter does support wildcards, maybe this allows you to shorten your filter list...


Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
7/9/2009 5:38 AM
 

Sebastian Leupold wrote
 

 ErikVB wrote

 

the limit is quite probable. If you need to filter a lot of styles, it might be easier to just create your own static css for the editor

 

Erik is not quite correct, you need to create a custom FCKstyles.XML; there are a couple of howTos and explanations avaliable in the web. You can specify the file in advanced editor settings per portal, module or instance.

thats basically what i said but more elaborated :) AFAIK you must change the fck editor styles setting from dynamic to static.

What i typically do is make these changes in web.config:

        <add
            name="FckHtmlEditorProvider"
            type="DotNetNuke.HtmlEditor.FckHtmlEditorProvider.FckHtmlEditorProvider, DotNetNuke.FckHtmlEditorProvider"
            providerPath="~/Providers/HtmlEditorProviders/Fck/" 
            CustomConfigurationPath="~/portals/_default/fck/FCKConfig.js" 
            EnhancedSecurityDefault="false" 
            SecureConfigurationPath="~/portals/_default/fck/FCKConfigSecure.js" 
            ImageGalleryPath="~/Providers/HtmlEditorProviders/Fck/fckimagegallery.aspx"
            ImageUploadPath="~/Providers/HtmlEditorProviders/Fck/fckimagegallery.aspx"
            ImageAllowedFileTypes="gif,png,bmp,jpg"
            FlashGalleryPath="~/Providers/HtmlEditorProviders/Fck/fckimagegallery.aspx"
            FlashUploadPath="~/Providers/HtmlEditorProviders/Fck/fckimagegallery.aspx"
            FlashAllowedFileTypes="fla,swf"
            LinksGalleryPath="~/Providers/HtmlEditorProviders/Fck/fcklinkgallery.aspx"
            DynamicStylesGeneratorPath="~/Providers/HtmlEditorProviders/Fck/FCKStyles.aspx"
            DynamicStylesCaseSensitive="true" 
            DynamicStylesGeneratorFilter="controlpanel|filemanager|mainmenu|wizard" 
            StaticStylesFile="~/Portals/_default/fck/fckstyles.xml" 
            StylesDefaultMode="static" 
            DynamicCSSGeneratorPath="~/Providers/HtmlEditorProviders/Fck/FCKCSS.aspx" 
            StaticCSSFile="~/Portals/_default/fck/fck_editorarea.css" 
 
           CSSDefaultMode="static" 
            spellCheck="ieSpell"
            AvailableToolbarSkins="Office2003,Silver"
            DefaultToolbarSkin="Office2003"
            AvailableToolBarSets="DNNDefault,Default,NoGallery,Basic" 
            DefaultToolbarSet="Basic" 
            DefaultImageGallerySkin="Default"
            DefaultFlashGallerySkin="Default"
            DefaultLinksGallerySkin="Default"
            FCKDebugMode="false"
            UseFCKSource="false"
            OptionsOpenMode="ShowModalDialog"
            CustomOptionsDialog="Admin"
            ShowModuleType="true"
            FixOldDNNPostback="false" />

 The highlighted lines are the ones that are changed (this is from memory, i might have missed one or more). This will put the complete fck config in the portals/_default folder, so it can be easily reached by the host user, and not modified by the admins. the fck_editorarea.css file defines the css that is used for the editor area, this should match your skin as much as possible. fckstyles.xml defines what styles are available in the styles dropdown. What dropdowns are available is defined in fckconfig.js. What i typically do on most sites where admins are only allowed to edit basic html is to set the basic toolbar to be used as default, and modify the definition of this basic toolbar to the needs of the site.


Erik van Ballegoij, Former DNN Corp. Employee and DNN Expert

DNN Blog | Twitter: @erikvb | LinkedIn: Erik van Ballegoij on LinkedIn

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Provider and Extension ForumsProvider and Extension ForumsFCKeditorFCKeditorDynamic Styles Filter cuts off at 256 characters - bug? DNN 4.9.4Dynamic Styles Filter cuts off at 256 characters - bug? DNN 4.9.4


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