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

Tests: Updated and fixed ui element manual test.

Szymon Cofalik 8 лет назад
Родитель
Сommit
1f1e4a5ac5

+ 2 - 2
packages/ckeditor5-engine/tests/view/manual/uielement.html

@@ -14,8 +14,8 @@
 		font-family: sans-serif;
 		background-color: #7a7a7a;
 		color: white;
-		padding: 1px 5px;
-		display: inline-block;
+		padding: 2px 5px;
+		display: inline;
 	}
 </style>
 <div id="container">

+ 0 - 1
packages/ckeditor5-engine/tests/view/manual/uielement.js

@@ -17,7 +17,6 @@ class MyUIElement extends UIElement {
 	render( domDocument ) {
 		const root = super.render( domDocument );
 
-		root.setAttribute( 'contenteditable', 'false' );
 		root.classList.add( 'ui-element' );
 		root.innerHTML = 'END OF PARAGRAPH';
 

+ 2 - 0
packages/ckeditor5-engine/tests/view/manual/uielement.md

@@ -3,3 +3,5 @@
 1. Each paragraph should have UIElement at it's bottom showing "END OF PARAGRAPH".
 1. UIElement should not block typing or prevent regular editor usage.
 1. When paragraph is split or new paragraph is created - new UIElement should be created too.
+1. You should not be able to place selection inside ui element or type in it.
+1. Arrow keys should work correctly around ui element.