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

Fix: Floated content and media widgets should not overlap.

Aleksander Nowodzinski 7 лет назад
Родитель
Сommit
3f9f267326

+ 2 - 0
packages/ckeditor5-media-embed/src/mediaembed.js

@@ -13,6 +13,8 @@ import MediaEmbedUI from './mediaembedui';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Plugin from '@ckeditor/ckeditor5-core/src/plugin';
 import Widget from '@ckeditor/ckeditor5-widget/src/widget';
 import Widget from '@ckeditor/ckeditor5-widget/src/widget';
 
 
+import '../theme/mediaembed.css';
+
 /**
 /**
  * The media embed plugin.
  * The media embed plugin.
  *
  *

+ 10 - 0
packages/ckeditor5-media-embed/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;
+}