From 96472fb492ede428fef9439786e2b764b036305f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Kwa=C5=9Bnik?= Date: Tue, 3 Nov 2020 13:47:49 +0100 Subject: [PATCH] Code should not be copied to a new line on Enter --- packages/ckeditor5-basic-styles/src/code/codeediting.js | 2 +- packages/ckeditor5-basic-styles/tests/code/codeediting.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/ckeditor5-basic-styles/src/code/codeediting.js b/packages/ckeditor5-basic-styles/src/code/codeediting.js index 558cfbc199e..eebd57207c0 100644 --- a/packages/ckeditor5-basic-styles/src/code/codeediting.js +++ b/packages/ckeditor5-basic-styles/src/code/codeediting.js @@ -48,7 +48,7 @@ export default class CodeEditing extends Plugin { editor.model.schema.extend( '$text', { allowAttributes: CODE } ); editor.model.schema.setAttributeProperties( CODE, { isFormatting: true, - copyOnEnter: true + copyOnEnter: false } ); editor.conversion.attributeToElement( { diff --git a/packages/ckeditor5-basic-styles/tests/code/codeediting.js b/packages/ckeditor5-basic-styles/tests/code/codeediting.js index 26a7c8e36f6..e74a4080f21 100644 --- a/packages/ckeditor5-basic-styles/tests/code/codeediting.js +++ b/packages/ckeditor5-basic-styles/tests/code/codeediting.js @@ -54,7 +54,7 @@ describe( 'CodeEditing', () => { it( 'its attribute is marked with a copOnEnter property', () => { expect( model.schema.getAttributeProperties( 'code' ) ).to.include( { - copyOnEnter: true + copyOnEnter: false } ); } );