File: autoembed.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 (50 lines) | stat: -rw-r--r-- 1,568 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
<p>Test URLs</p>

<ul>
	<li><input type="text" value="https://placekitten.com/g/200/300"></li>
	<li><input type="text" value="https://twitter.com/reinmarpl/status/573118615274315776"></li>
	<li><input type="text" value="https://www.youtube.com/watch?v=GUl9_5kK9ts"></li>
	<li><input type="text" value="https://instagram.com/p/wZB11CIfqX/"></li>
	<li><input type="text" value="https://www.google.dk/maps/place/Zygmunta+S%C5%82omi%C5%84skiego+15,+Warszawa"></li>
	<li><input type="text" value="https://www.flickr.com/photos/polandmfa/7005560084/"></li>
	<li><input type="text" value="http://i.imgur.com/Z3ilPBI.jpg"></li>
	<li><input type="text" value="https://open.spotify.com/track/2XsTC2dPbmWREu5RQ1mQC0"></li>
</ul>

<p>Dat rich editor &ndash; embed</p>

<textarea id="editor1" cols="10" rows="10">
	<p>Foo bar.</p>

	<p>Foo bar.</p>
</textarea>

<p>Dat rich editor &ndash; embedsemantic</p>

<textarea id="editor2" cols="10" rows="10">
	<p>Foo bar.</p>

	<p>Foo bar.</p>
</textarea>

<script>
	embedTools.delayJsonp();

	CKEDITOR.replace( 'editor1', {
		removePlugins: 'embedsemantic',
		extraPlugins: 'embed',
		height: 500,
		// Make them narrow so images don't take too much space.
		width: 600,
		embed_provider: '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}'
	} );

	CKEDITOR.replace( 'editor2', {
		removePlugins: 'embed',
		extraPlugins: 'embedsemantic',
		height: 500,
		// Make them narrow so images don't take too much space.
		width: 600,
		embed_provider: '//ckeditor.iframe.ly/api/oembed?url={url}&callback={callback}'
	} );
</script>