-
Notifications
You must be signed in to change notification settings - Fork 0
/
editor.html
111 lines (97 loc) · 4.77 KB
/
editor.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--
XML data was compiled by a reddit community for use with the "Fight Club 5" app.
Google "5e xml files" for more info.
Feel free to use, edit, and redistribute this as you wish.
I don't own any of the XML data anyway.
-->
<title>WYSIWYG Editor - 5etools</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/style.css">
<link rel="stylesheet" href="css/trumbowyg.css">
<link rel="icon" href="favicon.png">
<script type="text/javascript" src="lib/js-cookie.js"></script>
<style id="dynamicStyle"></style> <!-- populated with JS -->
<script type="text/javascript" src="js/styleswitch.js"></script>
</head>
<body>
<header class="hidden-xs hidden-sm">
<div class="container">
<h1>WYSIWYG Editor</h1>
<p>Used to produce strings of HTML for JSON data.</p>
</div>
</header>
<nav class="container">
<ul class="nav nav-pills ">
<li role="presentation"><a href="5etools.html">5eTools</a></li>
<li role="presentation"><a href="rules.html">Rules</a></li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Player Options <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="classes.html">Classes</a></li>
<li role="presentation"><a href="backgrounds.html">Backgrounds</a></li>
<li role="presentation"><a href="feats.html">Feats</a></li>
<li role="presentation"><a href="races.html">Races</a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">DM Tools <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="crcalculator.html">CR Calculator</a></li>
<li role="presentation"><a href="http://kobold.club" target="_blank" title="I could literally never build something better than Kobold Fight Club">Encounter Builder</a></li>
<li role="presentation"><a href="encountergen.html">Encounter Generator</a></li>
<li role="presentation"><a href="lootgen.html">Loot Generator</a></li>
</ul>
</li>
<li role="presentation" class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">References <span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="bestiary.html">Bestiary</a></li>
<li role="presentation"><a href="conditions.html">Conditions</a></li>
<li role="presentation"><a href="cults.html">Cults</a></li>
<li role="presentation"><a href="items.html">Items</a></li>
<li role="presentation"><a href="rewards.html">Other Rewards</a></li>
<li role="presentation"><a href="psionics.html">Psionics</a></li>
<li role="presentation"><a href="spells.html">Spells</a></li>
<li role="presentation"><a href="variantrules.html">Variant Rules</a></li>
</ul>
</li>
<li role="presentation"><a href="statgen.html">Statgen</a></li>
<li role="presentation" class="dropdown active">
<a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Utilities<span class="caret"></span></a>
<ul class="dropdown-menu">
<li role="presentation"><a href="converter.html">Stat Block to JSON</a></li>
<li role="presentation" class="active"><a href="editor.html">WYSIWYG Editor</a></li>
</ul>
</li>
<li role="presentation">
<a class="nightModeToggle" href="#" onclick="styleSwitcher.toggleActiveStyleSheet(); return false;"><script>document.write(styleSwitcher.getActiveStyleSheet() === StyleSwitcher.STYLE_DAY ? "Night Mode" : "Day Mode")</script></a>
</li>
</ul>
</nav>
<main class="container bodyContent">
<div class="row">
<div class="col-sm-12">
<div id="editor">
</div>
<button id="generatecode" class="btn">Generate Code</button>
<hr>
<textarea id="code" style="width: 100%; height: 12em;" readonly></textarea>
</div>
</div>
</main>
<footer class="container">
</footer>
<script type="text/javascript" src="js/utils.js"></script>
<script type="text/javascript" src="js/editor.js"></script>
<script type="text/javascript" src="lib/list.js"></script>
<script type="text/javascript" src="lib/jquery.js"></script>
<script type="text/javascript" src="lib/trumbowyg.js"></script>
<script type="text/javascript" src="lib/bootstrap.js"></script>
</body>
</html>