Skip to content

Commit

Permalink
Fix #21 add ace editor
Browse files Browse the repository at this point in the history
  • Loading branch information
tanabe committed Oct 23, 2020
1 parent daf9838 commit fef42ab
Show file tree
Hide file tree
Showing 421 changed files with 3,309 additions and 32 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "github-markdown-css"]
path = github-markdown-css
url = https://github.com/sindresorhus/github-markdown-css.git
[submodule "ace-builds"]
path = ace-builds
url = https://github.com/ajaxorg/ace-builds.git
1 change: 1 addition & 0 deletions ace-builds
Submodule ace-builds added at a4103c
9 changes: 6 additions & 3 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ img {
min-height: 100%;
height: auto !important;
height: 100%;
width: 960px;
width: 1100px;
padding: 20px;
margin: 0 auto;
background-color: #fff;
Expand All @@ -63,7 +63,7 @@ img {
#content .mode {
border: 1px solid #ddd;
border-radius: 3px;
width: 465px;
width: 535px;
display: inline-block;
vertical-align: top;
}
Expand Down Expand Up @@ -98,7 +98,10 @@ textarea#markdown {
resize: vertical;
outline: none;
}


#editor {
width: 100%;
}

#footer {
clear: both;
Expand Down
11 changes: 6 additions & 5 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<script type="text/javascript" src="js/jquery.autosize-min.js"></script>
<script type="text/javascript" src="js/marked.min.js"></script>
<script type="text/javascript" src="js/purify.min.js"></script>
<script type="text/javascript" src="js/ace/ace.js"></script>
<script type="text/javascript" src="js/main.js"></script>

<title>Markdown Live Preview</title>
Expand All @@ -30,8 +31,8 @@ <h1><a href="/">Markdown Live Preview</a></h1>

<div id="edit" class="mode">
<div class="content">
<textarea id="markdown">
# Markdown syntax guide

<div id="editor"># Markdown syntax guide

## Headers

Expand Down Expand Up @@ -63,8 +64,8 @@ <h1><a href="/">Markdown Live Preview</a></h1>
1. Item 1
1. Item 2
1. Item 3
1. Item 3a
1. Item 3b
1. Item 3a
1. Item 3b

## Images

Expand Down Expand Up @@ -97,7 +98,7 @@ <h1><a href="/">Markdown Live Preview</a></h1>

## Inline code

This web site is using `markedjs/marked`.</textarea>
This web site is using `markedjs/marked`.</div>
</div>
</div>

Expand Down
17 changes: 17 additions & 0 deletions public/js/ace/ace.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions public/js/ace/ext-beautify.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions public/js/ace/ext-code_lens.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions public/js/ace/ext-elastic_tabstops_lite.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions public/js/ace/ext-emmet.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions public/js/ace/ext-error_marker.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
; (function() {
window.require(["ace/ext/error_marker"], function(m) {
if (typeof module == "object" && typeof exports == "object" && module) {
module.exports = m;
}
});
})();

8 changes: 8 additions & 0 deletions public/js/ace/ext-keybinding_menu.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions public/js/ace/ext-language_tools.js

Large diffs are not rendered by default.

8 changes: 8 additions & 0 deletions public/js/ace/ext-linking.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fef42ab

Please sign in to comment.