Skip to content

Commit

Permalink
New plugins in an example page (#431)
Browse files Browse the repository at this point in the history
* Add code and marker

* update

* Add shortcuts

* Change marker shortcut

* Update marker
  • Loading branch information
PolinaShneider committed Aug 21, 2018
1 parent 8ee951c commit 0ea3197
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 25 deletions.
6 changes: 6 additions & 0 deletions .gitmodules
Expand Up @@ -19,3 +19,9 @@
[submodule "src/components/tools/paragraph"]
path = src/components/tools/paragraph
url = https://github.com/codex-editor/paragraph
[submodule "example/tools/marker"]
path = example/tools/marker
url = https://github.com/codex-editor/marker
[submodule "example/tools/code"]
path = example/tools/code
url = https://github.com/codex-editor/code
44 changes: 22 additions & 22 deletions build/codex-editor.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion build/codex-editor.js.map

Large diffs are not rendered by default.

15 changes: 13 additions & 2 deletions example/example.html
Expand Up @@ -46,7 +46,9 @@
<script src="./tools/delimiter/dist/bundle.js"></script><!-- Delimiter -->
<script src="./tools/list/dist/bundle.js"></script><!-- List -->
<script src="./tools/quote/dist/bundle.js"></script><!-- Quote -->
<script src="./tools/code/dist/bundle.js"></script><!-- Code -->

<script src="./tools/marker/dist/bundle.js"></script><!-- Marker -->
<script src="./tools/inline-code/dist/bundle.js"></script><!-- Inline Code -->

<!-- Load CodeX Editor's Core -->
Expand Down Expand Up @@ -103,12 +105,21 @@
},
},

delimiter: Delimiter,
marker: {
class: Marker,
shortcut: 'CMD+SHIFT+M'
},

code: {
class: CodeTool,
shortcut: 'CMD+SHIFT+D'
},

delimiter: Delimiter,

inlineCode: {
class: InlineCode,
shortcut: 'CMD+SHIFT+M'
shortcut: 'CMD+SHIFT+C'
},
},

Expand Down
1 change: 1 addition & 0 deletions example/tools/code
Submodule code added at 2196ea
1 change: 1 addition & 0 deletions example/tools/marker
Submodule marker added at 9d16cc

0 comments on commit 0ea3197

Please sign in to comment.