瀏覽代碼

Docs: Minor improvements and bug fixes.

Aleksander Nowodzinski 7 年之前
父節點
當前提交
cdf2a5d567

+ 1 - 1
packages/ckeditor5-media-embed/docs/features/media-embed.md

@@ -65,7 +65,7 @@ By default the media embed feature outputs media in the same way it works in the
 </figure>
 ```
 
-Currently, the preview is only available for content providers for which CKEditor 5 can predict an `<iframe>` code – this is YouTube, Vimeo, Dailymotion, Spotify, etc. For other providers like Twitter or Instagram the editor cannot produce an `<iframe>` code and it does not, so far, allows retriving this code from an external oEmbed service. Therefore, for non previewable media it produces the semantic output:
+Currently, the preview is only available for content providers for which CKEditor 5 can predict an `<iframe>` code – this is YouTube, Vimeo, Dailymotion, Spotify, etc. For other providers like Twitter or Instagram the editor cannot produce an `<iframe>` code and it does not, so far, allows retrieving this code from an external oEmbed service. Therefore, for non previewable media it produces the semantic output:
 
 ```html
 <figure class="media">

+ 2 - 1
packages/ckeditor5-media-embed/src/automediaembed.js

@@ -20,7 +20,8 @@ import global from '@ckeditor/ckeditor5-utils/src/dom/global';
 const URL_REGEXP = /^(?:http(s)?:\/\/)?[\w.-]+(?:\.[\w.-]+)+[\w\-._~:/?#[\]@!$&'()*+,;=]+$/;
 
 /**
- * The auto-media embed plugin.
+ * The auto-media embed plugin. It recognizes media links in the pasted content and embeds
+ * them shortly after they are injected into the document.
  *
  * @extends module:core/plugin~Plugin
  */

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

@@ -16,8 +16,9 @@ import Widget from '@ckeditor/ckeditor5-widget/src/widget';
 /**
  * The media embed plugin.
  *
- * It loads the {@link module:media-embed/mediaembedediting~MediaEmbedEditing media embed editing feature}
- * and {@link module:media-embed/mediaembedui~MediaEmbedUI media embed UI feature}.
+ * It loads the {@link module:media-embed/mediaembedediting~MediaEmbedEditing media embed editing feature},
+ * {@link module:media-embed/mediaembedui~MediaEmbedUI media embed UI feature} and
+ * {@link module:media-embed/automediaembed~AutoMediaEmbed auto-media embed feature}.
  *
  * For a detailed overview, check the {@glink features/media-embed Media Embed feature documentation}.
  *