Przeglądaj źródła

Use preliminary icon design in manual test.

Maciej Gołaszewski 6 lat temu
rodzic
commit
fc8cff06a9

+ 2 - 2
packages/ckeditor5-restricted-editing/src/restricteddocumentui.js

@@ -9,7 +9,7 @@
 
 import Plugin from './plugin';
 import ButtonView from '@ckeditor/ckeditor5-ui/src/button/buttonview';
-import boldIcon from '@ckeditor/ckeditor5-basic-styles/theme/icons/bold.svg';
+import restrictedDocumentIcon from '../theme/icons/restricted.svg';
 
 /**
  * @extends module:core/plugin~Plugin
@@ -28,7 +28,7 @@ export default class RestrictedDocumentUI extends Plugin {
 
 			view.set( {
 				label: t( 'Restricted editing' ),
-				icon: boldIcon,
+				icon: restrictedDocumentIcon,
 				tooltip: true,
 				isToggleable: true
 			} );

+ 1 - 1
packages/ckeditor5-restricted-editing/tests/manual/restricteddocument.html

@@ -28,6 +28,6 @@
 
 <style>
 	.ck-non-restricted {
-		background: orange;
+		background-color: #ffcd96;
 	}
 </style>

+ 6 - 2
packages/ckeditor5-restricted-editing/tests/manual/restricteddocument.js

@@ -13,9 +13,13 @@ import RestrictedDocument from '../../src/restricteddocument';
 ClassicEditor
 	.create( document.querySelector( '#editor' ), {
 		plugins: [ ArticlePluginSet, RestrictedDocument ],
-		toolbar: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', 'blockQuote', 'undo', 'redo' ],
+		toolbar: [ 'heading', '|',
+			'bold', 'italic', 'link', '|',
+			'bulletedList', 'numberedList', 'blockQuote', '|',
+			'nonRestricted', '|', 'undo', 'redo'
+		],
 		image: {
-			toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ],
+			toolbar: [ 'imageStyle:full', 'imageStyle:side', '|', 'imageTextAlternative' ]
 		}
 	} )
 	.then( editor => {