summaryrefslogtreecommitdiff
path: root/editor/index.html
diff options
context:
space:
mode:
authorSébastien Dailly <sebastien@chimrod.com>2021-02-24 20:51:43 +0100
committerSébastien Dailly <sebastien@dailly.me>2022-02-07 16:43:33 +0100
commit3f5e3dd53755dd67c24721afc62e32d2187e3583 (patch)
tree16d4e694a1adeb83abcaea12da8fb0a16a11ed00 /editor/index.html
parent274789e733c46e7e20fc1dc918a7251b0206b3d2 (diff)
Update editor code
Diffstat (limited to 'editor/index.html')
-rwxr-xr-xeditor/index.html130
1 files changed, 32 insertions, 98 deletions
diff --git a/editor/index.html b/editor/index.html
index 9f7189b..ed1f9fe 100755
--- a/editor/index.html
+++ b/editor/index.html
@@ -1,18 +1,11 @@
-
<!DOCTYPE html>
<html lang="fr_fr">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
- <meta name="HandheldFriendly" content="True" />
- <meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <meta name="robots" content="noindex, nofollow" />
-
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/theme/stylesheet/style.min.css">
-
-
<link id="pygments-light-theme" rel="stylesheet" type="text/css"
href="//localhost:8000/theme/pygments/monokai.min.css">
@@ -21,26 +14,7 @@
<link rel="stylesheet" type="text/css" href="/theme/font-awesome/css/brands.css">
<link rel="stylesheet" type="text/css" href="/theme/font-awesome/css/solid.css">
<link rel="stylesheet" type="text/css" href="./editor.css">
-
- <link href="//localhost:8000/custom.css" rel="stylesheet">
-
- <link href="//localhost:8000/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Chimrod Atom">
-
-
-
-
-
- <meta name="author" content="Chimrod" />
- <meta name="description" content="" />
-<meta property="og:site_name" content="Chimrod"/>
-<meta property="og:type" content="blog"/>
-<meta property="og:title" content="Chimrod"/>
-<meta property="og:description" content=""/>
-<meta property="og:locale" content="en_US"/>
-<meta property="og:url" content="//localhost:8000"/>
-<meta property="og:image" content="/images/profile.png">
-
-
+ <link href="//localhost:8000/custom.css" rel="stylesheet">
<title>Chimrod &ndash; Editor</title>
@@ -55,24 +29,18 @@
<body class="light-theme">
<aside>
<div>
- <a href="//localhost:8000">
+ <a href="/">
<img src="/profile.png" alt="Chimrod" title="Chimrod">
</a>
<h1>
<a href="//localhost:8000">Chimrod</a>
</h1>
-
-
-
<nav>
<ul class="list">
-
-
-
- <li>
- <a target="_self" href="http://git.chimrod.com" >git</a>
- </li>
+ <li>
+ <a target="_self" href="http://git.chimrod.com" >git</a>
+ </li>
</ul>
</nav>
@@ -82,73 +50,39 @@
</aside>
<main>
-
- <nav>
- <a href="//localhost:8000">Accueil</a>
-
-
- <a href="//localhost:8000/feeds/all.atom.xml">Atom</a>
-
- </nav>
-
-<article class="single">
- <header>
+ <article class="single">
+ <header>
+ <input type="text" id="title" value="Titre" />
+ </header>
+ <div>
+ <div id="text_editor" class="editor" style="margin-bottom: 23px; height: 350px;"></div>
- <h1 id="title">Editor</h1>
- </header>
- <div>
-<div id="text_editor" class="editor" style="margin-bottom: 23px; height: 350px;"></div>
-<div style="display: none" id="content">
- <textarea>
- <h3>Hello ProseMirror</h3>
- <p>This is editable text. You can focus it and start typing.</p>
- <p>To apply styling, you can select a piece of text and manipulate
- its styling from the menu. The basic schema</p>
- </textarea>
-</div>
-
-
-
-
-<script src="/resources/prosemirror.js"></script>
-
- <noscript>Sorry, you need to enable JavaScript to see this page.</noscript>
- <script id="script" type="text/javascript" defer="defer" src="editor.js"></script>
- <script>
- var script = document.getElementById('script');
- script.addEventListener('load', function() {
- var prose = document.getElementById('text_editor');
- var content = document.getElementById('content');
- editor.attach_prosemirror(prose, content);
- });
- </script>
-
-
-
- <footer class="info"> </footer>
- </div>
-</article>
+ <div style="display: none" id="content">
+ <h3>Hello ProseMirror</h3>
+ <p>This is editable text. You can focus it and start typing.</p>
+ <p>To apply styling, you can select a piece of text and manipulate
+ its styling from the menu. The basic schema</p>
+ </div>
+
+ <script src="/resources/prosemirror.js"></script>
+ <noscript>Sorry, you need to enable JavaScript to see this page.</noscript>
+ <script id="script" type="text/javascript" defer="defer" src="editor.js"></script>
+ <script>
+ var script = document.getElementById('script');
+ script.addEventListener('load', function() {
+ var prose = document.getElementById('text_editor');
+ var content = document.getElementById('content');
+ editor.attach_prosemirror(prose, content);
+ });
+ </script>
+ <footer class="info"> </footer>
+ </div>
+ </article>
<footer>
<p>&copy; </p>
<p>
</p> </footer>
</main>
-
-
-
-
-<script type="application/ld+json">
-{
- "@context" : "http://schema.org",
- "@type" : "Blog",
- "name": " Chimrod ",
- "url" : "//localhost:8000",
- "image": "./profile.png",
- "description": ""
-}
-</script>
-
-
</body>
</html>