Skip to content

Commit

Permalink
Built website from 62d8fcb
Browse files Browse the repository at this point in the history
  • Loading branch information
gpoitch committed Nov 14, 2024
0 parents commit e14d13b
Show file tree
Hide file tree
Showing 37 changed files with 32,378 additions and 0 deletions.
Binary file added demo/.DS_Store
Binary file not shown.
22 changes: 22 additions & 0 deletions demo/debug.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#toolbar button.active {
font-weight: bold;
}

#error {
color: red;
}

#error .name {
font-weight: bold;
}

#editor {
outline: 1px solid black;
width: 200px;
min-height: 300px;
}

#editor[contenteditable="false"] {
color: #9e9e9e;
background-color: #f1f1f1;
}
68 changes: 68 additions & 0 deletions demo/debug.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Mobiledoc Kit Debug</title>
<script type="module" src="./debug.js"></script>
<link rel="stylesheet" href="./mobiledoc.css">
<link rel="stylesheet" href="./debug.css">
</head>
<body>

<h1>Mobiledoc Kit Debug Page</h1>

<div id='toolbar'>
<button class='toggle' data-action='toggleSection' data-toggle='h1'>h1</button>
<button class='toggle' data-action='toggleSection' data-toggle='h2'>h2</button>
<button class='toggle' data-action='toggleMarkup' data-toggle='strong'>strong</button>
<button class='toggle' data-action='toggleMarkup' data-toggle='em'>em</button>
<button class='insert-atom' data-name='mention'>@mention</button>
<button class='insert-atom' data-name='click'>@click</button>
<button class='insert-card' data-name='movable'>movable card</button>
<button class='toggle-method' data-on='disableEditing' data-off='enableEditing'>
toggle editable
</button>
</div>

<div id="editor"></div>

<div>
<h2>Editor Info</h2>

<div>
<h3>Cursor</h3>
<div id='cursor'>
</div>
</div>

<div>
<h3>Post</h3>
<div id='post'>
</div>
</div>

<div>
<h3>Input Mode</h3>
<div id='input-mode'>
</div>
</div>

<div>
<h3>Error</h3>
<div id='error'>
<span class='name'></span>
<span class='message'></span>
</div>
</div>
</div>

<div>
<h2>Browser Info</h2>

<div>
<h3>Selection</h3>
<div id="selection"></div>
</div>
</div>
</body>
</html>
Loading

0 comments on commit e14d13b

Please sign in to comment.