Parcourir la source

Renamed the entire plugin to "horizontal-line".

Kamil Piechaczek il y a 6 ans
Parent
commit
6740b8c0b2
24 fichiers modifiés avec 257 ajouts et 257 suppressions
  1. 1 1
      packages/ckeditor5-horizontal-line/LICENSE.md
  2. 9 9
      packages/ckeditor5-horizontal-line/README.md
  3. 1 1
      packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-line.html
  4. 4 4
      packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-line.js
  5. 34 0
      packages/ckeditor5-horizontal-line/docs/api/horizontal-line.md
  6. 0 34
      packages/ckeditor5-horizontal-line/docs/api/horizontal-rule.md
  7. 55 0
      packages/ckeditor5-horizontal-line/docs/features/horizontal-line.md
  8. 0 55
      packages/ckeditor5-horizontal-line/docs/features/horizontal-rule.md
  9. 1 1
      packages/ckeditor5-horizontal-line/lang/contexts.json
  10. 3 3
      packages/ckeditor5-horizontal-line/package.json
  11. 7 7
      packages/ckeditor5-horizontal-line/src/horizontalline.js
  12. 19 19
      packages/ckeditor5-horizontal-line/src/horizontallinecommand.js
  13. 17 17
      packages/ckeditor5-horizontal-line/src/horizontallineediting.js
  14. 10 10
      packages/ckeditor5-horizontal-line/src/horizontallineui.js
  15. 18 0
      packages/ckeditor5-horizontal-line/tests/horizontalline.js
  16. 36 36
      packages/ckeditor5-horizontal-line/tests/horizontallinecommand.js
  17. 20 20
      packages/ckeditor5-horizontal-line/tests/horizontallineediting.js
  18. 18 18
      packages/ckeditor5-horizontal-line/tests/horizontallineui.js
  19. 0 18
      packages/ckeditor5-horizontal-line/tests/horizontalrule.js
  20. 0 0
      packages/ckeditor5-horizontal-line/tests/manual/horizontalline.html
  21. 3 3
      packages/ckeditor5-horizontal-line/tests/manual/horizontalline.js
  22. 0 0
      packages/ckeditor5-horizontal-line/tests/manual/horizontalline.md
  23. 1 1
      packages/ckeditor5-horizontal-line/theme/horizontalline.css
  24. 0 0
      packages/ckeditor5-horizontal-line/theme/icons/horizontalline.svg

+ 1 - 1
packages/ckeditor5-horizontal-line/LICENSE.md

@@ -1,7 +1,7 @@
 Software License Agreement
 ==========================
 
