diff --git a/src/mediaembed.js b/src/mediaembed.js index 3cc5dc3..e54127d 100644 --- a/src/mediaembed.js +++ b/src/mediaembed.js @@ -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. * diff --git a/theme/mediaembed.css b/theme/mediaembed.css new file mode 100644 index 0000000..92d9170 --- /dev/null +++ b/theme/mediaembed.css @@ -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; +}