ASPX templates
Version 5.x > ASPX templates > Firefox adding <br /> in editor View modes: 
User avatar
Member
Member
lwhittemore-emh - 6/15/2011 2:10:57 PM
   
Firefox adding <br /> in editor
I have an editable region set to inherit content but am running into an issue in firefox. Whenever I edit another section of content on the page firefox adds a <br /> to the empty section. I tried removing this "<br type="_moz">" from the editor js file that I read might fix it, but does not seem to do anything. Plus I am not getting <br type="_moz"> I am getting just <br />.

Any thoughts?

User avatar
Member
Member
kentico_michal - 6/16/2011 7:55:59 AM
   
RE:Firefox adding <br /> in editor
Hello,

This behavior is caused by FCK editor that is used in Kentico CMS. However, you can change it by modifying ~\CMSAdminControls\FCKeditor\fckconfig.js file, by setting FillEmptyBlocks property to false:

FCKConfig.FillEmptyBlocks = false ; (line about 85)

Best regards,
Michal Legen

User avatar
Member
Member
eric.rovtar - 6/16/2011 7:59:55 PM
   
RE:Firefox adding <br /> in editor
Michal:

Just curious, but will that also get FCK Editor to stop automatically adding in the non-breakable spaces ( )?

Thanks!

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 6/17/2011 8:08:29 AM
   
RE:Firefox adding <br /> in editor
Hello,

Could you please describe, in what context the FCKeditor adds these?

Best regards,
Boris Pocatko

User avatar
Member
Member
eric.rovtar - 6/17/2011 12:39:50 PM
   
RE:Firefox adding <br /> in editor
I've just noticed that when I have a text area, even though I don't specify a default value for the field in the document type, when you go to create a new one, it seems to prefill it with   instead of being truly empty.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 6/22/2011 10:55:02 AM
   
RE:Firefox adding <br /> in editor
Hello,

As I replied further below, these issues are caused by FCKeditor and browser type. As it turns out we aren't able to control the input during the saving process of the FCKeditor. The CKeditor supplied with version 6.0 should address this issue.

Best regards,
Boris Pocatko

User avatar
Member
Member
lwhittemore-emh - 6/17/2011 7:14:20 AM
   
RE:Firefox adding <br /> in editor
It doesn't seem to work. The problem that I am having is that I have a content block that is set to inherit from the page above it and every time I edit the page the empty block is filled with the <br /> tag and no longer inherits the content from the page above it.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 6/17/2011 8:02:11 AM
   
RE:Firefox adding <br /> in editor
Hello,

Could you please try to change in the same file the line:

FCKConfig.EnterMode = 'br';

to

FCKConfig.EnterMode = 'p';

This might help you. If not, please describe your setup in more detail so we can try to create a similar setup a check the behavior on our pc.

Best regards,
Boris Pocatko

User avatar
Member
Member
lwhittemore-emh - 6/17/2011 8:15:34 AM
   
RE:Firefox adding <br /> in editor
it is exclusive to fire fox but here is what is happening.
I have multiple editable regions on the page

<cc1:CMSEditableRegion ID="MainEditableRegion" runat="server" RegionType="TextBox"
RegionTitle="Headline" />

<cc1:CMSEditableRegion ID="CMSEditableRegion1" runat="server" RegionType="HtmlEditor" RegionTitle="Main Editable Region" />

<cc1:CMSEditableRegion ID="AddressBox" runat="server" RegionType="HtmlEditor"
RegionTitle="Address Content" InheritContent="true" />

The third region is set to pull it's content from the main page but whenever I edit content from either of the other two regions the <br /> tag is added to the empty third region.

I am able to remove the <br /> when I view the source but if I exit source mode before saving it adds it back.

So every time I edit the page I need to go into the empty box view source remove the <br /> tag and then save while in source or I loose the inherited content.

User avatar
Kentico Consulting
Kentico Consulting
kentico_borisp - 6/22/2011 10:52:54 AM
   
RE:Firefox adding <br /> in editor
Hello,

We've investigated this problem and the additional <br/> tag is inserted by Firefox and FCKeditor. This means, that we don't have control over the input if an empty region is saved.
We also checked the new version of the editor, the CKeditor and it seems, that this version addresses this issue. After we deleted all the content from a region and saved it, the region stayed clear also in the Source mode view.
The next version of Kentico (6.0) comes with this version and should solve your problem.

Best regards,
Boris Pocatko