summaryrefslogtreecommitdiff
path: root/plugins/sourcedialog/samples/sourcedialog.html
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sourcedialog/samples/sourcedialog.html')
-rw-r--r--plugins/sourcedialog/samples/sourcedialog.html118
1 files changed, 0 insertions, 118 deletions
diff --git a/plugins/sourcedialog/samples/sourcedialog.html b/plugins/sourcedialog/samples/sourcedialog.html
deleted file mode 100644
index 298e18c..0000000
--- a/plugins/sourcedialog/samples/sourcedialog.html
+++ /dev/null
@@ -1,118 +0,0 @@
-<!DOCTYPE html>
-<!--
-Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
-For licensing, see LICENSE.html or http://ckeditor.com/license
--->
-<html>
-<head>
- <title>Raw HTML editing with dialog-based source editor &mdash; CKEditor Sample</title>
- <meta charset="utf-8">
- <script src="../../../ckeditor.js"></script>
- <link rel="stylesheet" href="../../../samples/sample.css">
- <meta name="ckeditor-sample-name" content="Raw HTML editing with dialog-based source editor">
- <meta name="ckeditor-sample-group" content="Plugins">
- <meta name="ckeditor-sample-description" content="Editing HTML content of both inline and framed editor instances.">
- <meta name="ckeditor-sample-isnew" content="1">
- <style>
-
- #editable
- {
- padding: 10px;
- float: left;
- }
-
- </style>
-</head>
-<body>
- <h1 class="samples">
- <a href="../../../samples/index.html">CKEditor Samples</a> &raquo; Raw HTML editing with dialog-based source editor
- </h1>
- <div class="description">
- <p>
- <strong>Sourcedialog</strong> plugin provides an easy way to edit raw HTML content
- of an editor, similarly to what is possible with <strong>Sourcearea</strong>
- plugin for framed instances but using dialogs. Thanks to that, it's also possible
- to manipulate raw content of inline editor instances.
- </p>
- <p>
- This plugin extends the toolbar with a button,
- which opens a dialog window with a source code editor. It works with both framed
- and inline instances. To enable this
- plugin, basically add <code>extraPlugins: 'sourcedialog'</code> to editor's
- config:
- </p>
-<pre class="samples">
-// Inline editor.
-CKEDITOR.inline( 'editable', {
- <strong>extraPlugins: 'sourcedialog'</strong>
-});
-
-// Framed editor.
-CKEDITOR.replace( 'textarea_id', {
- <strong>extraPlugins: 'sourcedialog'</strong>,
- removePlugins: 'sourcearea'
-});
-</pre>
- <p>
- Note that you may want to include <code>removePlugins: 'sourcearea'</code>
- in your config when using <strong>Sourcedialog</strong> in framed instances.
- This prevents feature redundancy.
- </p>
- <p>
- Note that <code>editable</code> in the code above is the <code>id</code>
- attribute of the <code>&lt;div&gt;</code> element to be converted into an inline instance.
- </p>
- <p>
- Note that <code><em>textarea_id</em></code> in the code above is the <code>id</code> attribute of
- the <code>&lt;textarea&gt;</code> element to be replaced with CKEditor.
- </p>
- </div>
- <div>
- <label for="editor1">
- Inline editor:
- </label>
- <div id="editor1" contenteditable="true" style="padding: 5px 20px;">
- <p>This is some <strong>sample text</strong>. You are using <a href="http://ckeditor.com/">CKEditor</a>.</p>
- </div>
- </div>
- <br>
- <div>
- <label for="editor2">
- Framed editor:
- </label>
- <textarea cols="80" id="editor2" name="editor2" rows="10">
- This is some &lt;strong&gt;sample text&lt;/strong&gt;. You are using &lt;a href="http://ckeditor.com/"&gt;CKEditor&lt;/a&gt;.
- </textarea>
- </div>
- <script>
-
- // We need to turn off the automatic editor creation first.
- CKEDITOR.disableAutoInline = true;
-
- var config = {
- toolbarGroups: [
- { name: 'mode' },
- { name: 'basicstyles' },
- { name: 'links' }
- ],
- extraPlugins: 'sourcedialog',
- removePlugins: 'sourcearea'
- }
-
- CKEDITOR.inline( 'editor1', config );
- CKEDITOR.replace( 'editor2', config );
-
- </script>
- <div id="footer">
- <hr>
- <p>
- CKEditor - The text editor for the Internet - <a class="samples" href="http://ckeditor.com/">
- http://ckeditor.com</a>
- </p>
- <p id="copy">
- Copyright &copy; 2003-2013, <a class="samples" href="http://cksource.com/">CKSource</a>
- - Frederico Knabben. All rights reserved.
- </p>
- </div>
-</body>
-</html>