【发布时间】:2018-07-26 20:29:55
【问题描述】:
我在我的网络应用中实现了 Quill 文本编辑器。我在 asp.net core 2.1 中创建了一个网络应用程序
Quill 文本编辑器调整图像大小在 IE 中可以正常工作,但在 Chrome 或 Edge 中无法正常工作。
这是其他浏览器的已知问题吗?如果是这样,只有 IE 适合通过 Quill 编辑器调整图像大小?
如果你告诉我只有 IE 可以通过 Quill 调整图像大小,我猜我必须使用不同的文本编辑器.. 但希望不会.. 如果我必须使用不同的,你能推荐一个开源的吗?
提前谢谢你!
这是我在 html 中所做的:
<!-- Main Quill library -->
<script src="//cdn.quilljs.com/1.3.6/quill.min.js"></script>
<!-- Theme included stylesheets -->
<link href="//cdn.quilljs.com/1.3.6/quill.snow.css" rel="stylesheet">
<div class="col-md-10 col-md-offset-1">
<div class="form-group">
<div id="editor-container" style="height:600px"></div>
</div>
</div>
<script type="text/javascript">
var quill = new Quill('#editor-container', {
modules: {
toolbar: [
[{ header: [1, 2, false] }],
[{ 'font': [] }],
[{ 'color': [] }, { 'background': [] }],
['bold', 'italic', 'underline', 'strike', 'blockquote'],
[{ 'list': 'ordered' }, { 'list': 'bullet' }],
[{ 'indent': '-1' }, { 'indent': '+1' }], // outdent/indent
[{ 'align': [] }],
['image', 'link'],
]
},
theme: 'snow' // or 'bubble'
});
</script>
【问题讨论】:
标签: javascript wysiwyg text-editor quill