Skip to content

Commit

Permalink
update editor (#1068)
Browse files Browse the repository at this point in the history
- fixes #1007 ignore backslash keypress and if contained in paste or drag
- fixes BiblioNexus-Foundation/scripture-editors#128 double-click selection ignores verse numbers and `<notes>`
- fixes BiblioNexus-Foundation/scripture-editors#126 improve toolbar block width
  • Loading branch information
irahopkinson authored Aug 14, 2024
1 parent 5c7e927 commit fcaa770
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 18 deletions.
2 changes: 1 addition & 1 deletion extensions/src/platform-scripture-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"platform-bible-utils": "file:../../../lib/platform-bible-utils"
},
"devDependencies": {
"@biblionexus-foundation/platform-editor": "^0.5.0",
"@biblionexus-foundation/platform-editor": "^0.5.1",
"@biblionexus-foundation/scripture-utilities": "^0.0.3",
"@swc/core": "^1.4.11",
"@types/node": "^20.12.2",
Expand Down
14 changes: 5 additions & 9 deletions extensions/src/platform-scripture-editor/src/_editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -48,14 +48,8 @@
display: inline-block;
pointer-events: none;
margin-block-start: 1em;
}

.editor-input[dir="ltr"] ~ .editor-placeholder {
left: 10px;
}

.editor-input[dir="rtl"] ~ .editor-placeholder {
right: 10px;
margin-inline-start: calc(10px + 2.5vw);
width: fill-available;
}

.editor-text-bold {
Expand Down Expand Up @@ -712,13 +706,15 @@ button.toolbar-item.active i {
}

.toolbar .toolbar-item .text {
display: flex;
line-height: 20px;
vertical-align: middle;
font-size: 14px;
color: #777;
text-overflow: ellipsis;
overflow: hidden;
width: 170px;
white-space: nowrap;
display: inline-block;
height: 20px;
text-align: start;
padding-right: 10px;
Expand Down
16 changes: 8 additions & 8 deletions package-lock.json

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

0 comments on commit fcaa770

Please sign in to comment.