File: embedprovider.html

package info (click to toggle)
ckeditor 4.16.0%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 258,804 kB
  • sloc: javascript: 239,590; sh: 184; makefile: 64; python: 37; php: 15; xml: 5
file content (19 lines) | stat: -rw-r--r-- 534 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<p>Test URLs</p>

<ul>
	<li>https://www.youtube.com/watch?v=GUl9_5kK9ts</li>
	<li>https://twitter.com/cksource/status/719823128889790464</li>
</ul>

<textarea id="editor1" cols="10" rows="10">
	<p>Foo bar</p>
</textarea>
<script>
	( function() {
		CKEDITOR.replace( 'editor1', {
			extraPlugins: 'wysiwygarea,sourcearea,htmlwriter,entities,toolbar,elementspath,undo,clipboard,format,basicstyles,embed,preview',
			embed_provider: '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}',
			height: 500
		} );
	} )();
</script>