Fix (basic-styles): Code should not be copied to a new line on <kbd>Enter</kbd> key. Closes #8144.
@@ -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( {
@@ -54,7 +54,7 @@ describe( 'CodeEditing', () => {
it( 'its attribute is marked with a copOnEnter property', () => {
expect( model.schema.getAttributeProperties( 'code' ) ).to.include( {