FCKedit and divs vs spans
Last Post 06/07/2007 7:39 PM by David. 4 Replies.
Author Messages
David
Nuke Master
Nuke Master
Posts:152


--
06/05/2007 7:36 PM
     I have been using the FCKedit with it pointed to my skin.css file so that all of my classes are available. This has work great until I started to get a bit fancier.  Normally the FCKeditor applies the class to a that encompases the elements that you have selected.  However, I now have some classes that should be applied to
    rather than spans. How do I indicate to the FCKeditor that I want it to do that?  In the old statix way I could create an xml file to do it, but I really don't want to have to maintain the extra files. When I edit the skin.css I like the fact that it shows up in the FCKeditor.

    I just went pact to your Isses 8 and was adding imageleftsidecaption class to my skin.css when this problem show up. Those classes really do need to be in a

    and not a span.  In the style dropdoen the FCKeditor actually add (span) to them.

    Are there any easy solutions?  I suspect  that some of the classes should actually be applied to the

    not that this is the break being used.

    Lee are you thinking of updating your FCKedit articles now that its part of DNN?

    /Dave

    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    06/06/2007 4:32 PM
    Hi Dave,

    Yes I now use divs on those, I do need to do an update on the FCKEditor to demo the new functions and to double check elements like that in issue 8.

    If you want to send across some code examples that would be great.

    I've made a note of it in the tutorials list, thanks,
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    David
    Nuke Master
    Nuke Master
    Posts:152


    --
    06/06/2007 4:48 PM
    I had been using the FCKeditor for a while with both settings set to dynamic. Normally I didn't really use any styles from that list much. When I did they worked. Them two dayas ago I realized that I really needs to ad some images with captions and remember your video on the formating with the vortex skin in issue 8.

    I reloaded the videos and the skin zip file. All was well with the quoteleft and other until I got to the imageleftsidecaption. When I set the style the caption stayed to the right of the image and wouldn't move under it. The more times I hit the enter key the worse it looked. Then noticed that all of the styles in the style list had (span) after them. This clearly needed to be in a div.
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    06/07/2007 3:08 PM
    Have you looked at the style file for the FCKEditor that you upload? - You should be able to just change the span tags for divs in the file and then when you select the style everything should be working ok.
    Lee Sykes
    Site Administrator
    Subscribe to the website : DotNetNuke Video Tutorials : The Skinning Toolkit : DotNetNuke Podcasts

    Twitter: www.twitter.com/DNNCreative

    Lee Sykes's Facebook Profile
    David
    Nuke Master
    Nuke Master
    Posts:152


    --
    06/07/2007 7:39 PM
    I was thrying to do without adding each style to the FCKstyles.xml (?) file that I had in my skins.css. If you select "dunamic" in the FCKeditor all of your styles show up. The FCKeditor seems to apply them all in spans.

    As it turns out the

    Caption

    where The FCkeditor has placed the

    's for the enter key still seems to require hand editing of the html. Also Caption doesn't look inside the FCKedditor like it does in IE for FireFox.



    ---