server/php/basic/public_html/static/lib/ckeditor/samples/appendto.html
author rougeronj
Thu, 18 Jun 2015 16:54:57 +0200
changeset 504 3329b413db18
permissions -rw-r--r--
add the new client libraries server side
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
504
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     1
<!DOCTYPE html>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     2
<!--
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     3
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     4
For licensing, see LICENSE.md or http://ckeditor.com/license
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     5
-->
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     6
<html>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     7
<head>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     8
	<meta charset="utf-8">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
     9
	<title>Append To Page Element Using JavaScript Code &mdash; CKEditor Sample</title>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    10
	<script src="../ckeditor.js"></script>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    11
	<link rel="stylesheet" href="sample.css">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    12
</head>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    13
<body>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    14
	<h1 class="samples">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    15
		<a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    16
	</h1>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    17
	<div id="section1">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    18
		<div class="description">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    19
			<p>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    20
				The <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR-method-appendTo">CKEDITOR.appendTo()</a></code> method serves to to place editors inside existing DOM elements. Unlike <code><a class="samples" href="http://docs.ckeditor.com/#!/api/CKEDITOR-method-replace">CKEDITOR.replace()</a></code>,
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    21
				a target container to be replaced is no longer necessary. A new editor
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    22
				instance is inserted directly wherever it is desired.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    23
			</p>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    24
<pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    25
	{ /* Configuration options to be used. */ }
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    26
	'Editor content to be used.'
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    27
);</pre>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    28
		</div>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    29
		<script>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    30
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    31
			// This call can be placed at any point after the
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    32
			// DOM element to append CKEditor to or inside the <head><script>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    33
			// in a window.onload event handler.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    34
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    35
			// Append a CKEditor instance using the default configuration and the
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    36
			// provided content to the <div> element of ID "section1".
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    37
			CKEDITOR.appendTo( 'section1',
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    38
				null,
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    39
				'<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>'
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    40
			);
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    41
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    42
		</script>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    43
	</div>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    44
	<br>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    45
	<div id="footer">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    46
		<hr>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    47
		<p>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    48
			CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    49
		</p>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    50
		<p id="copy">
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    51
			Copyright &copy; 2003-2015, <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    52
			Knabben. All rights reserved.
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    53
		</p>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    54
	</div>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    55
</body>
3329b413db18 add the new client libraries server side
rougeronj
parents:
diff changeset
    56
</html>