瀏覽代碼

Docs (media-embed): Fixed a code snippet with command usage.

Fixed wrong command parameters.
Marek Lewandowski 5 年之前
父節點
當前提交
817c43054e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/ckeditor5-media-embed/docs/features/media-embed.md

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

@@ -438,7 +438,7 @@ The {@link module:media-embed/mediaembed~MediaEmbed} plugin registers:
 	You can insert a new media element or update the selected media URL by executing the following code:
 
 	```js
-	editor.execute( 'mediaEmbed', { url: 'http://url.to.the/media' } );
+	editor.execute( 'mediaEmbed', 'http://url.to.the/media' );
 	```
 
 <info-box>