8
0

mediaembed.md 1.4 KB

Media Embed

Embed the media

  1. Put an URL in the clipboard,
  2. Use the button in the dropdown or paste the URL directly in the editor,
  3. Insert the media,
  4. Check if media was inserted and is selected.

Update the media

  1. Put an URL in the clipboard,
  2. Select some media,
  3. Use the button in the dropdown,
  4. Update the URL,
  5. Check if media was updated and remains selected.

Data output

  1. Call editor.getData(),
  2. Media with previews should include their previews. Preview–less media should be represented using only the <oembed> tag.

URL validation

Invalid

  1. In the previous scenarios try using a non–media URL,
  2. The error should be displayed next to the URL field,
  3. Nothing should be inserted/updated.

Empty

  1. In the previous scenarios try using an empty URL,
  2. The error should be displayed next to the URL field,
  3. Nothing should be inserted/updated.

Copy&Paste

  1. Play with media copy&paste.
  2. It should work just like images or any other widget.

Open media in new tab

  1. Locate any generic media in the content,
  2. Hover the URL in the content (the tooltip should show up),
  3. Click the URL,
  4. A new browser tab should open with the media URL.

Media embed toolbar

  1. Click the media,
  2. The block quote button should be visible,
  3. Click the block quote button,
  4. The block quote should be applied to the media.