This website works better with JavaScript
首頁
探索
說明
登入
unicraft
/
cke
關註
8
讚好
0
複刻
0
檔案
目錄樹:
d995d524e4
分支列表
標籤列表
feat/v28
feat/v28-with-smileys
feat/v28-with-types
feat/v35
feat/v38
feat/v40x
fix/destroy-undefined
master
stable
v38.7
v38.6
v38.4
v31beta2
v31beta1
v28beta2
v28beta1
v23.1.0
v23.0.0
v22.0.0
v21.0.0
v20.0.0
v19.1.1
v19.1.0
v19.0.0
v18.0.0
v17.0.0
v16.0.0
v15.0.0
v12.4.0
v12.3.1
v12.3.0
v12.2.0
v12.1.0
v12.0.0
v11.2.0
v11.1.1
v11.1.0
v11.0.1
v11.0.0
v10.1.0
10.1.0
v10.0.1
v10.0.0
v1.0.0-beta.4
v1.0.0-beta.2
v1.0.0-beta.1
v1.0.0-alpha.2
v1.0.0-alpha.1
v0.11.0
v0.10.0
v0.9.0
v0.8.0
v0.7.0
v0.6.0
v0.5.0
v0.4.0
v0.3.0
v0.2.0
v0.1.0
v38.6_imageinsert
v38_3
v38_2
v38_1
v36_1
v35_node1618
v35_codeblock_1
cke
/
packages
/
ckeditor5-media-embed
/
tests
/
manual
/
semanticmediaembed.md
semanticmediaembed.md
1.2 KB
文件歷史
原始文件
Media Embed
Embed the media
Put an URL in the clipboard,
Use the button in the dropdown or paste the URL directly in the editor,
Insert the media,
Check if media was inserted and is selected.
Update the media
Put an URL in the clipboard,
Select some media,
Use the button in the dropdown,
Update the URL,
Check if media was updated and remains selected.
Data output
Call
editor.getData()
,
All the media should be represented without previews, using only the
<oembed>
tag.
URL validation
Invalid
In the previous scenarios try using a non–media URL,
The error should be displayed next to the URL field,
Nothing should be inserted/updated.
Empty
In the previous scenarios try using an empty URL,
The error should be displayed next to the URL field,
Nothing should be inserted/updated.
Copy&Paste
Play with media copy&paste.
It should work just like images or any other widget.
Open media in new tab
Locate any generic media in the content,
Hover the URL in the content (the tooltip should show up),
Click the URL,
A new browser tab should open with the media URL.