3
|
1 local Luan = require "luan:Luan.luan"
|
|
2 local error = Luan.error
|
|
3 local Io = require "luan:Io.luan"
|
|
4 local Http = require "luan:http/Http.luan"
|
|
5 local Shared = require "site:/lib/Shared.luan"
|
|
6 local head = Shared.head or error()
|
|
7 local needed_header = Shared.needed_header or error()
|
|
8
|
|
9
|
|
10 return function()
|
|
11 Io.stdout = Http.response.text_writer()
|
|
12 %>
|
|
13 <!doctype html>
|
|
14 <html>
|
|
15 <head>
|
|
16 <% head() %>
|
22
|
17 <title>Reactionary Software - WYSIWYG Web Editor</title>
|
15
|
18 </head>
|
3
|
19 <body>
|
|
20 <% needed_header() %>
|
|
21 <div content>
|
22
|
22 <h1>WYSIWYG Web Editor</h1>
|
3
|
23
|
27
|
24 <p>I would like a WYSIWYG web editor for <a href="freedit.html">FreedIt</a>. I have looked at the numerous modern options and of course they are all horrible. The best I could find was <a href="https://www.tiny.cloud/">TinyMCE</a> and I spent about 2 weeks trying to make this bloated pig work, but I gave up.</p>
|
3
|
25
|
27
|
26 <p>Writing a WYSIWYG web editor is a nice small stand-alone Javascript project. I won't do it because I have too much other work. If someone else does it, great, I would use it in FreedIt. If not, FreedIt will just use BBCode.</p>
|
3
|
27 </div>
|
|
28 </body>
|
|
29 </html>
|
|
30 <%
|
|
31 end
|