1 | <!DOCTYPE html> |
---|
2 | <!-- |
---|
3 | Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. |
---|
4 | For licensing, see LICENSE.md or http://ckeditor.com/license |
---|
5 | --> |
---|
6 | <html> |
---|
7 | <head> |
---|
8 | <meta charset="utf-8"> |
---|
9 | <title>CKEditor Sample</title> |
---|
10 | <script src="../ckeditor.js"></script> |
---|
11 | <script src="../jquery-2.1.1.js" type="text/javascript"></script> |
---|
12 | <script src="js/sample.js"></script> |
---|
13 | <link rel="stylesheet" href="css/samples.css"> |
---|
14 | <link rel="stylesheet" href="toolbarconfigurator/lib/codemirror/neo.css"> |
---|
15 | </head> |
---|
16 | <body> |
---|
17 | <form> |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | <textarea cols="80" id="editor1" name="editor1" rows="10"> |
---|
23 | |
---|
24 | |
---|
25 | </textarea> |
---|
26 | |
---|
27 | <br /> |
---|
28 | <br /> |
---|
29 | <input type="button" id="btnsubmit" onclick="ImportHtml()" value="Click here for test"/> |
---|
30 | <script type="text/javascript"> |
---|
31 | |
---|
32 | CKEDITOR.replace('editor1', { |
---|
33 | fullPage: true, |
---|
34 | allowedContent: true, |
---|
35 | extraPlugins: '' |
---|
36 | }); |
---|
37 | |
---|
38 | function ImportHtml() { |
---|
39 | |
---|
40 | $('iframe').contents().find('body').append('<h1>This Header1</h1><h2>This Header2</h2><h3>This Header3</h3><h4>This Header4</h4>'); |
---|
41 | |
---|
42 | } |
---|
43 | |
---|
44 | </script> |
---|
45 | |
---|
46 | </form> |
---|
47 | </body> |
---|
48 | |
---|
49 | |
---|
50 | |
---|
51 | </html> |
---|