|
|
@@ -308,25 +308,27 @@ export default Vue.extend({
|
|
|
this.templateInfo.name = templateInfo.name
|
|
|
this.templateInfo.description = templateInfo.description
|
|
|
this.code = templateInfo.content
|
|
|
- hugerte.init({
|
|
|
- selector: '#editor-creat',
|
|
|
- plugins: [
|
|
|
- "advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
|
|
|
- "help", "image", "insertdatetime", "link", "lists", "media",
|
|
|
- "preview", "searchreplace", "table", "visualblocks",
|
|
|
- ],
|
|
|
- toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
|
|
- skin_url: 'default',
|
|
|
- content_css: 'default',
|
|
|
- statusbar: false,
|
|
|
- height: '100%',
|
|
|
- width: '100%'
|
|
|
- }).then(editor => {
|
|
|
- hugerte.activeEditor.setContent(this.code)
|
|
|
- }).catch(err => {
|
|
|
- })
|
|
|
this.loading = false
|
|
|
}
|
|
|
+ hugerte.init({
|
|
|
+ selector: '#editor-creat',
|
|
|
+ plugins: [
|
|
|
+ "advlist", "anchor", "autolink", "charmap", "code", "fullscreen",
|
|
|
+ "help", "image", "insertdatetime", "link", "lists", "media",
|
|
|
+ "preview", "searchreplace", "table", "visualblocks",
|
|
|
+ ],
|
|
|
+ toolbar: "undo redo | styles | bold italic underline strikethrough | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image",
|
|
|
+ skin_url: 'default',
|
|
|
+ content_css: 'default',
|
|
|
+ statusbar: false,
|
|
|
+ height: '100%',
|
|
|
+ width: '100%',
|
|
|
+ language_url: '/static/hugerte/langs/zh_CN.js',
|
|
|
+ language: 'zh_CN'
|
|
|
+ }).then(editor => {
|
|
|
+ hugerte.activeEditor.setContent(this.code)
|
|
|
+ }).catch(err => {
|
|
|
+ })
|
|
|
},
|
|
|
saveTemp() {
|
|
|
if (this.loading) { return }
|