New plugins in an example page (#431)

* Add code and marker

* update

* Add shortcuts

* Change marker shortcut

* Update marker
This commit is contained in:
Polina Shneider 2018-08-21 21:30:32 +03:00 committed by GitHub
parent 8ee951ca76
commit 0ea3197a73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 44 additions and 25 deletions

6
.gitmodules vendored
View file

@ -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

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -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 -->
@ -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'
},
},

1
example/tools/code Submodule

@ -0,0 +1 @@
Subproject commit 2196eac8d8e57397f99f7aa0f135361f4a2b5800

1
example/tools/marker Submodule

@ -0,0 +1 @@
Subproject commit 9d16ccf1458e8cf90fc04c30cfc174fec4e7409c