Skip to content

Commit 0ea3197

Browse files
New plugins in an example page (codex-team#431)
* Add code and marker * update * Add shortcuts * Change marker shortcut * Update marker
1 parent 8ee951c commit 0ea3197

6 files changed

Lines changed: 44 additions & 25 deletions

File tree

‎.gitmodules‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,9 @@
1919
[submodule "src/components/tools/paragraph"]
2020
path = src/components/tools/paragraph
2121
url = https://github.com/codex-editor/paragraph
22+
[submodule "example/tools/marker"]
23+
path = example/tools/marker
24+
url = https://github.com/codex-editor/marker
25+
[submodule "example/tools/code"]
26+
path = example/tools/code
27+
url = https://github.com/codex-editor/code

‎build/codex-editor.js‎

Lines changed: 22 additions & 22 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎build/codex-editor.js.map‎

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎example/example.html‎

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@
4646
<script src="./tools/delimiter/dist/bundle.js"></script><!-- Delimiter -->
4747
<script src="./tools/list/dist/bundle.js"></script><!-- List -->
4848
<script src="./tools/quote/dist/bundle.js"></script><!-- Quote -->
49+
<script src="./tools/code/dist/bundle.js"></script><!-- Code -->
4950

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

5254
<!-- Load CodeX Editor's Core -->
@@ -103,12 +105,21 @@
103105
},
104106
},
105107

106-
delimiter: Delimiter,
108+
marker: {
109+
class: Marker,
110+
shortcut: 'CMD+SHIFT+M'
111+
},
107112

113+
code: {
114+
class: CodeTool,
115+
shortcut: 'CMD+SHIFT+D'
116+
},
117+
118+
delimiter: Delimiter,
108119

109120
inlineCode: {
110121
class: InlineCode,
111-
shortcut: 'CMD+SHIFT+M'
122+
shortcut: 'CMD+SHIFT+C'
112123
},
113124
},
114125

‎example/tools/code‎

Submodule code added at 2196eac

‎example/tools/marker‎

Submodule marker added at 9d16ccf

0 commit comments

Comments
 (0)