Skip to content

Commit

Permalink
fix(editor): correct whitespaces appear
Browse files Browse the repository at this point in the history
  • Loading branch information
Novout committed Oct 15, 2021
1 parent 02f28ef commit da217d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/editor/entity/EditorEntityShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
v-if="!edit"
ref="show"
class="overflow-hidden w-full break-words"
:style="{ whiteSpace: 'break-spaces' }"
:class="[
props.entity.type === 'paragraph' && !edit
? style.paragraph.indent
Expand Down Expand Up @@ -115,7 +116,7 @@
block
break-words
"
:style="{ height }"
:style="{ height, whiteSpace: 'break-spaces' }"
@keypress.enter.prevent="onEnter"
@keydown="generalHandler"
@input="onChangeArea"
Expand Down
3 changes: 3 additions & 0 deletions tailwind.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,9 @@ module.exports = {
"aside": "100",
"aside-open": "100",
"min": "-1"
}),
whiteSpace: theme => ({
"some-break": "break-spaces"
})
},
textIndent: {
Expand Down

0 comments on commit da217d3

Please sign in to comment.