瀏覽代碼

Add small updates to examples.

Mateusz Samsel 6 年之前
父節點
當前提交
31226f38e8

文件差異過大導致無法顯示
+ 3 - 0
packages/ckeditor5-font/docs/_snippets/features/custom-font-color-and-background-color-options.html


+ 4 - 1
packages/ckeditor5-font/docs/_snippets/features/custom-font-color-and-background-color-options.js

@@ -202,7 +202,10 @@ ClassicEditor
 		}
 	} )
 	.then( editor => {
-		window.editor = editor;
+		if ( !window.editors ) {
+			window.editors = {};
+		}
+		window.editors[ 'custom-font-color-and-background-color-options' ] = editor;
 	} )
 	.catch( err => {
 		console.error( err.stack );

+ 3 - 0
packages/ckeditor5-font/docs/_snippets/features/font.html

@@ -23,4 +23,7 @@
 		<span style="color:hsl(0,0%,100%);background-color:hsl(0,0%,0%)">This text has white color and black background.</span>
 	</p>
 
+	<p>
+		<span style="color:#505050;background-color:rgb(75, 255, 190)">This text has custom color used for text and background. Those colors are available in 'recently used' section.</span>
+	</p>
 </div>