Skip to content

Commit

Permalink
Merge pull request #8408 from ckeditor/i/8144
Browse files Browse the repository at this point in the history
Fix (basic-styles): Code should not be copied to a new line on <kbd>Enter</kbd> key. Closes #8144.
  • Loading branch information
jodator authored Nov 4, 2020
2 parents 908a35a + 96472fb commit 000aeb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ckeditor5-basic-styles/src/code/codeediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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( {
Expand Down
2 changes: 1 addition & 1 deletion packages/ckeditor5-basic-styles/tests/code/codeediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
} );
} );

Expand Down

0 comments on commit 000aeb6

Please sign in to comment.