File: embed.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 (52 lines) | stat: -rw-r--r-- 2,051 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
51
52
<p>Test URLs</p>

<ul>
	<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</p>

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

	<div data-oembed-url="https://twitter.com/reinmarpl/status/573118615274315776">
	<blockquote class="twitter-tweet">
	<p>Coding session with <a href="https://twitter.com/fredck">@fredck</a>, <a href="https://twitter.com/anowodzinski">@anowodzinski</a> and Mr Carrot. <a href="http://t.co/FLV5UXpfaT">pic.twitter.com/FLV5UXpfaT</a></p>
	&mdash; Piotrek KoszuliƄski (@reinmarpl) <a href="https://twitter.com/reinmarpl/status/573118615274315776">March 4, 2015</a></blockquote>
	<script async="" charset="utf-8" src="//platform.twitter.com/widgets.js"></script>
	</div>

	<p>Foo bar.</p>

	<div data-oembed-url="http://i.imgur.com/Z3ilPBI.jpg"><img alt="Imgur" src="//i.imgur.com/Z3ilPBI.jpg" style="max-width:100%" /></div>

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

<p>Empty editor</p>

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

<script>
	( function() {
		embedTools.delayJsonp();

		var cfg = {
			extraPlugins: 'wysiwygarea,sourcearea,htmlwriter,entities,toolbar,elementspath,undo,clipboard,format,basicstyles,image2,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( 'editor1', cfg );
		CKEDITOR.replace( 'editor2', cfg );
	} )();
</script>