Commit 5c895467 by Ramdayal Munda

Initial commit

parents
node_modules/
\ No newline at end of file
.a-doc-editor {
background: #6fc;
}
\ No newline at end of file
let isModule = (typeof module !='undefined')?true:false
var ADocEditor = function(customConfig){
return {
}
}
if (isModule) module.exports = ADocEditor
\ No newline at end of file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="./assets/a-doc-editor.css">
<script src="./assets/a-doc-editor.js"></script>
</head>
<body>
<h1>Hello A dOc EdiTor</h1>
<div id="user-container-for-editor"></div>
<h1>Some other data</h1>
<h1>Random heading </h1>
<script src="./script.js"></script>
</body>
</html>
\ No newline at end of file
!(async function(){
let editor = new ADocEditor({ element: "#user-container-for-editor" })
console.log('to run', editor)
})()
\ No newline at end of file
const express = require("express")
const port = 3910;
const path = require("path")
const app = express()
app.use( express.static( path.join( __dirname, 'dist' ) ) )
app.listen( port, ()=>{
console.log(`Doc Editor on http://localhost:${port}`)
} )
{
"name": "a-doc-editor",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"start": "node index.js"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"express": "^4.18.2"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment