Browse Source

Appending editor to the container in data initialization manual test.

Szymon Kupś 7 years ago
parent
commit
760fd971e3

+ 8 - 0
packages/ckeditor5-editor-balloon/tests/manual/ballooneditor-data.html

@@ -3,9 +3,17 @@
 	<button id="initEditor">Init editor</button>
 </p>
 
+<div class="container"></div>
+
 <style>
 	body {
 		width: 10000px;
 		height: 10000px;
 	}
+
+
+	.container {
+		padding: 20px;
+		width: 500px;
+	}
 </style>

+ 2 - 1
packages/ckeditor5-editor-balloon/tests/manual/ballooneditor-data.js

@@ -9,6 +9,7 @@ import BalloonEditor from '../../src/ballooneditor';
 import ArticlePluginSet from '@ckeditor/ckeditor5-core/tests/_utils/articlepluginset';
 
 window.editors = [];
+const container = document.querySelector( '.container' );
 
 function initEditor() {
 	BalloonEditor
@@ -18,7 +19,7 @@ function initEditor() {
 		} )
 		.then( editor => {
 			window.editors.push( editor );
-			document.body.appendChild( editor.element );
+			container.appendChild( editor.element );
 		} )
 		.catch( err => {
 			console.error( err.stack );