forked from jaredreich/pell
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdemo.html
More file actions
53 lines (49 loc) · 1.49 KB
/
Copy pathdemo.html
File metadata and controls
53 lines (49 loc) · 1.49 KB
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="user-scalable=1.0,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0">
<title>spell</title>
<link rel="stylesheet" type="text/css" href="spell.css">
<style>
html, body {
font-family: "Segoe UI", Calibri, sans-serif;
font-size: 16px;
}
.content {
box-sizing: border-box;
margin: 1em auto;
max-width: 1200px;
}
</style>
</head>
<body>
<div class="content">
<h1>spell</h1>
<div id="container"></div>
<h2>Differences with original <a href="https://github.com/jaredreich/pell" target="_blank">pell</a></h2>
<ul>
<li>Even smaller than the original: <strong>912 bytes</strong> minified and gzipped</li>
<li>Moooore features: <ul>
<li>superscript / subscript</li>
<li>text align left/center/right/justify</li>
<li>indent / outdent</li>
<li>font family</li>
<li>font size</li>
<li>text foreground color and highlight color</li>
<li>more headings</li>
<li>clear formatting</li>
<li>unlink</li>
<li>insert video</li>
<li>copy / cut / paste</li>
<li>undo / redo</li>
</ul></li>
<li>Custom icon font</li>
<li>Less dev dependencies, bring your own transpiler</li>
<li>Actions are spread accross different action bars</li>
<li>No config, edit the <a href="spell.js" target="_blank">source</a> directly and comment the actions you don't want</li>
</ul>
</div>
<script src="spell.min.js"></script>
<script>document.getElementById('container').appendChild(spell())</script>
</body>
</html>