<!DOCTYPE html> <html lang="fr_fr"> <head> <meta charset="utf-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge" /> <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"> <link rel="stylesheet" type="text/css" href="/theme/font-awesome/css/fontawesome.css"> <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 rel="stylesheet" type="text/css" href="./modal.css"> <link rel="stylesheet" type="text/css" href="./forms.css"> <link href="//localhost:8000/custom.css" rel="stylesheet"> <title>Chimrod – Editor</title> <style> #text-container { height: 350px; } .ProseMirror { height: 330px; overflow-y: auto; box-sizing: border-box; -moz-box-sizing: border-box } textarea { width: 100%; height: 400px; border: 1px solid silver; box-sizing: border-box; padding: 3px 10px; border: none; outline: none } </style> </head> <body class="light-theme"> <aside> <div> <!-- <a href="/"> <img src="/profile.png" alt="Chimrod" title="Chimrod"> </a> --> <h1> <a href="//localhost:8000">Notes</a> </h1> <nav> <ul class="list"> <li> <a target="_self" href="http://git.chimrod.com" >git</a> </li> </ul> </nav> <ul class="social"> </ul> </div> </aside> <main> <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> <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>© </p> <p> </p> </footer> </main> </body> </html>