Skip to content
This repository has been archived by the owner on Jun 26, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' into t/ckeditor5-theme-lark/206
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Nov 19, 2018
2 parents 4f3c2e0 + 671e1b8 commit 0a5cc5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/manual/imageupload.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
* For licensing, see LICENSE.md.
*/

/* globals document, console */
/* globals window, document, console */

import ClassicEditor from '@ckeditor/ckeditor5-editor-classic/src/classiceditor';
import Bold from '@ckeditor/ckeditor5-basic-styles/src/bold';
Expand Down Expand Up @@ -36,6 +36,8 @@ ClassicEditor
}
} )
.then( editor => {
window.editor = editor;

// Register fake adapter.
editor.plugins.get( 'FileRepository' ).createUploadAdapter = loader => {
const adapterMock = new UploadAdapterMock( loader );
Expand Down
3 changes: 3 additions & 0 deletions theme/image.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@
clear: both;
text-align: center;

/* Make sure there is some space between the content and the image. */
margin: 1em 0;

& > img {
/* Prevent unnecessary margins caused by line-height (see #44). */
display: block;
Expand Down

0 comments on commit 0a5cc5e

Please sign in to comment.