par
Patriboom » 26 janv. 2016, 02:28
Je crois avoir trouvé une réponse ici:
http://stackoverflow.com/questions/2547 ... n-ckeditor
en agissant sur la configuration de ckeditor.
La solution est de modifier le fichier ckeditor/config.js y ajoutant ceci:
Code : Tout sélectionner
CKEDITOR.on('instanceReady', function( ev ) {
var blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','li','blockquote','ul','ol',
'table','thead','tbody','tfoot','td','th',];
for (var i = 0; i < blockTags.length; i++)
{
ev.editor.dataProcessor.writer.setRules( blockTags[i], {
indent : false,
breakBeforeOpen : true,
breakAfterOpen : false,
breakBeforeClose : false,
breakAfterClose : true
});
}
});
Pour ma part, j'ai tout mis à
false
Je crois avoir trouvé une réponse ici: http://stackoverflow.com/questions/2547090/removing-unwanted-newline-characters-when-adding-p-in-ckeditor
en agissant sur la configuration de ckeditor.
La solution est de modifier le fichier ckeditor/config.js y ajoutant ceci:
[code]CKEDITOR.on('instanceReady', function( ev ) {
var blockTags = ['div','h1','h2','h3','h4','h5','h6','p','pre','li','blockquote','ul','ol',
'table','thead','tbody','tfoot','td','th',];
for (var i = 0; i < blockTags.length; i++)
{
ev.editor.dataProcessor.writer.setRules( blockTags[i], {
indent : false,
breakBeforeOpen : true,
breakAfterOpen : false,
breakBeforeClose : false,
breakAfterClose : true
});
}
});
[/code]
Pour ma part, j'ai tout mis à [i]false[/i]