浏览代码

Added the table feature to the build.

Aleksander Nowodzinski 7 年之前
父节点
当前提交
10e25a3475

+ 7 - 0
packages/ckeditor5-build-decoupled-document/build-config.js

@@ -37,6 +37,8 @@ module.exports = {
 		'@ckeditor/ckeditor5-link/src/link',
 		'@ckeditor/ckeditor5-list/src/list',
 		'@ckeditor/ckeditor5-paragraph/src/paragraph',
+		'@ckeditor/ckeditor5-table/src/table',
+		'@ckeditor/ckeditor5-table/src/tabletoolbar'
 	],
 
 	// Editor config.
@@ -62,6 +64,7 @@ module.exports = {
 				'link',
 				'blockquote',
 				'imageUpload',
+				'insertTable',
 				'|',
 				'undo',
 				'redo'
@@ -77,6 +80,10 @@ module.exports = {
 			toolbar: [ 'imageStyle:alignLeft', 'imageStyle:full', 'imageStyle:alignRight', '|', 'imageTextAlternative' ]
 		},
 
+		table: {
+			toolbar: [ 'tableColumn', 'tableRow', 'mergeCell' ]
+		},
+
 		// UI language. Language codes follow the https://en.wikipedia.org/wiki/ISO_639-1 format.
 		language: 'en'
 	}

+ 1 - 0
packages/ckeditor5-build-decoupled-document/package.json

@@ -48,6 +48,7 @@
     "@ckeditor/ckeditor5-paragraph": "^10.0.0",
     "@ckeditor/ckeditor5-theme-lark": "^10.0.0",
     "@ckeditor/ckeditor5-upload": "^10.0.0",
+    "@ckeditor/ckeditor5-table": "^0.0.1",
     "babel-minify-webpack-plugin": "^0.3.0",
     "postcss-loader": "^2.0.10",
     "raw-loader": "^0.5.1",

+ 24 - 1
packages/ckeditor5-build-decoupled-document/tests/manual/ckeditor.html

@@ -42,6 +42,29 @@
 
 		<p>It has <em>bugs</em> that we are aware of &mdash; and that we will be working on in the next few
 		iterations of the project. Stay tuned for some updates soon!</p>
+
+		<table>
+			<thead>
+				<tr>
+					<th>Version</th>
+					<th>Release date</th>
+				</tr>
+			</thead>
+			<tbody>
+				<tr>
+					<td>10.0.1</td>
+					<td>May 22, 2018</td>
+				</tr>
+				<tr>
+					<td>10.0.0</td>
+					<td>April 25, 2018</td>
+				</tr>
+				<tr>
+					<td>10.0.0-beta.2</td>
+					<td>April 10, 2018</td>
+				</tr>
+			</tbody>
+		</table>
 	</div>
 </div>
 
@@ -63,7 +86,7 @@
 		max-height: 500px;
 	}
 
-	.editable-container .ck-editor__editable {
+	.editable-container > .ck-editor__editable {
 		min-height: 21cm;
 		padding: 2em;
 		border: 1px #D3D3D3 solid;