| 1 | <!DOCTYPE html> |
|---|
| 2 | <!-- |
|---|
| 3 | Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved. |
|---|
| 4 | For licensing, see LICENSE.html or http://ckeditor.com/license |
|---|
| 5 | --> |
|---|
| 6 | <html> |
|---|
| 7 | <head> |
|---|
| 8 | <title>#9899</title> |
|---|
| 9 | <meta charset="utf-8"> |
|---|
| 10 | <script src="../../ckeditor.js"></script> |
|---|
| 11 | <link rel="stylesheet" href="../../../samples/sample.css"> |
|---|
| 12 | </head> |
|---|
| 13 | <body> |
|---|
| 14 | <div> |
|---|
| 15 | <textarea cols="80" id="editor1" name="editor2" rows="10"><p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p></textarea> |
|---|
| 16 | <br> |
|---|
| 17 | <div id="editor2" contenteditable="true"> |
|---|
| 18 | <p>This is some <strong>sample text</strong>. You are using <a data-cke-saved-href="http://ckeditor.com/" href="http://ckeditor.com/">CKEditor</a>.</p> |
|---|
| 19 | </div> |
|---|
| 20 | <script> |
|---|
| 21 | |
|---|
| 22 | CKEDITOR.replace( 'editor1', { |
|---|
| 23 | toolbar: [ |
|---|
| 24 | [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ], |
|---|
| 25 | [ 'FontSize', 'TextColor', 'BGColor' ], |
|---|
| 26 | [ 'UIColor' ] |
|---|
| 27 | ] |
|---|
| 28 | }); |
|---|
| 29 | |
|---|
| 30 | // Disable automatic creation of inline instances. |
|---|
| 31 | CKEDITOR.disableAutoInline = true; |
|---|
| 32 | |
|---|
| 33 | CKEDITOR.inline( 'editor2', { |
|---|
| 34 | toolbar: [ |
|---|
| 35 | [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList', '-', 'Link', 'Unlink' ], |
|---|
| 36 | [ 'FontSize', 'TextColor', 'BGColor' ], |
|---|
| 37 | [ 'UIColor' ] |
|---|
| 38 | ] |
|---|
| 39 | }); |
|---|
| 40 | |
|---|
| 41 | </script> |
|---|
| 42 | </div> |
|---|
| 43 | </body> |
|---|
| 44 | </html> |
|---|