I am setting the input to editor from back-end. When i give an set of paragraph values, it automatically inserting the <p> </p>. How can i avoid this insertion of tag.
My input was like:
then it changed to like this:
Can any one help me..
My input was like:
<p>A wolf wants to eat the girl but is afraid to do so in public. He approaches the girl, and she naïvely tells him where she is going. <p>He suggests the girl pick some flowers, which she does. In the meantime, he goes to the grandmother's house and gains entry by pretending to be the girl.</p> He swallows the grandmother whole, and waits for the girl, disguised as the grandmother.</p>
then it changed to like this:
<p> A wolf wants to eat the girl but is afraid to do so in public. He approaches the girl, and she naïvely tells him where she is going.</p> <p> He suggests the girl pick some flowers, which she does. In the meantime, he goes to the grandmother's house and gains entry by pretending to be the girl.</p> <p> He swallows the grandmother whole, and waits for the girl, disguised as the grandmother.</p> <p> </p>
Can any one help me..
Re: How to avoid automatically inserting <p>&nbsp;<
Again, go over some forum posts.
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: How to avoid automatically inserting <p>&nbsp;<
Re: How to avoid automatically inserting <p>&nbsp;<
Is there a way to avoid to have all images wrapped in paragraphs?
is always set as
unless I manually delete all the <p></p> from source... which is not really easy... (setting enter to enter a <br/> or a <div> is not really a solution...)
My paragraphs have a padding I don't want to apply to images...
Working this out is kinda hard without css4 ancestor selection...
Re: How to avoid automatically inserting <p>&nbsp;<
CKEDITOR.on( 'instanceReady', function( ev )
{
ev.editor.dataProcessor.writer.setRules( 'p',
{
indent : false,
breakBeforeOpen : false,
breakAfterOpen : false,
breakBeforeClose : false,
breakAfterClose : false
});
});