You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
1.0 KiB
1 line
1.0 KiB
2 years ago
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d212bb8"],{aa57:function(e,n,t){"use strict";t.r(n);var l=function(){var e=this,n=e.$createElement,t=e._self._c||n;return t("div",[t("div",{attrs:{id:"editor"}}),t("button",{on:{click:e.btnClick}},[e._v("获取内容")])])},i=[],o=t("9339"),r=t.n(o),u=(t("a753"),t("8096"),t("14e1"),{name:"edit",data:function(){return{quill:null}},mounted:function(){var e=[["bold","italic","underline","strike"],["blockquote","code-block"],[{header:1},{header:2}],[{list:"ordered"},{list:"bullet"}],[{script:"sub"},{script:"super"}],[{indent:"-1"},{indent:"+1"}],[{direction:"rtl"}],[{size:["small",!1,"large","huge"]}],[{header:[1,2,3,4,5,6,!1]}],[{color:[]},{background:[]}],[{font:[]}],[{align:[]}],["clean"],["link","image"]];this.quill=new r.a("#editor",{modules:{toolbar:e},theme:"snow"})},methods:{btnClick:function(){console.log(this.quill.getContents()),console.log(this.quill.root.innerHTML)}}}),c=u,a=t("2877"),s=Object(a["a"])(c,l,i,!1,null,null,null);n["default"]=s.exports}}]);
|