File: block.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 (131 lines) | stat: -rw-r--r-- 7,960 bytes parent folder | download | duplicates (6)
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<head>
	<link rel="stylesheet" href="/apps/ckeditor/contents.css">
</head>
<h2>Classic editor</h2>
<div id="editor1">
	<h1>Lenna</h1>

	<p><strong>Lenna</strong> or <strong>Lena</strong> is the name given to a <a href="http://en.wikipedia.org/wiki/Standard_test_image" title="Standard test image">standard test image</a> widely used in the field of image processing since 1973. It is a picture of <a href="http://en.wikipedia.org/wiki/Lena_S%C3%B6derberg" title="Lena Söderberg">Lena Söderberg</a>, shot by photographer <a href="http://en.wikipedia.org/wiki/Dwight_Hooker" title="Dwight Hooker">Dwight Hooker</a>, cropped from the <a href="http://en.wikipedia.org/wiki/Centerfold" title="Centerfold">centerfold</a> of the November 1972 issue of <em><a href="http://en.wikipedia.org/wiki/Playboy" title="Playboy">Playboy</a></em> magazine. Given the nature of the image and its source, several academics have criticized its continued use in scientific publications and <a href="http://en.wikipedia.org/wiki/Higher_education" title="Higher education">higher education</a> as both sexist and unprofessional.</p>

	<figure class="image">
		<img alt="Lena Söderberg" src="%BASE_PATH%_assets/lena.jpg" width="150" />
		<figcaption>Image of <a href="http://en.
			wikipedia.org/wiki/Lena_S%C3%B6derberg">Lena Söderberg</a> used in<br>many image processing experiments.</figcaption>
	</figure>

	<p>The spelling "Lenna" comes from the <a href="http://en.wikipedia.org/wiki/Anglicisation" title="Anglicisation">anglicisation</a> used in the original <i>Playboy</i> article.</p>

<h1>JavaScript</h1>

<p>JavaScript code:</p>

<pre>
<code class="language-javascript">function isEmpty( object ) {
	for ( var i in object ) {
		if ( object.hasOwnProperty( i ) )
			return false;
	}
	return true;
}</code></pre>

	<h1>Apollo 11</h1>
	<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>

	<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>

	<blockquote>
	<p>One small step for [a] man, one giant leap for mankind.</p>
	</blockquote>

	<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>

	<ol>
		<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
		<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
		<li><strong>Lunar Module</strong> for landing on the Moon.</li>
	</ol>

	<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
</div>

<h2>Inline editor</h2>
<div id="editor2" contenteditable="true">
	<h1>Lenna</h1>

	<p><strong>Lenna</strong> or <strong>Lena</strong> is the name given to a <a href="http://en.wikipedia.org/wiki/Standard_test_image" title="Standard test image">standard test image</a> widely used in the field of image processing since 1973. It is a picture of <a href="http://en.wikipedia.org/wiki/Lena_S%C3%B6derberg" title="Lena Söderberg">Lena Söderberg</a>, shot by photographer <a href="http://en.wikipedia.org/wiki/Dwight_Hooker" title="Dwight Hooker">Dwight Hooker</a>, cropped from the <a href="http://en.wikipedia.org/wiki/Centerfold" title="Centerfold">centerfold</a> of the November 1972 issue of <em><a href="http://en.wikipedia.org/wiki/Playboy" title="Playboy">Playboy</a></em> magazine. Given the nature of the image and its source, several academics have criticized its continued use in scientific publications and <a href="http://en.wikipedia.org/wiki/Higher_education" title="Higher education">higher education</a> as both sexist and unprofessional.</p>

	<figure class="image">
		<img alt="Lena Söderberg" src="%BASE_PATH%_assets/lena.jpg" width="150" />
		<figcaption>Image of <a href="http://en.
			wikipedia.org/wiki/Lena_S%C3%B6derberg">Lena Söderberg</a> used in<br>many image processing experiments.</figcaption>
	</figure>

	<p>The spelling "Lenna" comes from the <a href="http://en.wikipedia.org/wiki/Anglicisation" title="Anglicisation">anglicisation</a> used in the original <i>Playboy</i> article.</p>

<h1>JavaScript</h1>

<p>JavaScript code:</p>

<pre>
<code class="language-javascript">function isEmpty( object ) {
	for ( var i in object ) {
		if ( object.hasOwnProperty( i ) )
			return false;
	}
	return true;
}</code></pre>

	<h1>Apollo 11</h1>
	<h2>Broadcasting and <em>quotes</em> <a id="quotes" name="quotes"></a></h2>

	<p>Broadcast on live TV to a world-wide audience, Armstrong stepped onto the lunar surface and described the event as:</p>

	<blockquote>
	<p>One small step for [a] man, one giant leap for mankind.</p>
	</blockquote>

	<p>Launched by a <strong>Saturn V</strong> rocket from <a href="http://en.wikipedia.org/wiki/Kennedy_Space_Center" title="Kennedy Space Center">Kennedy Space Center</a> in Merritt Island, Florida on July 16, Apollo 11 was the fifth manned mission of <a href="http://en.wikipedia.org/wiki/NASA" title="NASA">NASA</a>&#39;s Apollo program. The Apollo spacecraft had three parts:</p>

	<ol>
		<li><strong>Command Module</strong> with a cabin for the three astronauts which was the only part which landed back on Earth</li>
		<li><strong>Service Module</strong> which supported the Command Module with propulsion, electrical power, oxygen and water</li>
		<li><strong>Lunar Module</strong> for landing on the Moon.</li>
	</ol>

	<p>After being sent to the Moon by the Saturn V&#39;s upper stage, the astronauts separated the spacecraft from it and travelled for three days until they entered into lunar orbit. Armstrong and Aldrin then moved into the Lunar Module and landed in the <a href="http://en.wikipedia.org/wiki/Mare_Tranquillitatis" title="Mare Tranquillitatis">Sea of Tranquility</a>. They stayed a total of about 21 and a half hours on the lunar surface. After lifting off in the upper part of the Lunar Module and rejoining Collins in the Command Module, they returned to Earth and landed in the <a href="http://en.wikipedia.org/wiki/Pacific_Ocean" title="Pacific Ocean">Pacific Ocean</a> on July 24.</p>
</div>
<script>
	if ( CKEDITOR.env.ie && CKEDITOR.env.version < 9 ) {
		CKEDITOR.tools.enableHtml5Elements( document );
	}

	CKEDITOR.addCss( '.testwidget {	border: 1px dashed #AAAAFF;	} .col1, .col2 { border: 1px dashed #AA9090; margin: 5px; }' );
	CKEDITOR.plugins.add( 'doublecolumn', {
		requires: 'widget',
		button: 'doublecolumn',
		init: function( editor ) {
			editor.widgets.add( 'doublecolumn', {
				button: 'doublecolumn',
				template: '<div class="testwidget"><div class="col1"></div><div class="col2"></div></div>',
				editables: {
					col1: { selector: '.col1' },
					col2: { selector: '.col2' }
				},
				upcast: function( element ) {
					return element.hasClass( 'testwidget' );
				}
			} );
		}
	} );

	CKEDITOR.replace( 'editor1', {
		height: 400,
		extraPlugins: 'doublecolumn',
		allowedContent: true
	} );

	CKEDITOR.inline( 'editor2', {
		extraPlugins: 'doublecolumn',
		allowedContent: true
	} );
</script>