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
/
mediaembed.md
mediaembed.md
1.4 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()
,
Media with previews should include their previews. Preview–less media should be represented 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.
Media embed toolbar
Click the media,
The block quote button should be visible,
Click the block quote button,
The block quote should be applied to the media.