X-Git-Url: https://git.immae.eu/?p=perso%2FImmae%2FProjets%2Fpackagist%2Fpiedsjaloux-ckeditor-component.git;a=blobdiff_plain;f=sources%2Fplugins%2Findentblock%2Fplugin.js;h=b39fd73defac986859651ad36d7aab6235127de6;hp=9d31b983e0292df07a69934f95c2fa8327ff285d;hb=refs%2Ftags%2F4.7.3;hpb=1096cdefb1c9a3f3c4ca6807e272da6c92e5ed9c diff --git a/sources/plugins/indentblock/plugin.js b/sources/plugins/indentblock/plugin.js index 9d31b98..b39fd73 100644 --- a/sources/plugins/indentblock/plugin.js +++ b/sources/plugins/indentblock/plugin.js @@ -1,5 +1,5 @@ /** - * @license Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved. + * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved. * For licensing, see LICENSE.md or http://ckeditor.com/license */ @@ -39,6 +39,20 @@ } }; + this.contentTransformations = [ + [ 'div: splitMarginShorthand' ], + [ 'h1: splitMarginShorthand' ], + [ 'h2: splitMarginShorthand' ], + [ 'h3: splitMarginShorthand' ], + [ 'h4: splitMarginShorthand' ], + [ 'h5: splitMarginShorthand' ], + [ 'h6: splitMarginShorthand' ], + [ 'ol: splitMarginShorthand' ], + [ 'p: splitMarginShorthand' ], + [ 'pre: splitMarginShorthand' ], + [ 'ul: splitMarginShorthand' ] + ]; + if ( this.enterBr ) this.allowedContent.div = true;