Subversion-Projekte lars-tiefland.ci

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
776 lars 1
<!DOCTYPE html>
2
<!--
3
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
4
For licensing, see LICENSE.md or http://ckeditor.com/license
5
-->
6
<html>
7
 
8
    <head>
9
        <meta charset="utf-8">
10
        <title>Append To Page Element Using JavaScript Code &mdash; CKEditor Sample</title>
11
        <script src="../ckeditor.js"></script>
12
        <link rel="stylesheet" href="sample.css"> </head>
13
 
14
    <body>
15
        <h1 class="samples">
16
            <a href="index.html">CKEditor Samples</a> &raquo; Append To Page Element Using JavaScript Code </h1>
17
        <div id="section1">
18
            <div class="description">
19
                <p> 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>,
20
                    a target container to be replaced is no longer necessary. A new editor instance is inserted directly wherever it is desired. </p> <pre class="samples">CKEDITOR.appendTo( '<em>container_id</em>',
21
	{ /* Configuration options to be used. */ }
22
	'Editor content to be used.'
23
);</pre> </div>
24
            <script>
25
                // This call can be placed at any point after the
26
                // DOM element to append CKEditor to or inside the <head><script>
27
                // in a window.onload event handler.
28
                // Append a CKEditor instance using the default configuration and the
29
                // provided content to the <div> element of ID "section1".
30
                CKEDITOR.appendTo('section1', null, '<p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>');
31
            </script>
32
        </div>
33
        <br>
34
        <div id="footer">
35
            <hr>
36
            <p> CKEditor - The text editor for the Internet -
37
                <a class="samples" href="http://ckeditor.com/">http://ckeditor.com</a>
38
            </p>
39
            <p id="copy"> Copyright &copy; 2003-2014,
40
                <a class="samples" href="http://cksource.com/">CKSource</a> - Frederico Knabben. All rights reserved. </p>
41
        </div>
42
    </body>
43
 
44
</html>