323: Updated js and html templates for consistency and ease of use
This commit is contained in:
@@ -31,11 +31,12 @@
|
||||
"",
|
||||
" constructor() {",
|
||||
" super();",
|
||||
" quill.addStyle(this.css);",
|
||||
" addStyle(this.css);",
|
||||
" this.innerHTML = this.html;",
|
||||
" }",
|
||||
"",
|
||||
" connectedCallback() {",
|
||||
" ",
|
||||
" }",
|
||||
"",
|
||||
"}",
|
||||
@@ -44,28 +45,5 @@
|
||||
"export default Index;"
|
||||
],
|
||||
"description": "Custom Element Template"
|
||||
},
|
||||
|
||||
"*page": {
|
||||
"prefix": "*page",
|
||||
"body": [
|
||||
"<!DOCTYPE html>",
|
||||
"<html lang=\"en\">",
|
||||
" <head>",
|
||||
" <title>Index</title>",
|
||||
" <script type=\"module\">",
|
||||
" import * as quill from './Quill/quill.js';",
|
||||
" window.quill = {};",
|
||||
" Object.entries(quill).forEach(([name, exported]) => window[name] = exported);",
|
||||
" </script>",
|
||||
" <script type=\"module\" src=\"index.js\"></script>",
|
||||
" </head>",
|
||||
" <body>",
|
||||
"",
|
||||
"",
|
||||
" </body>",
|
||||
"</html>"
|
||||
],
|
||||
"description": "Use the DOM collection of functions"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user