FCKEditor adds not wanted tags
Last Post 05/30/2010 2:15 PM by cube consulting. 29 Replies.
Author Messages
pfrauholle
Nuke Newbie
Nuke Newbie
Posts:8


--
02/20/2008 9:14 AM
    Hi, knows anyone why the FCKEditor adds < p > tags to the pasted text. I've saw in the tutorial, there wasn't any < p > tags, when the text was pasted into the editor.
    And when I enter an linebreak ( < enter > ), then the editor makes a mess with the text, for example it added < p >....< / p >.

    That's not what I want to achieve. Has anyone an idea, how to fix this.

    Thanks pfrauholle
    pfrauholle
    Nuke Newbie
    Nuke Newbie
    Posts:8


    --
    02/20/2008 10:58 PM
    in my message above there are some hidden text...with tags (above) I meant p tags, which is added to the editor when text is pasted or even if I do line breaks.
    Thanks for any help on this...pfrauholle
    JacobBushnell
    Nuke Active Member
    Nuke Active Member
    Posts:31


    --
    04/29/2010 7:55 PM
    I've got the same problem... Did you find anything to keep FCKEditor from doing that?

    Jacob
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    05/02/2010 5:57 PM
    This is an option on one of the FCK editor's configuration files.  See http://cksource.com/forums/viewtopi...=6&t=6869.

    You will want to make changes to BOTH fckconfig.js in Providers\HtmlEditorProviders\Fck\Custom and Website\Providers\HtmlEditorProviders\Fck\FCKeditor

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/11/2010 12:27 PM
    I have a question I think is related. I followed the DNNCreative tutorials in issue 8, volume 1 but when I select text in the fckeditor and apply a style to it, it applies the style to the whole section...Not just the line I hightlight as is shown in the tutorials.. How can I fix this? I even added the example skin to see if it was css related.. Same results.. Thanks Aad
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/14/2010 1:54 AM
    Is the source code using p tags or break tags, it may be worth attaching a txt doc to a forum post with the source code you are adding into the FCKEditor and then letting us know what you are attempting to highlight and set a style for, 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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/14/2010 8:29 AM
    Hi Lee, I am just playing around with content, I have attached an example of some content from the home page.
    I have tried to change the entermode in the fckconfig.js files as suggested by Joe, and results have been confusing at best, frustrating to be more honest. My body text in the ventrian news article seems to disappear when I don't use < p > in the entermode, and if I do use the < p > entermode, any styling is applied to the whole text plus I get unwanted empty lines before and after the text... Any help would be much appreciated!!

    My website, by the way, is www.cubeconsulting.nl

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


    --
    05/15/2010 2:01 AM
    Hello,

    Interesting website! - In that text you have attached, you can try changing the div tags for p tags, so it would be:
    < p class="quoteright" >
    < p class="clear" >
    the one above may even work as
    < br class="clear" / >

    Also, if you require a break tag within a paragraph you can press shift and enter to create a break tag
    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/16/2010 3:02 AM
    Hi, Thanks for your reply. I changed the entermode and shiftentermode in the fckconfig files to br and p. Shift Enter now gets me a new paragraph surrounded by line breaks, just Enter gets me a nice line break. I did some more delving in your tutorials and found in the fck tutorials a skin.css and fckcustom.xml file which feature span styles. They seem to allow for partial line/paragraph styling. Still wonder why the tutorial approach from issue 8 doesn't work for me, but this will do I guess. Many thanks for your continued support and excellent tutorials Aad
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/16/2010 3:32 AM
    In the skin.css don't look for span, look for the class that is mentioned in the span tag, those should be in the skin.css file
    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
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/16/2010 3:34 AM
    You may also want to checkout the later FCK tutorials such as:
    FCK Editor Formatting Style Definitions

    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/16/2010 4:58 PM
    Lee, I went through the FCK tutorials to see if I overlooked anything before. But in video 6 of the first series you demonstrate how you highlight a random sentence in a paragraph and apply a format to it and with me that style in that case will be applied to the whole paragraph. Can you help me with that one? Thanks Aad
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/17/2010 1:41 PM
    What style do you wish to apply to that area? are you applying a span tag with a class to the line of text?
    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/17/2010 3:56 PM
    I was trying to add the quote on left and right styles. From the tutorial it appeared you could pick any section of a paragraph and apply the style. I did notice you created styles in the fckstyles.xml file with element = div, in later tutorials I found styles with element = span which do allow styling a section in a paragraph. I wonder why this did not work for me with the style element=div. Also if I re-apply a style again to lose the formatting, that does not happen for me... Any thoughts would be welcome! Thanks Aad
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/19/2010 1:29 PM
    Hello,

    Bear in mind that when the earlier FCK tutorial was created, the FCK editor just created br tags rather than p tags, so it was easy to select any section of text and style it with div tags.

    Now I would suggest that you stick with the p tags method, but for quotes left and right, also place them in p tags using the styles in the fckstyles.xml.

    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/19/2010 2:42 PM
    Hi Lee, thank you for your reaction. I have done some tests with p tags versus span tags and div tags.. It's all Chinese to me, but I will settle for the p approach as you suggested. Final question on this topic, if I re-select the same style to undo applying the style, nothing happens. Any idea why this is? Thanks Aad

    By the way, thanks for recommending Ventrian newsarticles module. After some initial going back and forth and in combination with dnnUI's newslider it is pretty smooth sailing!
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/24/2010 7:28 AM
    I think the undo style option only works for certain elements, it's not something that you can rely on 100%, I can't remember the example that I provided for the undo approach, are you trying this in exactly the same way that I demonstrated in the video?
    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/24/2010 7:51 AM
    Hi Lee, yes I copied the styles from your tutorial and select and re-select the same text bits to get the formatting undone, but to no avail. Not to worry, I select Normal and the formatting is gone. I just wanted to understand what I did wrong.

    In a similar quest to understand the dnn universe, in Ventrian NA I was struggling with the [hassumary] tokens which made my [details] content disappear. Apparently the summary is not empty when using the br entermode in the fckeditor, it leaves one br tag. The [hassumary] is then valid, and the [details] token which is between [hasnosummary] token is not displayed. Took me a while and a lot of sedatives before I found that one out..
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/24/2010 7:56 AM
    that's interesting, thanks for posting the info,
    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/24/2010 8:03 AM
    I think a lot of people (including me) using Ventrian NA and/or DNNui's Newsslider would benefit greatly from one of your tutorials on these modules... The forums on their respective websites are helpful, but I think decent documentation (inlcuding examples) sorely lacks, making it a trial and error experiment to get things to work properly!
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/24/2010 8:09 AM
    There is a tutorial of an older version here:
    Scott McCulloch News Articles Module V00.04.09 Review
    (6 videos - 30 mins)
    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/24/2010 8:22 AM
    Yep saw those, thanks, that got me started... without those tutorials I think I would have tossed ventrian NA out the window already.. Now I find myself trying to understand what the consequences are if I use one instance of the ventrian article module (see www.cubeconsulting.nl/artikelbeheer.aspx) versus a number of instances with related articles (which I had before). Newsslider can only point to one instance at the time, so if I want to use related articles I think I better use one big page with all articles resulting in a potential clutter of articles if somebody is smart enough to just type www.cube../artikelbeheer.aspx.

    Now that I am bugging you anyway, can you tell me please, how can I enter tags in the page details..? There is a tags dropdown list, but I can't seem to find where to enter the actual tags I should choose from.. Thanks Lee!
    Lee Sykes
    DNN Creative Staff
    Nuke Master VI
    Nuke Master VI
    Posts:4945


    --
    05/24/2010 12:15 PM
    On DNN Creative we have setup multiple Ventrian NA modules on different pages, each displaying a different category, ie:
    http://www.dnncreative.com/Tutorial...fault.aspx

    For tags, go to Admin / Taxonomy

    We are covering those tags along with Taxonomy and Folksonomy in the July issue of DNN Creative
    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
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/25/2010 1:57 AM
    Hi, thanks for the reply. Will add additional NA modules, too, then. I started out doing that but did not grasp the meaning of picking different instances in newsslider, causing unexpected windows to open up when clicking on [read more].
    I will return to this approach, maybe I will still hang on to one master page holding all articles and using the other instances to filter on a category (someone else suggested this). I think that way I can relate all articles. Many thanks so far! Aad
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/28/2010 5:10 PM
    Hi Lee, sometime ago I posted these remarks: In a similar quest to understand the dnn universe, in Ventrian NA I was struggling with the [hassumary] tokens which made my [details] content disappear. Apparently the summary is not empty when using the br entermode in the fckeditor, it leaves one br tag. The [hassumary] is then valid, and the [details] token which is between [hasnosummary] token is not displayed. Took me a while and a lot of sedatives before I found that one out..

    I am still fighting to get rid of this excess BR tag, do you have a solution to this? I searched all over the net, found people with similar problems, but no solutions.. It is a big headache in Ventrian as the body of an article is not seen as empty and therefore read more links are shown when there is no body text in effect..

    Many thanks Aad
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    05/29/2010 9:43 AM
    The easiest way to do that is to edit using the Basic Text Box. 

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/29/2010 12:12 PM
    Hi Joe, sometimes the easiest answers turn out to be too easy.. I tried your suggestion, but I still get the empty BR tag - even in basix text box - when I leave the body text empty in ventrian NA.. This seems Firefox related, in other browsers I manage to get the body text to remain empty, but then ventrian won't save the article.. Seems like there's some bug there, too..
    Joseph Craig
    DNN MVP
    Posts:11667


    --
    05/29/2010 1:39 PM
    I'll try to look at this in News Articles.  It works this way with Text/HTML modules.

    There are configuration options for the FCK editor.   There are some threads in the forum that discuss how to customize the default behavior.  There is also a list of tutorials.

    Your other option is to switch to the Telerik editor if you are using a current version of DotNetNuke.

    Joe Craig, Patapsco Research Group
    Complete DNN Support
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/29/2010 3:54 PM
    Hi Joe, thanks for those comments. You are absolutely right, it really does empty out the content in the HTML module, no extra BR tag.. It really must be something in ventrian then.. I guess it is in Scott's hands now (pun intended..)
    cube consulting
    Nuke Ace
    Nuke Ace
    Posts:45


    --
    05/30/2010 2:15 PM
    I guess I have found a solution to the BR tag issue in empty body text ventrian articles. I added a custom field to the Ventrian NA template and the dnnUI Newsslider interface with name Readmorelink, type of dropdownlist with values link and none. Then I put the read more link between an expression token like this:

    [EXPRESSION:Readmorelink:=:link] a class="readon right" href="[LINK]" target="[LINKTARGET]">[lees verder] a [/EXPRESSION:Readmorelink:=:link]

    Now only if the value of 'link' is selected when creating a new article a link is shown to more content, otherwise it is not.. I agree it is not the prettiest solution, but it seems to work now...


    ---