TrainSignManage/WebFrame/bower_components/ckeditor/samples/old/sourcedialog/sourcedialog.html

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

<!DOCTYPE html>
<!--
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
-->
<html>
<head>
	<meta charset="utf-8">
	<title>Editing source code in a dialog &mdash; CKEditor Sample</title>
	<script src="../../../ckeditor.js"></script>
	<link rel="stylesheet" href="../../../samples/old/sample.css">
	<meta name="ckeditor-sample-name" content="Editing source code in a dialog">
	<meta name="ckeditor-sample-group" content="Plugins">
	<meta name="ckeditor-sample-description" content="Editing HTML content of both inline and classic editor instances.">
	<meta name="ckeditor-sample-isnew" content="1">
	<style>

		#editable
		{
			padding: 10px;
			float: left;
		}

	</style>
</head>
<body>
	<h1 class="samples">
		<a href="../../../samples/old/index.html">CKEditor Samples</a> &raquo; Editing source code in a dialog
	</h1>
	<div class="warning deprecated">
		This sample is not maintained anymore. Check out its <a href="https://sdk.ckeditor.com/samples/sourcearea.html">brand new version in CKEditor SDK</a>.
	</div>
	<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 classic (<code>iframe</code>-based) 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 classic
			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>
});

// Classic (iframe-based) editor.
CKEDITOR.replace( 'textarea_id', {
	<strong>extraPlugins: 'sourcedialog'</strong>,
	removePlugins: 'sourcearea'
});
</pre>
		<p>
			Note that you may want to include <code>removePlugins: 'sourcearea'</code>
后面还有 61 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。