120 行
3.8 KiB
HTML
120 行
3.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<title>Full Editor - Quill Rich Text Editor</title>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="language" content="english">
|
|
<meta name="viewport" content="width=device-width">
|
|
|
|
<meta name="description" content="Quill is a free, open source WYSIWYG editor built for the modern web. Completely customize it for any need with its modular architecture and expressive API.">
|
|
|
|
<meta name="twitter:card" content="summary">
|
|
<meta name="twitter:site" content="@quilljs">
|
|
|
|
<meta name="twitter:title" content="Full Editor - Quill">
|
|
|
|
<meta name="twitter:description" content="Quill is a free, open source rich text editor built for the modern web.">
|
|
<meta name="twitter:image" content="https://quilljs.com/assets/images/brand-asset.png">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:url" content="https://quilljs.com/standalone/full/">
|
|
<meta property="og:image" content="https://quilljs.com/assets/images/brand-asset.png">
|
|
<meta property="og:title" content="Full Editor - Quill">
|
|
<meta property="og:site_name" content="Quill">
|
|
|
|
<link rel="canonical" href="https://quilljs.com/standalone/full/">
|
|
<link type="application/atom+xml" rel="alternate" href="https://quilljs.com/feed.xml" title="Quill - Your powerful rich text editor" />
|
|
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.css" />
|
|
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/monokai-sublime.min.css" />
|
|
|
|
<link rel="stylesheet" href="../quill.snow.css" />
|
|
|
|
<style>
|
|
body > #standalone-container {
|
|
margin: 50px auto;
|
|
max-width: 720px;
|
|
}
|
|
#editor-container {
|
|
height: 350px;
|
|
}
|
|
</style>
|
|
|
|
|
|
</head>
|
|
<body>
|
|
|
|
<div id="standalone-container">
|
|
<div id="toolbar-container">
|
|
<span class="ql-formats">
|
|
<select class="ql-font"></select>
|
|
<select class="ql-size"></select>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-bold"></button>
|
|
<button class="ql-italic"></button>
|
|
<button class="ql-underline"></button>
|
|
<button class="ql-strike"></button>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<select class="ql-color"></select>
|
|
<select class="ql-background"></select>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-script" value="sub"></button>
|
|
<button class="ql-script" value="super"></button>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-header" value="1"></button>
|
|
<button class="ql-header" value="2"></button>
|
|
<button class="ql-blockquote"></button>
|
|
<button class="ql-code-block"></button>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-list" value="ordered"></button>
|
|
<button class="ql-list" value="bullet"></button>
|
|
<button class="ql-indent" value="-1"></button>
|
|
<button class="ql-indent" value="+1"></button>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-direction" value="rtl"></button>
|
|
<select class="ql-align"></select>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-link"></button>
|
|
<button class="ql-image"></button>
|
|
<button class="ql-video"></button>
|
|
<button class="ql-formula"></button>
|
|
</span>
|
|
<span class="ql-formats">
|
|
<button class="ql-clean"></button>
|
|
</span>
|
|
</div>
|
|
<div id="editor-container"></div>
|
|
</div>
|
|
|
|
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.7.1/katex.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
|
|
|
|
<script src="../quill.min.js"></script>
|
|
|
|
<script>
|
|
var quill = new Quill('#editor-container', {
|
|
modules: {
|
|
formula: true,
|
|
syntax: true,
|
|
toolbar: '#toolbar-container'
|
|
},
|
|
placeholder: 'Compose an epic...',
|
|
theme: 'snow'
|
|
});
|
|
</script>
|
|
|
|
|
|
</body>
|
|
</html>
|