-**CKEditor 5 Horizontal Rule Feature**  – https://github.com/ckeditor/ckeditor5-horizontal-rule <br>
+**CKEditor 5 Horizontal Line Feature**  – https://github.com/ckeditor/ckeditor5-horizontal-line <br>
 Copyright (c) 2003-2019, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
 
 Licensed under the terms of [GNU General Public License Version 2 or later](http://www.gnu.org/licenses/gpl.html).

+ 9 - 9
packages/ckeditor5-horizontal-line/README.md

@@ -1,22 +1,22 @@
-CKEditor 5 horizontal rule feature
+CKEditor 5 horizontal line feature
 ===========================
 
-[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-horizontal-rule.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-rule)
-[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-horizontal-rule.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-horizontal-rule)
-[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-horizontal-rule/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-horizontal-rule?branch=master)
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-horizontal-line.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-line)
+[![Build Status](https://travis-ci.org/ckeditor/ckeditor5-horizontal-line.svg?branch=master)](https://travis-ci.org/ckeditor/ckeditor5-horizontal-line)
+[![Coverage Status](https://coveralls.io/repos/github/ckeditor/ckeditor5-horizontal-line/badge.svg?branch=master)](https://coveralls.io/github/ckeditor/ckeditor5-horizontal-line?branch=master)
 <br>
-[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-horizontal-rule/status.svg)](https://david-dm.org/ckeditor/ckeditor5-horizontal-rule)
-[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-horizontal-rule/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-horizontal-rule?type=dev)
+[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-horizontal-line/status.svg)](https://david-dm.org/ckeditor/ckeditor5-horizontal-line)
+[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-horizontal-line/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-horizontal-line?type=dev)
 
-This package implements horizontal rule feature for CKEditor 5.
+This package implements horizontal line feature for CKEditor 5.
 
 ## Demo
 
-Check out the demo in the [Horizontal Rule feature](https://ckeditor.com/docs/ckeditor5/latest/features/horizontal-rule.html) guide.
+Check out the demo in the [Horizontal Line feature](https://ckeditor.com/docs/ckeditor5/latest/features/horizontal-line.html) guide.
 
 ## Documentation
 
-See the [`@ckeditor/ckeditor5-horizontal-rule` package](https://ckeditor.com/docs/ckeditor5/latest/api/horizontal-rule.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
+See the [`@ckeditor/ckeditor5-horizontal-line` package](https://ckeditor.com/docs/ckeditor5/latest/api/horizontal-line.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/).
 
 ## License
 

+ 1 - 1
packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-rule.html → packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-line.html

@@ -1,4 +1,4 @@
-<div id="snippet-horizontal-rule">
+<div id="snippet-horizontal-line">
 	<h1>What is Lorem Ipsum?</h1>
 	<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry’s standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book.</p>
 	<hr>

+ 4 - 4
packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-rule.js → packages/ckeditor5-horizontal-line/docs/_snippets/features/horizontal-line.js

@@ -6,13 +6,13 @@
 /* globals window, document, console */
 
 import ClassicEditor from '@ckeditor/ckeditor5-build-classic/src/ckeditor';
-import HorizontalRule from '@ckeditor/ckeditor5-horizontal-rule/src/horizontalrule';
+import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline';
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
 
-ClassicEditor.builtinPlugins.push( HorizontalRule );
+ClassicEditor.builtinPlugins.push( HorizontalLine );
 
 ClassicEditor
-	.create( document.querySelector( '#snippet-horizontal-rule' ), {
+	.create( document.querySelector( '#snippet-horizontal-line' ), {
 		toolbar: {
 			items: [
 				'heading',
@@ -27,7 +27,7 @@ ClassicEditor
 				'imageUpload',
 				'mediaEmbed',
 				'insertTable',
-				'horizontalRule',
+				'horizontalLine',
 				'|',
 				'undo',
 				'redo',

+ 34 - 0
packages/ckeditor5-horizontal-line/docs/api/horizontal-line.md

@@ -0,0 +1,34 @@
+---
+category: api-reference
+---
+
+# Horizontal line feature for CKEditor 5
+
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-horizontal-line.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-line)
+
+This package implements the horizontal line feature for CKEditor 5.
+
+## Demo
+
+Check out the {@link features/horizontal-line#demo demo in the Horizontal line feature} guide.
+
+## Documentation
+
+See the {@link features/horizontal-line Horizontal line feature} guide and the {@link module:horizontal-line/horizontalline~HorizontalLine} plugin documentation.
+
+## Installation
+
+```bash
+npm install --save @ckeditor/ckeditor5-horizontal-line
+```
+
+## Contribute
+
+The source code of this package is available on GitHub in https://github.com/ckeditor/ckeditor5-horizontal-line.
+
+## External links
+
+* [`@ckeditor/ckeditor5-horizontal-line` on npm](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-line)
+* [`ckeditor/ckeditor5-horizontal-line` on GitHub](https://github.com/ckeditor/ckeditor5-horizontal-line)
+* [Issue tracker](https://github.com/ckeditor/ckeditor5/issues)
+* [Changelog](https://github.com/ckeditor/ckeditor5-horizontal-line/blob/master/CHANGELOG.md)

+ 0 - 34
packages/ckeditor5-horizontal-line/docs/api/horizontal-rule.md

@@ -1,34 +0,0 @@
----
-category: api-reference
----
-
-# Horizontal rule feature for CKEditor 5
-
-[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-horizontal-rule.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-rule)
-
-This package implements the horizontal rule feature for CKEditor 5.
-
-## Demo
-
-Check out the {@link features/horizontal-rule#demo demo in the Horizontal rule feature} guide.
-
-## Documentation
-
-See the {@link features/horizontal-rule Horizontal rule feature} guide and the {@link module:horizontal-rule/horizontalrule~HorizontalRule} plugin documentation.
-
-## Installation
-
-```bash
-npm install --save @ckeditor/ckeditor5-horizontal-rule
-```
-
-## Contribute
-
-The source code of this package is available on GitHub in https://github.com/ckeditor/ckeditor5-horizontal-rule.
-
-## External links
-
-* [`@ckeditor/ckeditor5-horizontal-rule` on npm](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-rule)
-* [`ckeditor/ckeditor5-horizontal-rule` on GitHub](https://github.com/ckeditor/ckeditor5-horizontal-rule)
-* [Issue tracker](https://github.com/ckeditor/ckeditor5/issues)
-* [Changelog](https://github.com/ckeditor/ckeditor5-horizontal-rule/blob/master/CHANGELOG.md)

+ 55 - 0
packages/ckeditor5-horizontal-line/docs/features/horizontal-line.md

@@ -0,0 +1,55 @@
+---
+category: features
+menu-title: Horizontal line
+---
+
+# Horizontal line
+
+The {@link module:horizontal-line/horizontalline~HorizontalLine} plugin provides a possibility to insert a horizontal line in the rich-text editor.
+
+## Demo
+
+Use the editor below to see the {@link module:horizontal-line/horizontalline~HorizontalLine} plugin in action.
+
+{@snippet features/horizontal-line}
+
+## Installation
+
+To add this feature to your rich-text editor, install the [`@ckeditor/ckeditor5-horizontal-line`](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-line) package:
+
+```bash
+npm install --save @ckeditor/ckeditor5-horizontal-line
+```
+
+And add it to your plugin list configuration:
+
+```js
+import HorizontalLine from '@ckeditor/ckeditor5-horizontal-line/src/horizontalline';
+
+ClassicEditor
+	.create( document.querySelector( '#editor' ), {
+		plugins: [ HorizontalLine, ... ],
+		toolbar: [ 'horizontalLine', ... ],
+	} )
+	.then( ... )
+	.catch( ... );
+```
+
+<info-box info>
+	Read more about {@link builds/guides/integration/installing-plugins installing plugins}.
+</info-box>
+
+## Common API
+
+The {@link module:horizontal-line/horizontalline~HorizontalLine} plugin registers the UI button component (`'horizontalLine'`) and the `'horizontalLine'` command implemented by {@link module:horizontal-line/horizontallinecommand~HorizontalLineCommand}. 
+
+The command can be executed using the {@link module:core/editor/editor~Editor#execute `editor.execute()`} method:
+
+```js
+// Inserts the horizontal line to the selected content.
+editor.execute( 'horizontalLine' );
+```
+
+## Contribute
+
+The source code of the feature is available on GitHub in https://github.com/ckeditor/ckeditor5-horizontal-line.

+ 0 - 55
packages/ckeditor5-horizontal-line/docs/features/horizontal-rule.md

@@ -1,55 +0,0 @@
----
-category: features
-menu-title: Horizontal rule
----
-
-# Horizontal rule
-
-The {@link module:horizontal-rule/horizontalrule~HorizontalRule} plugin provides a possibility to insert a horizontal rule in the rich-text editor.
-
-## Demo
-
-Use the editor below to see the {@link module:horizontal-rule/horizontalrule~HorizontalRule} plugin in action.
-
-{@snippet features/horizontal-rule}
-
-## Installation
-
-To add this feature to your rich-text editor, install the [`@ckeditor/ckeditor5-horizontal-rule`](https://www.npmjs.com/package/@ckeditor/ckeditor5-horizontal-rule) package:
-
-```bash
-npm install --save @ckeditor/ckeditor5-horizontal-rule
-```
-
-And add it to your plugin list configuration:
-
-```js
-import HorizontalRule from '@ckeditor/ckeditor5-horizontal-rule/src/horizontalrule';
-
-ClassicEditor
-	.create( document.querySelector( '#editor' ), {
-		plugins: [ HorizontalRule, ... ],
-		toolbar: [ 'horizontalRule', ... ],
-	} )
-	.then( ... )
-	.catch( ... );
-```
-
-<info-box info>
-	Read more about {@link builds/guides/integration/installing-plugins installing plugins}.
-</info-box>
-
-## Common API
-
-The {@link module:horizontal-rule/horizontalrule~HorizontalRule} plugin registers the UI button component (`'horizontalRule'`) and the `'horizontalRule'` command implemented by {@link module:horizontal-rule/horizontalrulecommand~HorizontalRuleCommand}. 
-
-The command can be executed using the {@link module:core/editor/editor~Editor#execute `editor.execute()`} method:
-
-```js
-// Inserts the horizontal rule to the selected content.
-editor.execute( 'horizontalRule' );
-```
-
-## Contribute
-
-The source code of the feature is available on GitHub in https://github.com/ckeditor/ckeditor5-horizontal-rule.

+ 1 - 1
packages/ckeditor5-horizontal-line/lang/contexts.json

@@ -1,3 +1,3 @@
 {
-	"Horizontal rule": "Horizontal rule"
+	"Horizontal line": "Horizontal line"
 }

+ 3 - 3
packages/ckeditor5-horizontal-line/package.json

@@ -1,7 +1,7 @@
 {
-  "name": "@ckeditor/ckeditor5-horizontal-rule",
+  "name": "@ckeditor/ckeditor5-horizontal-line",
   "version": "0.0.1",
-  "description": "Horizontal rule feature for CKEditor 5.",
+  "description": "Horizontal line feature for CKEditor 5.",
   "keywords": [
     "ckeditor",
     "ckeditor5",
@@ -37,7 +37,7 @@
   "bugs": "https://github.com/ckeditor/ckeditor5/issues",
   "repository": {
     "type": "git",
-    "url": "https://github.com/ckeditor/ckeditor5-horizontal-rule.git"
+    "url": "https://github.com/ckeditor/ckeditor5-horizontal-line.git"
   },
   "files": [
     "lang",

+ 7 - 7
packages/ckeditor5-horizontal-line/src/horizontalrule.js → packages/ckeditor5-horizontal-line/src/horizontalline.js

@@ -4,30 +4,30 @@
  */
 
 /**
- * @module horizontal-rule/horizontalrule
+ * @module horizontal-line/horizontalline
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import HorizontalRuleEditing from './horizontalruleediting';
-import HorizontalRuleUI from './horizontalruleui';
+import HorizontalLineEditing from './horizontallineediting';
+import HorizontalLineUI from './horizontallineui';
 
 /**
- * The horizontal rule plugin provides a possibility to insert a horizontal rule in the rich-text editor.
+ * The horizontal line plugin provides a possibility to insert a horizontal line in the rich-text editor.
  *
  * @extends module:core/plugin~Plugin
  */
-export default class HorizontalRule extends Plugin {
+export default class HorizontalLine extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
 	static get requires() {
-		return [ HorizontalRuleEditing, HorizontalRuleUI ];
+		return [ HorizontalLineEditing, HorizontalLineUI ];
 	}
 
 	/**
 	 * @inheritDoc
 	 */
 	static get pluginName() {
-		return 'HorizontalRule';
+		return 'HorizontalLine';
 	}
 }

+ 19 - 19
packages/ckeditor5-horizontal-line/src/horizontalrulecommand.js → packages/ckeditor5-horizontal-line/src/horizontallinecommand.js

@@ -4,29 +4,29 @@
  */
 
 /**
- * @module horizontal-rule/horizontalrulecommand
+ * @module horizontal-line/horizontallinecommand
  */
 
 import Command from '@ckeditor/ckeditor5-core/src/command';
 import { findOptimalInsertionPosition } from '@ckeditor/ckeditor5-widget/src/utils';
 
 /**
- * The insert a horizontal rule command.
+ * The insert a horizontal line command.
  *
- * The command is registered by the {@link module:horizontal-rule/horizontalruleediting~HorizontalRuleEditing} as `'horizontalRule'`.
+ * The command is registered by the {@link module:horizontal-line/horizontallineediting~HorizontalLineEditing} as `'horizontalLine'`.
  *
- * To insert the horizontal rule at the current selection, execute the command:
+ * To insert the horizontal line at the current selection, execute the command:
  *
- *		editor.execute( 'horizontalRule' );
+ *		editor.execute( 'horizontalLine' );
  *
  * @extends module:core/command~Command
  */
-export default class HorizontalRuleCommand extends Command {
+export default class HorizontalLineCommand extends Command {
 	/**
 	 * @inheritDoc
 	 */
 	refresh() {
-		this.isEnabled = isHorizontalRuleAllowed( this.editor.model );
+		this.isEnabled = isHorizontalLineAllowed( this.editor.model );
 	}
 
 	/**
@@ -38,16 +38,16 @@ export default class HorizontalRuleCommand extends Command {
 		const model = this.editor.model;
 
 		model.change( writer => {
-			const horizontalElement = writer.createElement( 'horizontalRule' );
+			const horizontalElement = writer.createElement( 'horizontalLine' );
 
 			model.insertContent( horizontalElement );
 
 			let nextElement = horizontalElement.nextSibling;
 
-			// Check whether an element next to the inserted horizontal rule is defined and can contain a text.
+			// Check whether an element next to the inserted horizontal line is defined and can contain a text.
 			const canSetSelection = nextElement && model.schema.checkChild( nextElement, '$text' );
 
-			// If the element is missing, but a paragraph could be inserted next to the horizontal rule, let's add it.
+			// If the element is missing, but a paragraph could be inserted next to the horizontal line, let's add it.
 			if ( !canSetSelection && model.schema.checkChild( horizontalElement.parent, 'paragraph' ) ) {
 				nextElement = writer.createElement( 'paragraph' );
 
@@ -62,28 +62,28 @@ export default class HorizontalRuleCommand extends Command {
 	}
 }
 
-// Checks if the `horizontalRule` element can be inserted at current model selection.
+// Checks if the `horizontalLine` element can be inserted at current model selection.
 //
 // @param {module:engine/model/model~Model} model
 // @returns {Boolean}
-function isHorizontalRuleAllowed( model ) {
+function isHorizontalLineAllowed( model ) {
 	const schema = model.schema;
 	const selection = model.document.selection;
 
-	return isHorizontalRuleAllowedInParent( selection, schema, model ) &&
+	return isHorizontalLineAllowedInParent( selection, schema, model ) &&
 		!checkSelectionOnObject( selection, schema );
 }
 
-// Checks if horizontal rule is allowed by schema in optimal insertion parent.
+// Checks if horizontal line is allowed by schema in optimal insertion parent.
 //
 // @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} selection
 // @param {module:engine/model/schema~Schema} schema
 // @param {module:engine/model/model~Model} model Model instance.
 // @returns {Boolean}
-function isHorizontalRuleAllowedInParent( selection, schema, model ) {
-	const parent = getInsertHorizontalRuleParent( selection, model );
+function isHorizontalLineAllowedInParent( selection, schema, model ) {
+	const parent = getInsertHorizontalLineParent( selection, model );
 
-	return schema.checkChild( parent, 'horizontalRule' );
+	return schema.checkChild( parent, 'horizontalLine' );
 }
 
 // Check if selection is on object.
@@ -97,12 +97,12 @@ function checkSelectionOnObject( selection, schema ) {
 	return selectedElement && schema.isObject( selectedElement );
 }
 
-// Returns a node that will be used to insert horizontal rule with `model.insertContent` to check if horizontal rule can be placed there.
+// Returns a node that will be used to insert horizontal line with `model.insertContent` to check if horizontal line can be placed there.
 //
 // @param {module:engine/model/selection~Selection|module:engine/model/documentselection~DocumentSelection} selection
 // @param {module:engine/model/model~Model} model Model instance.
 // @returns {module:engine/model/element~Element}
-function getInsertHorizontalRuleParent( selection, model ) {
+function getInsertHorizontalLineParent( selection, model ) {
 	const insertAt = findOptimalInsertionPosition( selection, model );
 
 	const parent = insertAt.parent;

+ 17 - 17
packages/ckeditor5-horizontal-line/src/horizontalruleediting.js → packages/ckeditor5-horizontal-line/src/horizontallineediting.js

@@ -4,21 +4,21 @@
  */
 
 /**
- * @module horizontal-rule/horizontalruleediting
+ * @module horizontal-line/horizontallineediting
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
-import HorizontalRuleCommand from './horizontalrulecommand';
+import HorizontalLineCommand from './horizontallinecommand';
 import { toWidget } from '@ckeditor/ckeditor5-widget/src/utils';
 
-import '../theme/horizontalrule.css';
+import '../theme/horizontalline.css';
 
 /**
- * The horizontal rule editing feature.
+ * The horizontal line editing feature.
  *
  * @extends module:core/plugin~Plugin
  */
-export default class HorizontalRuleEditing extends Plugin {
+export default class HorizontalLineEditing extends Plugin {
 	/**
 	 * @inheritDoc
 	 */
@@ -28,51 +28,51 @@ export default class HorizontalRuleEditing extends Plugin {
 		const t = editor.t;
 		const conversion = editor.conversion;
 
-		schema.register( 'horizontalRule', {
+		schema.register( 'horizontalLine', {
 			isObject: true,
 			allowWhere: '$block'
 		} );
 
 		conversion.for( 'dataDowncast' ).elementToElement( {
-			model: 'horizontalRule',
+			model: 'horizontalLine',
 			view: ( modelElement, viewWriter ) => {
 				return viewWriter.createEmptyElement( 'hr' );
 			}
 		} );
 
 		conversion.for( 'editingDowncast' ).elementToElement( {
-			model: 'horizontalRule',
+			model: 'horizontalLine',
 			view: ( modelElement, viewWriter ) => {
-				const label = t( 'Horizontal rule' );
+				const label = t( 'Horizontal line' );
 				const viewWrapper = viewWriter.createContainerElement( 'div' );
 				const viewHrElement = viewWriter.createEmptyElement( 'hr' );
 
-				viewWriter.addClass( 'ck-horizontal-rule', viewWrapper );
+				viewWriter.addClass( 'ck-horizontal-line', viewWrapper );
 				viewWriter.setCustomProperty( 'hr', true, viewWrapper );
 
 				viewWriter.insert( viewWriter.createPositionAt( viewWrapper, 0 ), viewHrElement );
 
-				return toHorizontalRuleWidget( viewWrapper, viewWriter, label );
+				return toHorizontalLineWidget( viewWrapper, viewWriter, label );
 			}
 		} );
 
-		conversion.for( 'upcast' ).elementToElement( { view: 'hr', model: 'horizontalRule' } );
+		conversion.for( 'upcast' ).elementToElement( { view: 'hr', model: 'horizontalLine' } );
 
-		editor.commands.add( 'horizontalRule', new HorizontalRuleCommand( editor ) );
+		editor.commands.add( 'horizontalLine', new HorizontalLineCommand( editor ) );
 	}
 }
 
-// Converts a given {@link module:engine/view/element~Element} to a horizontal rule widget:
+// Converts a given {@link module:engine/view/element~Element} to a horizontal line widget:
 // * Adds a {@link module:engine/view/element~Element#_setCustomProperty custom property} allowing to
-//   recognize the horizontal rule widget element.
+//   recognize the horizontal line widget element.
 // * Calls the {@link module:widget/utils~toWidget} function with the proper element's label creator.
 //
 //  @param {module:engine/view/element~Element} viewElement
 //  @param {module:engine/view/downcastwriter~DowncastWriter} writer An instance of the view writer.
 //  @param {String} label The element's label.
 //  @returns {module:engine/view/element~Element}
-function toHorizontalRuleWidget( viewElement, writer, label ) {
-	writer.setCustomProperty( 'horizontalRule', true, viewElement );
+function toHorizontalLineWidget( viewElement, writer, label ) {
+	writer.setCustomProperty( 'horizontalLine', true, viewElement );
 
 	return toWidget( viewElement, writer, { label } );
 }

+ 10 - 10
packages/ckeditor5-horizontal-line/src/horizontalruleui.js → packages/ckeditor5-horizontal-line/src/horizontallineui.js

@@ -4,38 +4,38 @@
  */
 
 /**
- * @module horizontal-rule/horizontalruleui
+ * @module horizontal-line/horizontallineui
  */
 
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-import horizontalRuleIcon from '../theme/icons/horizontalrule.svg';
+import horizontalLineIcon from '../theme/icons/horizontalline.svg';
 
 /**
- * The horizontal rule UI plugin.
+ * The horizontal line UI plugin.
  *
  * @extends module:core/plugin~Plugin
  */
-export default class HorizontalRuleUI extends Plugin {
+export default class HorizontalLineUI extends Plugin {
 	init() {
 		const editor = this.editor;
 		const t = editor.t;
 
-		// Add horizontalRule button to feature components.
-		editor.ui.componentFactory.add( 'horizontalRule', locale => {
-			const command = editor.commands.get( 'horizontalRule' );
+		// Add horizontalLine button to feature components.
+		editor.ui.componentFactory.add( 'horizontalLine', locale => {
+			const command = editor.commands.get( 'horizontalLine' );
 			const view = new ButtonView( locale );
 
 			view.set( {
-				label: t( 'Horizontal rule' ),
-				icon: horizontalRuleIcon,
+				label: t( 'Horizontal line' ),
+				icon: horizontalLineIcon,
 				tooltip: true
 			} );
 
 			view.bind( 'isEnabled' ).to( command, 'isEnabled' );
 
 			// Execute command.
-			this.listenTo( view, 'execute', () => editor.execute( 'horizontalRule' ) );
+			this.listenTo( view, 'execute', () => editor.execute( 'horizontalLine' ) );
 
 			return view;
 		} );

+ 18 - 0
packages/ckeditor5-horizontal-line/tests/horizontalline.js

@@ -0,0 +1,18 @@
+/**
+ * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
+ * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
+ */
+
+import HorizontalLine from '../src/horizontalline';
+import HorizontalLineEditing from '../src/horizontallineediting';
+import HorizontalLineUI from '../src/horizontallineui';
+
+describe( 'HorizontalLine', () => {
+	it( 'should require HorizontalLineEditing and HorizontalLineUI', () => {
+		expect( HorizontalLine.requires ).to.deep.equal( [ HorizontalLineEditing, HorizontalLineUI ] );
+	} );
+
+	it( 'should be named', () => {
+		expect( HorizontalLine.pluginName ).to.equal( 'HorizontalLine' );
+	} );
+} );

+ 36 - 36
packages/ckeditor5-horizontal-line/tests/horizontalrulecommand.js → packages/ckeditor5-horizontal-line/tests/horizontallinecommand.js

@@ -9,9 +9,9 @@ import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictest
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
-import HorizontalRuleEditing from '../src/horizontalruleediting';
+import HorizontalLineEditing from '../src/horizontallineediting';
 
-describe( 'HorizontalRuleCommand', () => {
+describe( 'HorizontalLineCommand', () => {
 	let editor, model, editorElement, command;
 
 	testUtils.createSinonSandbox();
@@ -22,12 +22,12 @@ describe( 'HorizontalRuleCommand', () => {
 
 		return ClassicTestEditor
 			.create( editorElement, {
-				plugins: [ Paragraph, HorizontalRuleEditing ]
+				plugins: [ Paragraph, HorizontalLineEditing ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
 				model = editor.model;
-				command = editor.commands.get( 'horizontalRule' );
+				command = editor.commands.get( 'horizontalLine' );
 			} );
 	} );
 
@@ -68,8 +68,8 @@ describe( 'HorizontalRuleCommand', () => {
 			expect( command.isEnabled ).to.be.true;
 		} );
 
-		it( 'should be false when the selection is on other horizontal rule element', () => {
-			setModelData( model, '[<horizontalRule></horizontalRule>]' );
+		it( 'should be false when the selection is on other horizontal line element', () => {
+			setModelData( model, '[<horizontalLine></horizontalLine>]' );
 			expect( command.isEnabled ).to.be.false;
 		} );
 
@@ -81,7 +81,7 @@ describe( 'HorizontalRuleCommand', () => {
 			expect( command.isEnabled ).to.be.false;
 		} );
 
-		it( 'should be true when the selection is inside block element inside isLimit element which allows horizontal rule', () => {
+		it( 'should be true when the selection is inside block element inside isLimit element which allows horizontal line', () => {
 			model.schema.register( 'table', { allowWhere: '$block', isLimit: true, isObject: true, isBlock: true } );
 			model.schema.register( 'tableRow', { allowIn: 'table', isLimit: true } );
 			model.schema.register( 'tableCell', { allowIn: 'tableRow', isLimit: true } );
@@ -93,12 +93,12 @@ describe( 'HorizontalRuleCommand', () => {
 			setModelData( model, '<table><tableRow><tableCell><paragraph>foo[]</paragraph></tableCell></tableRow></table>' );
 		} );
 
-		it( 'should be false when schema disallows horizontal rule', () => {
+		it( 'should be false when schema disallows horizontal line', () => {
 			model.schema.register( 'block', { inheritAllFrom: '$block' } );
 			model.schema.extend( 'paragraph', { allowIn: 'block' } );
-			// Block horizontal rule in block.
+			// Block horizontal line in block.
 			model.schema.addChildCheck( ( context, childDefinition ) => {
-				if ( childDefinition.name === 'horizontalRule' && context.last.name === 'block' ) {
+				if ( childDefinition.name === 'horizontalLine' && context.last.name === 'block' ) {
 					return false;
 				}
 			} );
@@ -131,7 +131,7 @@ describe( 'HorizontalRuleCommand', () => {
 			sinon.assert.calledOnce( spy );
 		} );
 
-		it( 'should insert a horizontal rule in an empty root and select it (a paragraph cannot be inserted)', () => {
+		it( 'should insert a horizontal line in an empty root and select it (a paragraph cannot be inserted)', () => {
 			// Block a paragraph in $root.
 			model.schema.addChildCheck( ( context, childDefinition ) => {
 				if ( childDefinition.name === 'paragraph' && context.last.name === '$root' ) {
@@ -143,116 +143,116 @@ describe( 'HorizontalRuleCommand', () => {
 
 			command.execute();
 
-			expect( getModelData( model ) ).to.equal( '[<horizontalRule></horizontalRule>]' );
+			expect( getModelData( model ) ).to.equal( '[<horizontalLine></horizontalLine>]' );
 		} );
 
-		it( 'should split an element where selection is placed and insert a horizontal rule (non-collapsed selection)', () => {
+		it( 'should split an element where selection is placed and insert a horizontal line (non-collapsed selection)', () => {
 			setModelData( model, '<paragraph>f[o]o</paragraph>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>f</paragraph><horizontalRule></horizontalRule><paragraph>[]o</paragraph>'
+				'<paragraph>f</paragraph><horizontalLine></horizontalLine><paragraph>[]o</paragraph>'
 			);
 		} );
 
-		it( 'should split an element where selection is placed and insert a horizontal rule (collapsed selection)', () => {
+		it( 'should split an element where selection is placed and insert a horizontal line (collapsed selection)', () => {
 			setModelData( model, '<paragraph>fo[]o</paragraph>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>fo</paragraph><horizontalRule></horizontalRule><paragraph>[]o</paragraph>'
+				'<paragraph>fo</paragraph><horizontalLine></horizontalLine><paragraph>[]o</paragraph>'
 			);
 		} );
 
-		it( 'should create an empty paragraph after inserting a horizontal rule after a paragraph and place selection inside', () => {
+		it( 'should create an empty paragraph after inserting a horizontal line after a paragraph and place selection inside', () => {
 			setModelData( model, '<paragraph>foo[]</paragraph>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>foo</paragraph><horizontalRule></horizontalRule><paragraph>[]</paragraph>'
+				'<paragraph>foo</paragraph><horizontalLine></horizontalLine><paragraph>[]</paragraph>'
 			);
 		} );
 
-		it( 'should create an empty paragraph after inserting a horizontal rule after a heading and place selection inside', () => {
+		it( 'should create an empty paragraph after inserting a horizontal line after a heading and place selection inside', () => {
 			setModelData( model, '<heading1>foo[]</heading1>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<heading1>foo</heading1><horizontalRule></horizontalRule><paragraph>[]</paragraph>'
+				'<heading1>foo</heading1><horizontalLine></horizontalLine><paragraph>[]</paragraph>'
 			);
 		} );
 
-		it( 'should create an empty paragraph after inserting a horizontal rule and next element must not having text', () => {
+		it( 'should create an empty paragraph after inserting a horizontal line and next element must not having text', () => {
 			setModelData( model, '<paragraph>foo[]</paragraph><media></media>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>foo</paragraph><horizontalRule></horizontalRule><paragraph>[]</paragraph><media></media>'
+				'<paragraph>foo</paragraph><horizontalLine></horizontalLine><paragraph>[]</paragraph><media></media>'
 			);
 		} );
 
-		it( 'should create an empty paragraph after inserting a horizontal rule in heading and next element must not having text', () => {
+		it( 'should create an empty paragraph after inserting a horizontal line in heading and next element must not having text', () => {
 			setModelData( model, '<heading1>foo[]</heading1><media></media>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<heading1>foo</heading1><horizontalRule></horizontalRule><paragraph>[]</paragraph><media></media>'
+				'<heading1>foo</heading1><horizontalLine></horizontalLine><paragraph>[]</paragraph><media></media>'
 			);
 		} );
 
-		it( 'should not create an empty paragraph if a horizontal rule split an element with text', () => {
+		it( 'should not create an empty paragraph if a horizontal line split an element with text', () => {
 			setModelData( model, '<heading1>foo[]bar</heading1>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<heading1>foo</heading1><horizontalRule></horizontalRule><heading1>[]bar</heading1>'
+				'<heading1>foo</heading1><horizontalLine></horizontalLine><heading1>[]bar</heading1>'
 			);
 		} );
 
-		it( 'should replace an empty paragraph with a horizontal rule and insert another paragraph next to', () => {
+		it( 'should replace an empty paragraph with a horizontal line and insert another paragraph next to', () => {
 			setModelData( model, '<paragraph>[]</paragraph>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<horizontalRule></horizontalRule><paragraph>[]</paragraph>'
+				'<horizontalLine></horizontalLine><paragraph>[]</paragraph>'
 			);
 		} );
 
-		it( 'should replace an empty paragraph with a horizontal rule and move the selection to next paragraph', () => {
+		it( 'should replace an empty paragraph with a horizontal line and move the selection to next paragraph', () => {
 			setModelData( model, '<paragraph>foo</paragraph><paragraph>[]</paragraph><paragraph>bar</paragraph>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>foo</paragraph><horizontalRule></horizontalRule><paragraph>[]bar</paragraph>'
+				'<paragraph>foo</paragraph><horizontalLine></horizontalLine><paragraph>[]bar</paragraph>'
 			);
 		} );
 
-		it( 'should replace an empty paragraph with a horizontal rule and move the selection to next element that has text', () => {
+		it( 'should replace an empty paragraph with a horizontal line and move the selection to next element that has text', () => {
 			setModelData( model, '<paragraph>foo</paragraph><paragraph>[]</paragraph><heading1>bar</heading1>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>foo</paragraph><horizontalRule></horizontalRule><heading1>[]bar</heading1>'
+				'<paragraph>foo</paragraph><horizontalLine></horizontalLine><heading1>[]bar</heading1>'
 			);
 		} );
 
-		it( 'should replace an empty block element with a horizontal rule and insert a paragraph next to', () => {
+		it( 'should replace an empty block element with a horizontal line and insert a paragraph next to', () => {
 			setModelData( model, '<heading1>[]</heading1>' );
 
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<horizontalRule></horizontalRule><paragraph>[]</paragraph>'
+				'<horizontalLine></horizontalLine><paragraph>[]</paragraph>'
 			);
 		} );
 
@@ -262,7 +262,7 @@ describe( 'HorizontalRuleCommand', () => {
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<paragraph>foo</paragraph><horizontalRule></horizontalRule><heading1>[]bar</heading1>'
+				'<paragraph>foo</paragraph><horizontalLine></horizontalLine><heading1>[]bar</heading1>'
 			);
 		} );
 
@@ -272,7 +272,7 @@ describe( 'HorizontalRuleCommand', () => {
 			command.execute();
 
 			expect( getModelData( model ) ).to.equal(
-				'<heading1>foo</heading1><horizontalRule></horizontalRule><paragraph>[]bar</paragraph>'
+				'<heading1>foo</heading1><horizontalLine></horizontalLine><paragraph>[]bar</paragraph>'
 			);
 		} );
 	} );

+ 20 - 20
packages/ckeditor5-horizontal-line/tests/horizontalruleediting.js → packages/ckeditor5-horizontal-line/tests/horizontallineediting.js

@@ -4,15 +4,15 @@
  */
 
 import VirtualTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/virtualtesteditor';
-import HorizontalRuleEditing from '../src/horizontalruleediting';
-import HorizontalRuleCommand from '../src/horizontalrulecommand';
+import HorizontalLineEditing from '../src/horizontallineediting';
+import HorizontalLineCommand from '../src/horizontallinecommand';
 import { getData as getModelData, setData as setModelData } from '@ckeditor/ckeditor5-engine/src/dev-utils/model';
 import { getData as getViewData } from '@ckeditor/ckeditor5-engine/src/dev-utils/view';
 import { isWidget } from '@ckeditor/ckeditor5-widget/src/utils';
 import env from '@ckeditor/ckeditor5-utils/src/env';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
-describe( 'HorizontalRuleEditing', () => {
+describe( 'HorizontalLineEditing', () => {
 	let editor, model, view, viewDocument;
 
 	testUtils.createSinonSandbox();
@@ -23,7 +23,7 @@ describe( 'HorizontalRuleEditing', () => {
 
 		return VirtualTestEditor
 			.create( {
-				plugins: [ HorizontalRuleEditing ]
+				plugins: [ HorizontalLineEditing ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
@@ -34,26 +34,26 @@ describe( 'HorizontalRuleEditing', () => {
 	} );
 
 	it( 'should be loaded', () => {
-		expect( editor.plugins.get( HorizontalRuleEditing ) ).to.be.instanceOf( HorizontalRuleEditing );
+		expect( editor.plugins.get( HorizontalLineEditing ) ).to.be.instanceOf( HorizontalLineEditing );
 	} );
 
-	it( 'should set proper schema rules', () => {
-		expect( model.schema.checkChild( [ '$root' ], 'horizontalRule' ) ).to.be.true;
+	it( 'should set proper schema lines', () => {
+		expect( model.schema.checkChild( [ '$root' ], 'horizontalLine' ) ).to.be.true;
 
-		expect( model.schema.isObject( 'horizontalRule' ) ).to.be.true;
+		expect( model.schema.isObject( 'horizontalLine' ) ).to.be.true;
 
-		expect( model.schema.checkChild( [ '$root', 'horizontalRule' ], '$text' ) ).to.be.false;
-		expect( model.schema.checkChild( [ '$root', '$block' ], 'horizontalRule' ) ).to.be.false;
+		expect( model.schema.checkChild( [ '$root', 'horizontalLine' ], '$text' ) ).to.be.false;
+		expect( model.schema.checkChild( [ '$root', '$block' ], 'horizontalLine' ) ).to.be.false;
 	} );
 
 	it( 'should register imageInsert command', () => {
-		expect( editor.commands.get( 'horizontalRule' ) ).to.be.instanceOf( HorizontalRuleCommand );
+		expect( editor.commands.get( 'horizontalLine' ) ).to.be.instanceOf( HorizontalLineCommand );
 	} );
 
 	describe( 'conversion in data pipeline', () => {
 		describe( 'model to view', () => {
 			it( 'should convert', () => {
-				setModelData( model, '<horizontalRule></horizontalRule>' );
+				setModelData( model, '<horizontalLine></horizontalLine>' );
 
 				expect( editor.getData() ).to.equal( '<hr>' );
 			} );
@@ -64,13 +64,13 @@ describe( 'HorizontalRuleEditing', () => {
 				editor.setData( '<hr>' );
 
 				expect( getModelData( model, { withoutSelection: true } ) )
-					.to.equal( '<horizontalRule></horizontalRule>' );
+					.to.equal( '<horizontalLine></horizontalLine>' );
 			} );
 
 			it( 'should not convert in wrong context', () => {
 				model.schema.register( 'div', { inheritAllFrom: '$block' } );
 				model.schema.addChildCheck( ( ctx, childDef ) => {
-					if ( ctx.endsWith( '$root' ) && childDef.name == 'horizontalRule' ) {
+					if ( ctx.endsWith( '$root' ) && childDef.name == 'horizontalLine' ) {
 						return false;
 					}
 				} );
@@ -88,24 +88,24 @@ describe( 'HorizontalRuleEditing', () => {
 	describe( 'conversion in editing pipeline', () => {
 		describe( 'model to view', () => {
 			it( 'should convert', () => {
-				setModelData( model, '<horizontalRule></horizontalRule>' );
+				setModelData( model, '<horizontalLine></horizontalLine>' );
 
 				expect( getViewData( view, { withoutSelection: true } ) ).to.equal(
-					'<div class="ck-horizontal-rule ck-widget" contenteditable="false"><hr></hr></div>'
+					'<div class="ck-horizontal-line ck-widget" contenteditable="false"><hr></hr></div>'
 				);
 			} );
 
 			it( 'converted element should be widgetized', () => {
-				setModelData( model, '<horizontalRule></horizontalRule>' );
+				setModelData( model, '<horizontalLine></horizontalLine>' );
 				const widget = viewDocument.getRoot().getChild( 0 );
 
 				expect( widget.name ).to.equal( 'div' );
-				expect( isHorizontalRuleWidget( widget ) ).to.be.true;
+				expect( isHorizontalLineWidget( widget ) ).to.be.true;
 			} );
 		} );
 	} );
 
-	function isHorizontalRuleWidget( viewElement ) {
-		return !!viewElement.getCustomProperty( 'horizontalRule' ) && isWidget( viewElement );
+	function isHorizontalLineWidget( viewElement ) {
+		return !!viewElement.getCustomProperty( 'horizontalLine' ) && isWidget( viewElement );
 	}
 } );

+ 18 - 18
packages/ckeditor5-horizontal-line/tests/horizontalruleui.js → packages/ckeditor5-horizontal-line/tests/horizontallineui.js

@@ -6,15 +6,15 @@
 /* globals document */
 
 import ClassicTestEditor from '@ckeditor/ckeditor5-core/tests/_utils/classictesteditor';
-import HorizontalRuleEditing from '../src/horizontalruleediting';
-import HorizontalRuleUI from '../src/horizontalruleui';
+import HorizontalLineEditing from '../src/horizontallineediting';
+import HorizontalLineUI from '../src/horizontallineui';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
 import testUtils from '@ckeditor/ckeditor5-core/tests/_utils/utils';
 
 import Paragraph from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
-describe( 'HorizontalRuleUI', () => {
-	let editor, editorElement, horizontalRuleView;
+describe( 'HorizontalLineUI', () => {
+	let editor, editorElement, horizontalLineView;
 
 	testUtils.createSinonSandbox();
 
@@ -24,12 +24,12 @@ describe( 'HorizontalRuleUI', () => {
 
 		return ClassicTestEditor
 			.create( editorElement, {
-				plugins: [ Paragraph, HorizontalRuleEditing, HorizontalRuleUI ]
+				plugins: [ Paragraph, HorizontalLineEditing, HorizontalLineUI ]
 			} )
 			.then( newEditor => {
 				editor = newEditor;
 
-				horizontalRuleView = editor.ui.componentFactory.create( 'horizontalRule' );
+				horizontalLineView = editor.ui.componentFactory.create( 'horizontalLine' );
 			} );
 	} );
 
@@ -40,28 +40,28 @@ describe( 'HorizontalRuleUI', () => {
 			} );
 	} );
 
-	it( 'should register horizontalRule feature component', () => {
-		expect( horizontalRuleView ).to.be.instanceOf( ButtonView );
-		expect( horizontalRuleView.label ).to.equal( 'Horizontal rule' );
-		expect( horizontalRuleView.icon ).to.match( /<svg / );
-		expect( horizontalRuleView.isToggleable ).to.be.false;
+	it( 'should register horizontalLine feature component', () => {
+		expect( horizontalLineView ).to.be.instanceOf( ButtonView );
+		expect( horizontalLineView.label ).to.equal( 'Horizontal line' );
+		expect( horizontalLineView.icon ).to.match( /<svg / );
+		expect( horizontalLineView.isToggleable ).to.be.false;
 	} );
 
-	it( 'should execute horizontalRule command on model execute event', () => {
+	it( 'should execute horizontalLine command on model execute event', () => {
 		const executeSpy = testUtils.sinon.spy( editor, 'execute' );
 
-		horizontalRuleView.fire( 'execute' );
+		horizontalLineView.fire( 'execute' );
 
 		sinon.assert.calledOnce( executeSpy );
-		sinon.assert.calledWithExactly( executeSpy, 'horizontalRule' );
+		sinon.assert.calledWithExactly( executeSpy, 'horizontalLine' );
 	} );
 
-	it( 'should bind model to horizontalRule command', () => {
-		const command = editor.commands.get( 'horizontalRule' );
+	it( 'should bind model to horizontalLine command', () => {
+		const command = editor.commands.get( 'horizontalLine' );
 
-		expect( horizontalRuleView.isEnabled ).to.be.true;
+		expect( horizontalLineView.isEnabled ).to.be.true;
 
 		command.isEnabled = false;
-		expect( horizontalRuleView.isEnabled ).to.be.false;
+		expect( horizontalLineView.isEnabled ).to.be.false;
 	} );
 } );

+ 0 - 18
packages/ckeditor5-horizontal-line/tests/horizontalrule.js

@@ -1,18 +0,0 @@
-/**
- * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
- */
-
-import HorizontalRule from '../src/horizontalrule';
-import HorizontalRuleEditing from '../src/horizontalruleediting';
-import HorizontalRuleUI from '../src/horizontalruleui';
-
-describe( 'HorizontalRule', () => {
-	it( 'should require HorizontalRuleEditing and HorizontalRuleUI', () => {
-		expect( HorizontalRule.requires ).to.deep.equal( [ HorizontalRuleEditing, HorizontalRuleUI ] );
-	} );
-
-	it( 'should be named', () => {
-		expect( HorizontalRule.pluginName ).to.equal( 'HorizontalRule' );
-	} );
-} );

+ 0 - 0
packages/ckeditor5-horizontal-line/tests/manual/horizontalrule.html → packages/ckeditor5-horizontal-line/tests/manual/horizontalline.html


+ 3 - 3
packages/ckeditor5-horizontal-line/tests/manual/horizontalrule.js → packages/ckeditor5-horizontal-line/tests/manual/horizontalline.js

@@ -10,12 +10,12 @@ import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articleplugi
 import ImageUpload from '@ckeditor/ckeditor5-image/src/imageupload';
 import EasyImage from '@ckeditor/ckeditor5-easy-image/src/easyimage';
 import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config';
-import HorizontalRule from '../../src/horizontalrule';
+import HorizontalLine from '../../src/horizontalline';
 
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
 		cloudServices: CS_CONFIG,
-		plugins: [ ArticlePluginSet, ImageUpload, EasyImage, HorizontalRule ],
+		plugins: [ ArticlePluginSet, ImageUpload, EasyImage, HorizontalLine ],
 		toolbar: [
 			'heading',
 			'|',
@@ -25,7 +25,7 @@ ClassicEditor
 			'|',
 			'undo', 'redo',
 			'|',
-			'horizontalRule'
+			'horizontalLine'
 		],
 		image: {
 			styles: [

+ 0 - 0
packages/ckeditor5-horizontal-line/tests/manual/horizontalrule.md → packages/ckeditor5-horizontal-line/tests/manual/horizontalline.md


+ 1 - 1
packages/ckeditor5-horizontal-line/theme/horizontalrule.css → packages/ckeditor5-horizontal-line/theme/horizontalline.css

@@ -3,7 +3,7 @@
  * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
  */
 
-.ck .ck-horizontal-rule {
+.ck .ck-horizontal-line {
 	/* Handle proper `<hr>` display next to elements with `float` property, e.g. side image case. */
 	overflow: hidden;
 	padding: 5px 0;

+ 0 - 0
packages/ckeditor5-horizontal-line/theme/icons/horizontalrule.svg → packages/ckeditor5-horizontal-line/theme/icons/horizontalline.svg