aboutsummaryrefslogtreecommitdiff
path: root/editor/editor.html
blob: 9048e028c9712a9c0ac80723b5c9ee3749029744 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
<!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">


  <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 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">



  <title>Chimrod &ndash; 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="//localhost:8000">
        <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>
        </ul>
      </nav>

      <ul class="social">
      </ul>
    </div>

  </aside>
  <main>

    <nav>
      <a href="//localhost:8000">Accueil</a>


      <a href="//localhost:8000/feeds/all.atom.xml">Atom</a>

    </nav>

<article class="single">
  <header>
    
    <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="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 quill = document.getElementById('text-container');
      editor.attach_quill(quill);
      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>