File: basic.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 (59 lines) | stat: -rw-r--r-- 1,339 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
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
<style>
	div[id*=editor] { margin-bottom: 10px; }
	h2 { text-decoration: underline; }
</style>


<h2>Beginning</h2>

<div id="editor01">
	<p contenteditable="false">NonEditable</p>
	<h1>Hello world!</h1>
	<p>I&#39;m an instance of <a href="http://ckeditor.com">CKEditor</a>.</p>
</div>

<h2>End</h2>

<div id="editor11">
	<h1>Hello world!</h1>
	<p>I&#39;m an instance of <a href="http://ckeditor.com">CKEditor</a>.</p>
	<p contenteditable="false">NonEditable</p>
</div>

<h2>Middle</h2>

<div id="editor21">
	<h1>Hello world!</h1>
	<p contenteditable="false">NonEditable</p>
	<p>I&#39;m an instance of <a href="http://ckeditor.com">CKEditor</a>.</p>
</div>

<h2>Both beginning and end</h2>

<div id="editor31">
	<p contenteditable="false">NonEditable</p>
	<h1>Hello world!</h1>
	<p>I&#39;m an instance of <a href="http://ckeditor.com">CKEditor</a>.</p>
	<p contenteditable="false">NonEditable</p>
</div>

<h2>Only non-editable</h2>

<div id="editor41">
	<p contenteditable="false">NonEditable</p>
	<p contenteditable="false">NonEditable</p>
</div>


<script>
	var config1 = {
		height: 200,
		allowedContent: true
	};

	CKEDITOR.replace( 'editor01', config1 );
	CKEDITOR.replace( 'editor11', config1 );
	CKEDITOR.replace( 'editor21', config1 );
	CKEDITOR.replace( 'editor31', config1 );
	CKEDITOR.replace( 'editor41', config1 );
</script>