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

Commit

Permalink
Fix: Floated content and media widgets should not overlap.
Browse files Browse the repository at this point in the history
  • Loading branch information
oleq committed Oct 25, 2018
1 parent 81e681c commit 2eb0362
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/mediaembed.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ import MediaEmbedUI from './mediaembedui';
import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
import Widget from '@ckeditor/ckeditor5-widget/src/widget';

import '../theme/mediaembed.css';

/**
* The media embed plugin.
*
Expand Down
10 changes: 10 additions & 0 deletions theme/mediaembed.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md.
*/

.ck-content .media {
/* Don't allow floated content overlap the media.
https://github.com/ckeditor/ckeditor5-media-embed/issues/53 */
clear: both;
}

0 comments on commit 2eb0362

Please sign in to comment.