You need to Register for free and Login to post a message in the forum.

Forum

Subject: FCKEditor and dynamic css
Prev Next
You are not authorized to post a reply.

Author Messages
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

18 Jul 2008 11:04 AM  
I used to be able to have my styles from the skin.css be used inside the FCKedit while I was editing. This behavior has changed, but I don't remember when. I suspect that it was when I upgraded from DNN 4.5.* to DNN 4.8.0.

To make the FCKeditor use the skin.css I just set the portal wide CSS Custom option. Ultimately I also changed the two "static" FCKeditor entries in wbe.config to "dynamic".

Are others using this capability? Is snyone one else seeing what I amd seeing?

/DaveS
jncraig
DNN Creative Staff
Nuke Master II
Nuke Master II
Posts:2173


19 Jul 2008 7:36 AM  
Did you modify one of the FCK editor's files to do this? If so, you probably overwrote that when you did the upgrade.

Joe Craig
DNN Creative Support
Subscribe to the website
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

19 Jul 2008 12:01 PM  
Didn't touch and FCKedit files. originally I all I had to do was follow Lee's tutorial on the FCKedit and click the correct boxes under "Show custom editor options" In the editor.

This wasn't always "sticky" so changing the "static" to "dynamic" in the FCKedit line in web.config caused it to be the default.  That line is still intact.

When you edit on dnncreative are the pages displayed using the skin.css file or is the text show in Times Roman and black text? 

/DaveS
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3143

22 Jul 2008 5:23 AM  
Hi Dave,

On dnncreative I have not upgraded the FCK editor, even though I upgraded DotNetNuke, so I still can view the styles exactly the same as the tutorial.

As it happens I am currently researching FCK editor tutorials for the September release. I will be researching this in-depth in a couple of weeks so I should be able to share any new techniques that I discover shortly.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

22 Jul 2008 10:05 AM  
I actually have a second FCKeditor / IE issue that I think is related.

While troubleshooting a W3C html issue I needed to have FireFox not logged in and need to made Admin changes at the same time so I was loggined in using IE doing those. I tried to use the FCKeditor and set several dialog boxes saying "Error loading "/Providers/HtmlEditorProviders/FckFCKStyles.aspx?tabid=92"

Maybe FireFox is failing silently while IE is complaining before working.  I'll check this link out and see if there are any typo's in the path.

I hope that your tutorial covers how to upgrade your version of the FCKedit to be the same as provided at FCkeditor.net.  DNN always seems to ve a version or two behind.

/DaveS

DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

22 Jul 2008 12:33 PM  
I have identified this as an issue with iFinity's Friendy URL Provider, which I also use.
IE gives warning messages and FireFox doesn't.

When I disable the URL Provider all works well.

/DaveS
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3143

23 Jul 2008 3:09 AM  
I hope that your tutorial covers how to upgrade your version of the FCKedit to be the same as provided at FCkeditor.net.  DNN always seems to ve a version or two behind.
I won't be covering upgrading as that will be way too involved, they have done a lot of configuration changes to FCK Editor when transferring it to DNN where half of the settings in the fckconfig file no longer work and are set in the DotNetNuke web.config file, it would mean going through the FCK Editor source code and adpating it, it's not a case of simply installing the upgraded version over the top of the current one.

Thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

23 Jul 2008 9:54 AM  
Too bad they didn't make it both easier for them and for us to upgrade
eureka
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:257

25 Jul 2008 2:55 AM  
Hi David


I am having the same problem, I have tried various combinations, nothing seems to work,  I also tried using your dynamic solution (with and without changing the web.config) but although my custom styles appeared, they had automatically acquired an unwanted extra [span].

I am having to resort to adding links to my custom style sheet, thus adding to the overall page load time.

Does anybody have an answer? 

Lynn

www.drivewaydesign.eu For A Dream Driveway

www.a2zdom.com Domain name matters

www.seemalta.net See Magical Malta
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

25 Jul 2008 9:42 AM  
I tracked my problem down to iFinity's Friendly URL provider.  They made some setup recommendations as a response to my port in that forum.  Those changes made it partially work on my home page, but not on other pages.

