Skip to content

Commit

Permalink
feat: add break hint
Browse files Browse the repository at this point in the history
  • Loading branch information
mydearxym committed Sep 18, 2021
1 parent b1ba0fa commit 3fe6676
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 12 deletions.
2 changes: 1 addition & 1 deletion dist/bundle.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@groupher/editor-quote",
"version": "2.3.8",
"version": "2.3.9",
"keywords": [
"codex editor",
"tool",
Expand Down Expand Up @@ -31,6 +31,6 @@
"webpack-cli": "^3.2.3"
},
"dependencies": {
"@groupher/editor-utils": "^0.2.52"
"@groupher/editor-utils": "^0.2.54"
}
}
3 changes: 3 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,16 @@

.cdx-quote-short {
margin-left: 1px;
padding-left: 8px;
min-height: 0;
border: none;
border-radius: 0;
border-left: 4px solid;
border-left-color: #388ae5;
color: grey;
box-shadow: none;
margin-top: 10px;
margin-bottom: 10px;
}

.cdx-quote-long {
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import {
make,
highlightSettingIcon,
enableCtrlEnterBreak,
addBreakHint,
} from "@groupher/editor-utils";

/**
Expand Down Expand Up @@ -151,6 +152,7 @@ export default class Quote {
this.element = this.drawShortQuote();

enableCtrlEnterBreak(this.element, this.api);
addBreakHint(this.element, { right: "12px", bottom: "-15px" });

return this.element;
}
Expand Down

0 comments on commit 3fe6676

Please sign in to comment.