Skip to content

Commit fa5d9e4

Browse files
authored
add header plugin (#182)
1 parent d3d8b95 commit fa5d9e4

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

.eslintrc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898

9999
"CodexEditor": true,
100100
"Text": true,
101-
"Term": true
101+
"Term": true,
102+
"Header": true
102103
}
103104
}

public/build/bundle.css

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

public/build/bundle.js

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

public/codex.editor

public/javascripts/editor.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ export default class Editor {
2222
* List of plugins
2323
*/
2424
this.plugins = [
25-
'text'
25+
'text',
26+
'header'
2627
];
2728

2829
/**
@@ -100,6 +101,7 @@ export default class Editor {
100101
placeholder: 'Your story',
101102
tools: {
102103
paragraph: Text,
104+
header: Header,
103105
term: Term
104106
},
105107
toolsConfig: {

0 commit comments

Comments
 (0)