我是一个快乐的业余爱好者试图建立自己的网站,并认为我会使用Quill作为一个好的短信用户的文章和东西。当浏览开始的示例时,它根本不起作用。
<!DOCTYPE html>
<html>
<head>
<script src="https://cdn.quilljs.com/1.1.9/quill.js"></script>
<link href="https://cdn.quilljs.com/1.1.9/quill.snow.css" rel="stylesheet">
<script src="https://cdn.quilljs.com/1.1.9/quill.core.js"></script>
<link href="https://cdn.quilljs.com/1.1.9/quill.core.css" rel="stylesheet">
</head>
<body>
<div id="editor">
<p>Hello World!</p>
<p>Some initial <strong>bold</strong> text</p>
<p><br></p>
</div>
<script>
var quill = new Quill('#editor', {
theme: 'snow'
});
</script>
</body>
</html>它在控制台中给出了以下错误消息:
奎尔不能导入主题/雪。你确定它是注册的吗?

我遗漏了什么?我应该在哪里和怎么登记?
快速编辑:
也应该说,我尝试了冒泡(当然,改变了CSS的头部)。当我尝试使用模块时,我对每个模块也得到相同的错误消息。
发布于 2017-01-09 01:04:45
你是包括两次奎尔和第二次是一个减少的版本没有主题。只需包括主库:
<script src="https://cdn.quilljs.com/1.1.9/quill.js"></script>
<link href="https://cdn.quilljs.com/1.1.9/quill.snow.css" rel="stylesheet">发布于 2017-04-07 15:40:43
核心应该比其他任何事情都要有效。
<!-- Core build with no theme, formatting, non-essential modules -->
<link href="//cdn.quilljs.com/1.2.3/quill.core.css" rel="stylesheet">
<script src="//cdn.quilljs.com/1.2.3/quill.core.js"></script>
<!-- Main Quill library -->
<script src="//cdn.quilljs.com/1.2.3/quill.js"></script>
<script src="//cdn.quilljs.com/1.2.3/quill.min.js"></script>
<!-- Theme included stylesheets -->
<link href="//cdn.quilljs.com/1.2.3/quill.snow.css" rel="stylesheet">
<link href="//cdn.quilljs.com/1.2.3/quill.bubble.css" rel="stylesheet">发布于 2017-04-07 21:54:19
以下是码页的工作版本
它所用的只是:
<link href="https://cdn.quilljs.com/1.2.2/quill.snow.css" rel="stylesheet">
<script src="https://cdn.quilljs.com/1.2.2/quill.js"></script>我用的容器是:
<div id="myDiv"></div>初始化脚本是最简单的:
var quill = new Quill('#myDiv', {theme: 'snow'});没有错误。
https://stackoverflow.com/questions/41539553
复制相似问题