Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into t/ckeditor5/488
Browse files Browse the repository at this point in the history
  • Loading branch information
scofalik committed Feb 22, 2018
2 parents 0cc8d1c + 263707b commit ec4f30f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
8 changes: 1 addition & 7 deletions src/headingediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
import { elementToElement } from '@ckeditor/ckeditor5-engine/src/conversion/two-way-converters';

import HeadingCommand from './headingcommand';

const defaultModelElement = 'paragraph';
Expand Down Expand Up @@ -61,11 +59,7 @@ export default class HeadingEditing extends Plugin {
inheritAllFrom: '$block'
} );

elementToElement( editor.conversion, {
model: option.model,
view: option.view,
upcastAlso: option.upcastAlso
} );
editor.conversion.elementToElement( option );

// Register the heading command for this option.
editor.commands.add( option.model, new HeadingCommand( editor, option.model ) );
Expand Down
3 changes: 2 additions & 1 deletion tests/headingediting.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ describe( 'HeadingEditing', () => {
upcastAlso: [
{ name: 'p', attribute: { 'data-heading': 'h1' } }
],
title: 'User H1'
title: 'User H1',
priority: 'high'
}
]
}
Expand Down
7 changes: 0 additions & 7 deletions theme/heading.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,6 @@
font-size: 14px;
}

/* Using absolute units to make sure each element has the same height and padding.
https://github.com/ckeditor/ckeditor5-heading/issues/63 */
[class*="ck-heading_"] {
line-height: 18px;
padding: 11px;
}

[class*="ck-heading_heading"] {
font-weight: bold;
}

0 comments on commit ec4f30f

Please sign in to comment.