浏览代码

Docs: Fixed code examples in API docs. [skip ci]

Anna Tomanek 7 年之前
父节点
当前提交
4476367400
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      packages/ckeditor5-media-embed/src/converters.js
  2. 1 1
      packages/ckeditor5-media-embed/src/utils.js

+ 1 - 1
packages/ckeditor5-media-embed/src/converters.js

@@ -16,7 +16,7 @@ import ViewPosition from '@ckeditor/ckeditor5-engine/src/view/position';
  * Depending on the configuration, the view representation can be "semantic" (for the data pipeline):
  *
  *		<figure class="media">
- *			<oembed url="foo"></div>
+ *			<oembed url="foo"></oembed>
  *		</figure>
  *
  * or "non-semantic" (for the editing view pipeline):

+ 1 - 1
packages/ckeditor5-media-embed/src/utils.js

@@ -42,7 +42,7 @@ export function isMediaWidget( viewElement ) {
  * Creates a view element representing the media. Either "semantic" one for the data pipeline:
  *
  *		<figure class="media">
- *			<oembed url="foo"></div>
+ *			<oembed url="foo"></oembed>
  *		</figure>
  *
  * or "non-semantic" (for the editing view pipeline):