I place to take a fresh clone of my web sites and put it on my localhost today for further troubleshooting.

I'll update if and when I find a fix.

I amazes me just how few DNN webmasters seem to use dynamic css in concert with the FCKeditor.  I really want to have my styles available when editing. I also what the page to have a similar look to the finished product.

Does the added span have a class?  FCKEdit has at least 3 options for newLine/breaks p tags, div tags, or br's.  I don't know of a span option but there could be one.

/DaveS
eureka
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:257

25 Jul 2008 12:34 PM  
Hi David

To give you an example, this is one of the styles in mystyle.xml file (I have replaced <> with () so it will display in the forum )

(Style name="Quote Box" element="div")
(Attribute name="class" value="quotebox" /)

In my custom style menu I would expect to see the Style Name "Quote Box" associated with the class. But the class value is displayed instead with added span code (see below), this is the case with every custom style. I have not touched the FCK code and it is still "p" "div" or "br" so I dont know where the span comes from and why it should replace the div.

quotebox (span)

When I apply it, the text is enclosed inside span tags instead of the div tags as required.

So far I either have "blank" or the "wrong code", I have been trying to find a solution for for ages, but it seems that not many people use custom styles so the answer is hard to find.

Thanks

Lynn


www.drivewaydesign.eu For A Dream Driveway

www.a2zdom.com Domain name matters

www.seemalta.net See Magical Malta
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

25 Jul 2008 12:57 PM  
Now that I see this post we are talking about two very different features of the FCKeditor. You are using the methods that allows you to duplicate some of the styles from your skin.css in a seperate xml file that FCKedit reads.

I am talking about the feature that using your skin.css file in total for rendering the page and for the styles pulldown list. BTW this makes the list VERY long. There is some regex file that you can use to filter this list but I haven't tried it.

I have further isolated my problem to PageBlaster V3.0. The problem goes away if I disable PB in web.conf, but not if I disable it on a page basis.

/DaveS
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

25 Jul 2008 1:09 PM  
And my final answer is:

It took a combination of tweaks to iFinity's Friendly URL Provider's config statment in web.config AND adding "FCK" to global excludes inSnapis' PageBlaster config file to get the desired behavior.

/DaveS
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

25 Jul 2008 3:03 PM  
Lee when you do the FCK article could you cover how to use regex to limit the styles that show up in the dropdown list of styles in the editor.  I have read that you can do this - haven't found the filename - or figured out the regex that I could use to reduce the list to somthing managable.

More people should use the dynamic styles - it is really great to see the page fully rendered with your skin.css before you click submit.

/DaveS
greenflash
Nuke Active Member
Nuke Active Member
Posts:27

03 Aug 2008 3:50 AM  
@David i am getting excited while reading your posts, you try to improve your websites with some extra effort which most webmasters does not even try.

I also want to have dynamic styles available while editing text/html, however if i use third party such as pageblaster, it does not act properly.

Would you mind creating a step by step tutorial for us

DotNetNuke Help for beginners
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

03 Aug 2008 9:46 AM  


1. If you use PageBlaster V3.*  add "FCK" to the excludepaths directive in Snapsis.PageBlaster.config.  This makes sure that PB doesn't mess with files such as FCKStyles.* et al.

2. Search web.config for "static" and replace the two FCK editor instances of this with "dynamic".  This makes the dynamic "sticky" so that you don't have to do the "Show custom editor options" below each time that you edit.  This step is optional.

3. Edit a Text/HTML module's content.

4. click on "Show custom editor options" and set the "List of available styles for the editor" and "Editor area CSS" from "static" to "dynamic" for the "portal"

5. Click on the "Refresh Editor" next to the
"Show custom editor options" and your content should be rendered using the styles in your skin.css. Also the Styles dropdown should contain all of the styles in your skin.css.

There is an FCK* xml file that will take a regex expression to limit the styles that show up in the Styles dropdown.  I forget where it is. I'll look for it if Lee doesn't cover it in his Sept tutorial.

