From 522c293445d57323ba57151e91ba0b84e95a3ad9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maksymilian=20Barna=C5=9B?= Date: Mon, 26 Apr 2021 15:13:25 +0200 Subject: [PATCH] Update demo of table caption. --- .../_snippets/features/build-table-source.js | 4 +- .../_snippets/features/table-caption.html | 55 ++++++++++++------- .../docs/_snippets/features/table-caption.js | 2 +- 3 files changed, 40 insertions(+), 21 deletions(-) diff --git a/packages/ckeditor5-table/docs/_snippets/features/build-table-source.js b/packages/ckeditor5-table/docs/_snippets/features/build-table-source.js index 16ea1c30e7c..a175cb1086b 100644 --- a/packages/ckeditor5-table/docs/_snippets/features/build-table-source.js +++ b/packages/ckeditor5-table/docs/_snippets/features/build-table-source.js @@ -14,6 +14,7 @@ import IndentBlock from '@ckeditor/ckeditor5-indent/src/indentblock'; import TableProperties from '@ckeditor/ckeditor5-table/src/tableproperties'; import TableCellProperties from '@ckeditor/ckeditor5-table/src/tablecellproperties'; import TableCaption from '@ckeditor/ckeditor5-table/src/tablecaption'; +import Superscript from '@ckeditor/ckeditor5-basic-styles/src/superscript'; import { CS_CONFIG } from '@ckeditor/ckeditor5-cloud-services/tests/_utils/cloud-services-config'; @@ -47,5 +48,6 @@ window.ClassicEditor = ClassicEditor; window.CKEditorPlugins = { TableProperties, TableCellProperties, - TableCaption + TableCaption, + Superscript }; diff --git a/packages/ckeditor5-table/docs/_snippets/features/table-caption.html b/packages/ckeditor5-table/docs/_snippets/features/table-caption.html index dc9ea7e3081..ef27368da9b 100644 --- a/packages/ckeditor5-table/docs/_snippets/features/table-caption.html +++ b/packages/ckeditor5-table/docs/_snippets/features/table-caption.html @@ -3,85 +3,102 @@ - - + - - + + + + - - + + + - + + + - + + + - + + + - - - + + + - + + + - - + + + - + + + - - + + +
  NameMass (1024kg)Mass (1024kg) Diameter (km)Density (kg/m3)Gravity (m/s2)Gravity (m/s2)Length of day (hours)Distance from Sun (106km)Mean temperature (°C)
Terrestrial planets Mercury 0.330 4,8795427 3.74222.657.9167
Venus 4.87 12,1045243 8.92802.0108.2464
Earth 5.97 12,7565514 9.824.0149.615
Mars 0.642 6,7923933 3.724.7227.9-65
Jovian planetsGas giants Jupiter 1898 142,9841326 23.19.9778.6-110
Saturn 568 120,536687 9.010.71433.5-140
Ice giants Uranus 86.8 51,1181271 8.717.22872.5-195
Neptune 102 49,5281638 11.016.14495.1-200
Dwarf planets Pluto 0.0146 2,3702095 0.7153.35906.4-225
-
The Solar System
+
+ Data about the planets of our solar system (Planetary facts taken from + Nasa's Planetary Fact Sheet - Metric). +
diff --git a/packages/ckeditor5-table/docs/_snippets/features/table-caption.js b/packages/ckeditor5-table/docs/_snippets/features/table-caption.js index f664bcd532a..69fe7fdc8b4 100644 --- a/packages/ckeditor5-table/docs/_snippets/features/table-caption.js +++ b/packages/ckeditor5-table/docs/_snippets/features/table-caption.js @@ -8,7 +8,7 @@ ClassicEditor .create( document.querySelector( '#snippet-table-caption' ), { extraPlugins: [ - CKEditorPlugins.TableCaption + CKEditorPlugins.TableCaption, CKEditorPlugins.Superscript ], table: { contentToolbar: [ 'tableColumn', 'tableRow', 'mergeTableCells', 'toggleTableCaption' ]