Kentico is adding <p> and style to cms.news NewsText outputs?

Craig Hazard asked on September 16, 2014 12:19

Hey guys,

I have an issue where it seems Kentico is adding

tags and styling then i try to use

<%# Eval("NewsText") %> on a cms.News document. I am assuming this is some sort of default behavior, but how to i disable it, I don't want my text formatted the way it chooses, and I would rather avoid making a whole new document type just to stop it outputting

tags around the content. Cheers.

-Craig

Recent Answers


Brenden Kehren answered on September 16, 2014 13:30

Whats most likely happening is the end user who is entering the WYSIWYG content is wrapping it with a P tag. I believe Kentico sets the default "return" action inside the WYSIWYG editor to be a break but there is a chance the config.js file was modified and set to return a P tag.

0 votesVote for this answer Mark as a Correct answer

Jan Hermann answered on September 16, 2014 14:25

Hello,

could you please check the \CMSAdminControls\CKeditor\config.js file and change the following line to:

config.enterMode = CKEDITOR.ENTER_BR;

Best regards,
Jan Hermann

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.