With this a rarly have to go into "source" mode and apply styles in the raw html. Usually this is because I need to use a "div" rather than a "p" or "span" because the of aa "block" type of element.

Hope that this helps,

/DaveS
DavidWSnow
DNN Creative Magazine Subscriber
Nuke Master
Nuke Master
Posts:118

03 Aug 2008 10:42 AM  
Active Form munged the format of the previous post.
Sorry,
/DaveS
leesykes
DNN Creative Staff
Nuke Master III
Nuke Master III
Posts:3143

05 Aug 2008 4:25 AM  
Thanks for the info Dave, I will bear it in mind when doing the tutorials - if you come across any other useful information please let us know, thanks,

Lee Sykes
Site Administrator
Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

Twitter: www.twitter.com/leesykes

Lee Sykes's Facebook Profile
You are not authorized to post a reply.
Forums > Users Lounge > Everything Else > FCKEditor and dynamic css



ActiveForums 3.7

Latest Forum Posts

RE: Expanded sections (Advance settings) collapses automatically! by maxdagenais
Thanks,Yes, I did restart IIS and event the server to make sure but no luck.Again, the issue seems t...
URL Question by bmatthews
Is there a way to make the URLs a little friendly.What I am looking to do is make a page and access ...
RE: Upgrade DNN 2.1.2 to use SQL 2k5 by davidATapr
Hi Lee, Thanks for getting back to me. Our DNN and portal DBs are 2000 and I did a full backup t...
RE: Upgrade DNN 2.1.2 to use SQL 2k5 by leesykes
Have you tried backing up the SQL 2000 database and then restoring it into the SQL 2005 server?You s...
RE: Upgrade DNN 2.1.2 to use SQL 2k5 by davidATapr
Oh, and we can't upgrade to a new version of DNN because our custom modules are only for 2.1.2 and i...
Upgrade DNN 2.1.2 to use SQL 2k5 by davidATapr
Hello,We are currently using SQL Server 2000 with DNN 2.1.2.  We would like to upgrade to SQL Server...
RE: Issue customizing DNN by jncraig
DNN skins for "older" versions should work just fine with 4.9.0.
RE: Issue customizing DNN by leesykes
You could download an earlier version of DNN to get hold of the skin files for DNN Blue, the entropy...
RE: Issue customizing DNN by jberry
The tutorials were very valuable and I am back on track.  In the latest version, the only skin and c...
RE: Issue 32 - Powerful Efficient Techniques for DotNetNuke Administration using SQL by leesykes
have you created the username + password access that you specified in the connection string for the ...
RE: Installation of Modules Errors by leesykes
. I have access to all folder permissions, and it was working. I just don't enough about the install...
RE: Changing the House Menu?? by leesykes
Hello,There is not an easy way to change them to hover over submenu items. When using the house menu...
RE: Issue customizing DNN by jberry
Thank you both for the replies.  I will get back to the basics here.
RE: How to send mail using the smtp settings by jncraig
I have set up DNN to use a gmail account as the SMTP server. If I remember, you must use xxxx@gmail...
RE: add modules on login and register forms by jncraig
If you login as Host or Admin, you will have a control panel from which you can add modules to pages...
How to send mail using the smtp settings by sherlock005
Hi,I am not able to send the mail.I checked the smtp settings in host settingsi set the smtp server ...
add modules on login and register forms by blanketstream
hi , gaysi have made a site . In skin i was put tag , it is displaying on my pages. when i click on ...
RE: One Year Now, and gladly signing up for a second! by DavidWSnow
A year ago I started this thread and had some very positive comments about DNN Creative Magazine.  M...
RE: Expanded sections (Advance settings) collapses automatically! by jncraig
When generalized behavior like this starts, stopping and restarting IIS sometimes works.
RE: Expanded sections (Advance settings) collapses automatically! by maxdagenais
Hi,I apologise for all the happy faces which seemed to have been caused by cutting & Pasting of the ...
DotNetNuke Modules
RSS Feeds