8
0
Просмотр исходного кода

Other: The build name has been changed from `@ckeditor/ckeditor5-build-balloon-toolbar` to `@ckeditor/ckeditor5-build-balloon`. See ckeditor/ckeditor5#546 for more information.

BREAKING CHANGE: The build name has been changed. See ckeditor/ckeditor5#546.
Piotrek Koszuliński 8 лет назад
Родитель
Сommit
c293614fea

+ 1 - 1
packages/ckeditor5-build-balloon/CHANGELOG.md

@@ -5,4 +5,4 @@ Changelog
 
 ### Features
 
-* Introduced the editor with a balloon toolbar build. ([82fe8d5](https://github.com/ckeditor/ckeditor5-build-balloon-toolbar/commit/82fe8d5))
+* Introduced the balloon editor build. ([82fe8d5](https://github.com/ckeditor/ckeditor5-build-balloon/commit/82fe8d5))

+ 1 - 1
packages/ckeditor5-build-balloon/LICENSE.md

@@ -1,7 +1,7 @@
 Software License Agreement
 ==========================
 
-**CKEditor 5 editor with a balloon toolbar build** – https://github.com/ckeditor/ckeditor5-build-balloon-toolbar <br>
+**CKEditor 5 balloon editor build** – https://github.com/ckeditor/ckeditor5-build-balloon <br>
 Copyright (c) 2003-2017, [CKSource](http://cksource.com) Frederico Knabben. All rights reserved.
 
 Licensed under the terms of any of the following licenses at your choice:

+ 11 - 11
packages/ckeditor5-build-balloon/README.md

@@ -1,12 +1,12 @@
-CKEditor 5 editor with a balloon toolbar build
+CKEditor 5 balloon editor build
 ==============================================
 
 [![Join the chat at https://gitter.im/ckeditor/ckeditor5](https://badges.gitter.im/ckeditor/ckeditor5.svg)](https://gitter.im/ckeditor/ckeditor5?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
-[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-build-balloon-toolbar.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-balloon-toolbar)
-[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-build-balloon-toolbar/status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-balloon-toolbar)
-[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-build-balloon-toolbar/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-balloon-toolbar?type=dev)
+[![npm version](https://badge.fury.io/js/%40ckeditor%2Fckeditor5-build-balloon.svg)](https://www.npmjs.com/package/@ckeditor/ckeditor5-build-balloon)
+[![Dependency Status](https://david-dm.org/ckeditor/ckeditor5-build-balloon/status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-balloon)
+[![devDependency Status](https://david-dm.org/ckeditor/ckeditor5-build-balloon/dev-status.svg)](https://david-dm.org/ckeditor/ckeditor5-build-balloon?type=dev)
 
-The editor with a balloon toolbar build. Read more in the [editor with a balloon toolbar](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/overview.html#Editor-with-balloon-toolbar) and see the [demo](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/examples/builds/balloon-toolbar-editor.html).
+The balloon editor build. Read more in the [balloon editor](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/builds/guides/overview.html#Balloon-editor) and see the [demo](https://ckeditor5.github.io/docs/nightly/ckeditor5/latest/examples/builds/balloon-editor.html).
 
 ## Documentation
 
@@ -22,7 +22,7 @@ See:
 First, install the build from npm:
 
 ```
-npm install --save @ckeditor/ckeditor5-build-balloon-toolbar
+npm install --save @ckeditor/ckeditor5-build-balloon
 ```
 
 And use it in your website:
@@ -31,9 +31,9 @@ And use it in your website:
 <div id="editor">
 	<p>This is the editor content.</p>
 </div>
-<script src="./node_modules/@ckeditor/ckeditor5-build-balloon-toolbar/build/ckeditor.js"></script>
+<script src="./node_modules/@ckeditor/ckeditor5-build-balloon/build/ckeditor.js"></script>
 <script>
-	BalloonToolbarEditor
+	BalloonEditor
 		.create( document.querySelector( '#editor' ) )
 		.then( editor => {
 			window.editor = editor;
@@ -47,12 +47,12 @@ And use it in your website:
 Or in your JavaScript application:
 
 ```js
-import BalloonToolbarEditor from '@ckeditor/ckeditor5-build-balloon-toolbar/build/ckeditor';
+import BalloonEditor from '@ckeditor/ckeditor5-build-balloon/build/ckeditor';
 
 // Or using CommonJS verion:
-// const BalloonToolbarEditor = require( '@ckeditor/ckeditor5-build-balloon-toolbar/build/ckeditor' );
+// const BalloonEditor = require( '@ckeditor/ckeditor5-build-balloon/build/ckeditor' );
 
-BalloonToolbarEditor
+BalloonEditor
 	.create( document.querySelector( '#editor' ) )
 	.then( editor => {
 		window.editor = editor;

+ 2 - 2
packages/ckeditor5-build-balloon/build-config.js

@@ -7,10 +7,10 @@
 
 module.exports = {
 	// The editor creator to use.
-	editor: '@ckeditor/ckeditor5-editor-balloon-toolbar/src/balloontoolbareditor',
+	editor: '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor',
 
 	// The name under which the editor will be exported.
-	moduleName: 'BalloonToolbarEditor',
+	moduleName: 'BalloonEditor',
 
 	// Plugins to include in the build.
 	plugins: [

+ 3 - 3
packages/ckeditor5-build-balloon/ckeditor.js

@@ -3,7 +3,7 @@
  * For licensing, see LICENSE.md.
  */
 
-import BalloonToolbarEditorBase from '@ckeditor/ckeditor5-editor-balloon-toolbar/src/balloontoolbareditor';
+import BalloonEditorBase from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor';
 import EssentialsPlugin from '@ckeditor/ckeditor5-presets/src/essentials';
 import AutoformatPlugin from '@ckeditor/ckeditor5-autoformat/src/autoformat';
 import BoldPlugin from '@ckeditor/ckeditor5-basic-styles/src/bold';
@@ -18,9 +18,9 @@ import LinkPlugin from '@ckeditor/ckeditor5-link/src/link';
 import ListPlugin from '@ckeditor/ckeditor5-list/src/list';
 import ParagraphPlugin from '@ckeditor/ckeditor5-paragraph/src/paragraph';
 
-export default class BalloonToolbarEditor extends BalloonToolbarEditorBase {}
+export default class BalloonEditor extends BalloonEditorBase {}
 
-BalloonToolbarEditor.build = {
+BalloonEditor.build = {
 	plugins: [
 		EssentialsPlugin,
 		AutoformatPlugin,

+ 5 - 5
packages/ckeditor5-build-balloon/package.json

@@ -1,7 +1,7 @@
 {
-  "name": "@ckeditor/ckeditor5-build-balloon-toolbar",
+  "name": "@ckeditor/ckeditor5-build-balloon",
   "version": "0.1.0",
-  "description": "CKEditor 5 editor with a balloon toolbar build.",
+  "description": "CKEditor 5 balloon editor build.",
   "keywords": [
     "ckeditor5-build",
     "text editor",
@@ -10,7 +10,7 @@
   ],
   "main": "./build/ckeditor.js",
   "dependencies": {
-    "@ckeditor/ckeditor5-editor-balloon-toolbar": "^0.1.0",
+    "@ckeditor/ckeditor5-editor-balloon": "^0.1.0",
     "@ckeditor/ckeditor5-presets": "^0.3.0",
     "@ckeditor/ckeditor5-autoformat": "^0.6.0",
     "@ckeditor/ckeditor5-basic-styles": "^0.9.0",
@@ -39,10 +39,10 @@
   "author": "CKSource (http://cksource.com/)",
   "license": "(GPL-2.0 OR LGPL-2.1 OR MPL-1.1)",
   "homepage": "https://ckeditor5.github.io",
-  "bugs": "https://github.com/ckeditor/ckeditor5-build-balloon-toolbar/issues",
+  "bugs": "https://github.com/ckeditor/ckeditor5-build-balloon/issues",
   "repository": {
     "type": "git",
-    "url": "https://github.com/ckeditor/ckeditor5-build-balloon-toolbar.git"
+    "url": "https://github.com/ckeditor/ckeditor5-build-balloon.git"
   },
   "scripts": {
     "build": "npm run create-entry-file && npm run build-ckeditor",

+ 3 - 3
packages/ckeditor5-build-balloon/sample/index.html

@@ -2,7 +2,7 @@
 <html lang="en">
 <head>
 	<meta charset="utf-8">
-	<title>CKEditor 5 – editor with a balloon toolbar build sample</title>
+	<title>CKEditor 5 – balloon editor build sample</title>
 	<style>
 		body {
 			max-width: 800px;
@@ -12,7 +12,7 @@
 </head>
 <body>
 
-<h1>CKEditor 5 – editor with a balloon toolbar build sample</h1>
+<h1>CKEditor 5 – balloon editor build sample</h1>
 
 <div id="editor">
 	<h2>About CKEditor&nbsp;5</h2>
@@ -44,7 +44,7 @@
 
 <script src="../build/ckeditor.js"></script>
 <script>
-	BalloonToolbarEditor.create( document.querySelector( '#editor' ) )
+	BalloonEditor.create( document.querySelector( '#editor' ) )
 		.then( editor => {
 			window.editor = editor;
 		} )

+ 10 - 10
packages/ckeditor5-build-balloon/tests/ckeditor.js

@@ -5,10 +5,10 @@
 
 /* globals document */
 
-import BalloonToolbarEditor from '../ckeditor';
-import BaseBalloonToolbarEditor from '@ckeditor/ckeditor5-editor-balloon-toolbar/src/balloontoolbareditor';
+import BalloonEditor from '../ckeditor';
+import BaseBalloonEditor from '@ckeditor/ckeditor5-editor-balloon/src/ballooneditor';
 
-describe( 'BalloonToolbarEditor build', () => {
+describe( 'BalloonEditor build', () => {
 	let editor, editorElement;
 
 	beforeEach( () => {
@@ -24,17 +24,17 @@ describe( 'BalloonToolbarEditor build', () => {
 
 	describe( 'buid', () => {
 		it( 'contains plugins', () => {
-			expect( BalloonToolbarEditor.build.plugins ).to.not.be.empty;
+			expect( BalloonEditor.build.plugins ).to.not.be.empty;
 		} );
 
 		it( 'contains config', () => {
-			expect( BalloonToolbarEditor.build.config.toolbar ).to.not.be.empty;
+			expect( BalloonEditor.build.config.toolbar ).to.not.be.empty;
 		} );
 	} );
 
 	describe( 'create()', () => {
 		beforeEach( () => {
-			return BalloonToolbarEditor.create( editorElement )
+			return BalloonEditor.create( editorElement )
 				.then( newEditor => {
 					editor = newEditor;
 				} );
@@ -44,9 +44,9 @@ describe( 'BalloonToolbarEditor build', () => {
 			return editor.destroy();
 		} );
 
-		it( 'creates an instance which inherits from the BalloonToolbarEditor', () => {
-			expect( editor ).to.be.instanceof( BalloonToolbarEditor );
-			expect( editor ).to.be.instanceof( BaseBalloonToolbarEditor );
+		it( 'creates an instance which inherits from the BalloonEditor', () => {
+			expect( editor ).to.be.instanceof( BalloonEditor );
+			expect( editor ).to.be.instanceof( BaseBalloonEditor );
 		} );
 
 		it( 'loads data from the editor element', () => {
@@ -56,7 +56,7 @@ describe( 'BalloonToolbarEditor build', () => {
 
 	describe( 'destroy()', () => {
 		beforeEach( () => {
-			return BalloonToolbarEditor.create( editorElement )
+			return BalloonEditor.create( editorElement )
 				.then( newEditor => {
 					editor = newEditor;
 				} );

+ 2 - 2
packages/ckeditor5-build-balloon/tests/manual/ckeditor-cjs-version.js

@@ -3,9 +3,9 @@
  * For licensing, see LICENSE.md.
  */
 
-const BalloonToolbarEditor = require( '../../build/ckeditor' );
+const BalloonEditor = require( '../../build/ckeditor' );
 
-BalloonToolbarEditor.create( document.querySelector( '#editor' ) )
+BalloonEditor.create( document.querySelector( '#editor' ) )
 	.then( editor => {
 		window.editor = editor;
 	} )

+ 1 - 1
packages/ckeditor5-build-balloon/tests/manual/ckeditor-cjs-version.md

@@ -1,4 +1,4 @@
-# CKEditor 5 editor with a balloon toolbar build – standard version (CommonJS `require()`)
+# CKEditor 5 balloon editor build – standard version (CommonJS `require()`)
 
 Just play with it.
 

+ 2 - 2
packages/ckeditor5-build-balloon/tests/manual/ckeditor.js

@@ -3,9 +3,9 @@
  * For licensing, see LICENSE.md.
  */
 
-import BalloonToolbarEditor from '../../build/ckeditor';
+import BalloonEditor from '../../build/ckeditor';
 
-BalloonToolbarEditor.create( document.querySelector( '#editor' ) )
+BalloonEditor.create( document.querySelector( '#editor' ) )
 	.then( editor => {
 		window.editor = editor;
 	} )

+ 1 - 1
packages/ckeditor5-build-balloon/tests/manual/ckeditor.md

@@ -1,4 +1,4 @@
-# CKEditor 5 editor with a balloon toolbar build – standard version
+# CKEditor 5 balloon editor build – standard version
 
 Just play with it.