replace non-breaking-space with html entity

This commit is contained in:
Hans Pagel
2020-09-27 11:01:25 +02:00
parent 5d9b16c9f1
commit 49b47c837b
16 changed files with 79 additions and 79 deletions

View File

@@ -23,8 +23,8 @@ yarn add @tiptap/extension-blockquote
| blockquote | — | Wrap content in a blockquote. | | blockquote | — | Wrap content in a blockquote. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows/Linux: `Control` `Shift` `9` * Windows/Linux: `Control` `Shift` `9`
* macOS: `Cmd` `Shift` `9` * macOS: `Cmd` `Shift` `9`
## Source code ## Source code
[packages/extension-blockquote/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-blockquote/) [packages/extension-blockquote/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-blockquote/)

View File

@@ -27,8 +27,8 @@ yarn add @tiptap/extension-bold
| bold | — | Mark text bold. | | bold | — | Mark text bold. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows/Linux: `Control` `B` * Windows/Linux: `Control` `B`
* macOS: `Cmd` `B` * macOS: `Cmd` `B`
## Source code ## Source code
[packages/extension-bold/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bold/) [packages/extension-bold/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bold/)

View File

@@ -27,7 +27,7 @@ yarn add @tiptap/extension-bullet-list @tiptap/extension-list-item
| bullet_list | — | Toggle a bullet list. | | bullet_list | — | Toggle a bullet list. |
## Keyboard shortcuts ## Keyboard shortcuts
* `Control` `Shift` `8` * `Control` `Shift` `8`
## Source code ## Source code
[packages/extension-bullet-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bullet-list/) [packages/extension-bullet-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-bullet-list/)

View File

@@ -27,7 +27,7 @@ yarn add @tiptap/extension-code-block
| codeBlock | — | Wrap content in a code block. | | codeBlock | — | Wrap content in a code block. |
## Keyboard shortcuts ## Keyboard shortcuts
* `Shift` `Control` `\` * `Shift` `Control` `\`
## Source code ## Source code
[packages/extension-code-block/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code-block/) [packages/extension-code-block/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code-block/)

View File

@@ -23,7 +23,7 @@ yarn add @tiptap/extension-code
| code | — | Mark text as inline code. | | code | — | Mark text as inline code. |
## Keyboard shortcuts ## Keyboard shortcuts
* `Alt ` <code>`</code> * `Alt&nbsp;`&nbsp;<code>`</code>
## Source code ## Source code
[packages/extension-code/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code/) [packages/extension-code/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-code/)

View File

@@ -19,9 +19,9 @@ yarn add @tiptap/extension-hard-break
| hardBreak | — | Add a line break. | | hardBreak | — | Add a line break. |
## Keyboard shortcuts ## Keyboard shortcuts
* `Shift` `Enter` * `Shift`&nbsp;`Enter`
* Windows/Linux: `Control` `Enter` * Windows/Linux: `Control`&nbsp;`Enter`
* macOS: `Cmd` `Enter` * macOS: `Cmd`&nbsp;`Enter`
## Source code ## Source code
[packages/extension-hard-break/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-hard-break/) [packages/extension-hard-break/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-hard-break/)

View File

@@ -24,8 +24,8 @@ yarn add @tiptap/extension-heading
| heading | level | Creates a heading node. | | heading | level | Creates a heading node. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows/Linux: `Control` `Alt` `1-6` * Windows/Linux: `Control`&nbsp;`Alt`&nbsp;`1-6`
* macOS: `Cmd` `Alt` `1-6` * macOS: `Cmd`&nbsp;`Alt`&nbsp;`1-6`
## Source code ## Source code
[packages/extension-heading/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-heading/) [packages/extension-heading/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-heading/)

View File

@@ -23,12 +23,12 @@ yarn add @tiptap/extension-history
## Keyboard shortcuts ## Keyboard shortcuts
### Undo ### Undo
* Windows/Linux: `Control` `Z` * Windows/Linux: `Control`&nbsp;`Z`
* macOS: `Cmd` `Z` * macOS: `Cmd`&nbsp;`Z`
### Redo ### Redo
* Windows/Linux: `Shift` `Control` `Z` * Windows/Linux: `Shift`&nbsp;`Control`&nbsp;`Z`
* macOS: `Shift` `Cmd` `Z` * macOS: `Shift`&nbsp;`Cmd`&nbsp;`Z`
## Source code ## Source code
[packages/extension-history/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-history/) [packages/extension-history/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-history/)

View File

@@ -27,8 +27,8 @@ yarn add @tiptap/extension-italic
| italic | — | Mark text italic. | | italic | — | Mark text italic. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows/Linux: `Control` `I` * Windows/Linux: `Control`&nbsp;`I`
* macOS: `Cmd` `I` * macOS: `Cmd`&nbsp;`I`
## Source code ## Source code
[packages/extension-italic/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-italic/) [packages/extension-italic/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-italic/)

View File

@@ -25,7 +25,7 @@ yarn add @tiptap/extension-list-item
## Keyboard shortcuts ## Keyboard shortcuts
* New list item: `Enter` * New list item: `Enter`
* Sink a list item: `Tab` * Sink a list item: `Tab`
* Lift a list item: `Shift` `Tab` * Lift a list item: `Shift`&nbsp;`Tab`
## Source code ## Source code
[packages/extension-list-item/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-list-item/) [packages/extension-list-item/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-list-item/)

View File

@@ -27,7 +27,7 @@ yarn add @tiptap/extension-ordered-list @tiptap/extension-list-item
| ordered_list | — | Toggle a ordered list. | | ordered_list | — | Toggle a ordered list. |
## Keyboard shortcuts ## Keyboard shortcuts
* `Control` `Shift` `9` * `Control`&nbsp;`Shift`&nbsp;`9`
## Source code ## Source code
[packages/extension-ordered-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-ordered-list/) [packages/extension-ordered-list/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-ordered-list/)

View File

@@ -25,8 +25,8 @@ yarn add @tiptap/extension-paragraph
| paragraph | — | Transforms all selected nodes to paragraphs. | | paragraph | — | Transforms all selected nodes to paragraphs. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows & Linux: `Control` `Alt` `0` * Windows & Linux: `Control`&nbsp;`Alt`&nbsp;`0`
* macOS: `Cmd` `Alt` `0` * macOS: `Cmd`&nbsp;`Alt`&nbsp;`0`
## Source code ## Source code
[packages/extension-paragraph/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-paragraph/) [packages/extension-paragraph/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-paragraph/)

View File

@@ -27,8 +27,8 @@ yarn add @tiptap/extension-strike
| strike | — | Mark text as strikethrough. | | strike | — | Mark text as strikethrough. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows/Linux: `Control` `D` * Windows/Linux: `Control`&nbsp;`D`
* macOS: `Cmd` `D` * macOS: `Cmd`&nbsp;`D`
## Source code ## Source code
[packages/extension-strike/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-strike/) [packages/extension-strike/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-strike/)

View File

@@ -27,8 +27,8 @@ yarn add @tiptap/extension-underline
| underline | — | Mark text as underlined. | | underline | — | Mark text as underlined. |
## Keyboard shortcuts ## Keyboard shortcuts
* Windows/Linux: `Control` `U` * Windows/Linux: `Control`&nbsp;`U`
* macOS: `Cmd` `U` * macOS: `Cmd`&nbsp;`U`
## Source code ## Source code
[packages/extension-underline/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-underline/) [packages/extension-underline/](https://github.com/ueberdosis/tiptap-next/blob/main/packages/extension-underline/)

View File

@@ -37,66 +37,66 @@ new Editor({
### Essentials ### Essentials
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| ------------------------ | --------------------- | ----------------- | | ------------------------ | --------------------- | ----------------- |
| Copy | `Control` `C` | `Cmd` `C` | | Copy | `Control`&nbsp;`C` | `Cmd`&nbsp;`C` |
| Cut | `Control` `X` | `Cmd` `X` | | Cut | `Control`&nbsp;`X` | `Cmd`&nbsp;`X` |
| Paste | `Control` `V` | `Cmd` `V` | | Paste | `Control`&nbsp;`V` | `Cmd`&nbsp;`V` |
| Paste without formatting | `Control` `Shift` `V` | `Cmd` `Shift` `V` | | Paste without formatting | `Control`&nbsp;`Shift`&nbsp;`V` | `Cmd`&nbsp;`Shift`&nbsp;`V` |
| Undo | `Control` `Z` | `Cmd` `Z` | | Undo | `Control`&nbsp;`Z` | `Cmd`&nbsp;`Z` |
| Redo | `Control` `Shift` `Z` | `Cmd` `Shift` `Z` | | Redo | `Control`&nbsp;`Shift`&nbsp;`Z` | `Cmd`&nbsp;`Shift`&nbsp;`Z` |
| Insert or edit link | `Control` `K` | `Cmd` `K` | | Insert or edit link | `Control`&nbsp;`K` | `Cmd`&nbsp;`K` |
| Open link | `Alt` `Enter` | `Alt` `Enter` | | Open link | `Alt`&nbsp;`Enter` | `Alt`&nbsp;`Enter` |
| Find | `Control` `F` | `Cmd` `F` | | Find | `Control`&nbsp;`F` | `Cmd`&nbsp;`F` |
| Find and replace | `Control` `H` | `Cmd` `Shift` `H` | | Find and replace | `Control`&nbsp;`H` | `Cmd`&nbsp;`Shift`&nbsp;`H` |
| Find again | `Control` `G` | `Cmd` `G` | | Find again | `Control`&nbsp;`G` | `Cmd`&nbsp;`G` |
| Find previous | `Control` `Shift` `G` | `Cmd` `Shift` `G` | | Find previous | `Control`&nbsp;`Shift`&nbsp;`G` | `Cmd`&nbsp;`Shift`&nbsp;`G` |
| Repeat last action | `Control` `Y` | `Cmd` `Y` | | Repeat last action | `Control`&nbsp;`Y` | `Cmd`&nbsp;`Y` |
| Add a line break | `Shift` `Enter` | `Shift` `Enter` | | Add a line break | `Shift`&nbsp;`Enter` | `Shift`&nbsp;`Enter` |
### Text Formatting ### Text Formatting
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| --------------------- | --------------------------------------------- | ----------------- | | --------------------- | --------------------------------------------- | ----------------- |
| Bold | `Control` `B` | `Cmd` `B` | | Bold | `Control`&nbsp;`B` | `Cmd`&nbsp;`B` |
| Italicize | `Control` `I` | `Cmd` `I` | | Italicize | `Control`&nbsp;`I` | `Cmd`&nbsp;`I` |
| Underline | `Control` `U` | `Cmd` `U` | | Underline | `Control`&nbsp;`U` | `Cmd`&nbsp;`U` |
| Strikethrough | `Alt` `Shift` `5` | `Cmd` `Shift` `X` | | Strikethrough | `Alt`&nbsp;`Shift`&nbsp;`5` | `Cmd`&nbsp;`Shift`&nbsp;`X` |
| Superscript | `Control` `.` | `Cmd` `.` | | Superscript | `Control`&nbsp;`.` | `Cmd`&nbsp;`.` |
| Subscript | `Control` `,` | `Cmd` `,` | | Subscript | `Control`&nbsp;`,` | `Cmd`&nbsp;`,` |
| Copy text formatting | `Control` `Alt` `C` | `Cmd` `Alt` `C` | | Copy text formatting | `Control`&nbsp;`Alt`&nbsp;`C` | `Cmd`&nbsp;`Alt`&nbsp;`C` |
| Paste text formatting | `Control` `Alt` `V` | `Cmd` `Alt` `V` | | Paste text formatting | `Control`&nbsp;`Alt`&nbsp;`V` | `Cmd`&nbsp;`Alt`&nbsp;`V` |
| Clear text formatting | `Control` <code>\</code><br>`Control` `Space` | `Cmd` `\` | | Clear text formatting | `Control`&nbsp;<code>\</code><br>`Control`&nbsp;`Space` | `Cmd`&nbsp;`\` |
| Increase font size | `Control` `Shift` `>` | `Cmd` `Shift` `>` | | Increase font size | `Control`&nbsp;`Shift`&nbsp;`>` | `Cmd`&nbsp;`Shift`&nbsp;`>` |
| Decrease font size | `Control` `Shift` `<` | `Cmd` `Shift` `<` | | Decrease font size | `Control`&nbsp;`Shift`&nbsp;`<` | `Cmd`&nbsp;`Shift`&nbsp;`<` |
### Paragraph Formatting ### Paragraph Formatting
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| ------------------------------ | --------------------- | --------------------- | | ------------------------------ | --------------------- | --------------------- |
| Increase paragraph indentation | `Control` `]` | `Cmd` `]` | | Increase paragraph indentation | `Control`&nbsp;`]` | `Cmd`&nbsp;`]` |
| Decrease paragraph indentation | `Control` `[` | `Cmd` `[` | | Decrease paragraph indentation | `Control`&nbsp;`[` | `Cmd`&nbsp;`[` |
| Apply normal text style | `Control` `Alt` `0` | `Cmd` `Alt` `0` | | Apply normal text style | `Control`&nbsp;`Alt`&nbsp;`0` | `Cmd`&nbsp;`Alt`&nbsp;`0` |
| Apply heading style 1 | `Control` `Alt` `1` | `Cmd` `Alt` `1` | | Apply heading style 1 | `Control`&nbsp;`Alt`&nbsp;`1` | `Cmd`&nbsp;`Alt`&nbsp;`1` |
| Apply heading style 2 | `Control` `Alt` `2` | `Cmd` `Alt` `2` | | Apply heading style 2 | `Control`&nbsp;`Alt`&nbsp;`2` | `Cmd`&nbsp;`Alt`&nbsp;`2` |
| Apply heading style 3 | `Control` `Alt` `3` | `Cmd` `Alt` `3` | | Apply heading style 3 | `Control`&nbsp;`Alt`&nbsp;`3` | `Cmd`&nbsp;`Alt`&nbsp;`3` |
| Apply heading style 4 | `Control` `Alt` `4` | `Cmd` `Alt` `4` | | Apply heading style 4 | `Control`&nbsp;`Alt`&nbsp;`4` | `Cmd`&nbsp;`Alt`&nbsp;`4` |
| Apply heading style 5 | `Control` `Alt` `5` | `Cmd` `Alt` `5` | | Apply heading style 5 | `Control`&nbsp;`Alt`&nbsp;`5` | `Cmd`&nbsp;`Alt`&nbsp;`5` |
| Apply heading style 6 | `Control` `Alt` `6` | `Cmd` `Alt` `6` | | Apply heading style 6 | `Control`&nbsp;`Alt`&nbsp;`6` | `Cmd`&nbsp;`Alt`&nbsp;`6` |
| Left align | `Control` `Shift` `L` | `Cmd` `Shift` `L` | | Left align | `Control`&nbsp;`Shift`&nbsp;`L` | `Cmd`&nbsp;`Shift`&nbsp;`L` |
| Center align | `Control` `Shift` `E` | `Cmd` `Shift` `E` | | Center align | `Control`&nbsp;`Shift`&nbsp;`E` | `Cmd`&nbsp;`Shift`&nbsp;`E` |
| Right align | `Control` `Shift` `R` | `Cmd` `Shift` `R` | | Right align | `Control`&nbsp;`Shift`&nbsp;`R` | `Cmd`&nbsp;`Shift`&nbsp;`R` |
| Justify | `Control` `Shift` `J` | `Cmd` `Shift` `J` | | Justify | `Control`&nbsp;`Shift`&nbsp;`J` | `Cmd`&nbsp;`Shift`&nbsp;`J` |
| Numbered list | `Control` `Shift` `7` | `Cmd` `Shift` `7` | | Numbered list | `Control`&nbsp;`Shift`&nbsp;`7` | `Cmd`&nbsp;`Shift`&nbsp;`7` |
| Bulleted list | `Control` `Shift` `8` | `Cmd` `Shift` `8` | | Bulleted list | `Control`&nbsp;`Shift`&nbsp;`8` | `Cmd`&nbsp;`Shift`&nbsp;`8` |
| Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` | | Move paragraph up | `Control`&nbsp;`Shift`&nbsp;`↑` | `Control`&nbsp;`Shift`&nbsp;`↑` |
| Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` | | Move paragraph down | `Control`&nbsp;`Shift`&nbsp;`↓` | `Control`&nbsp;`Shift`&nbsp;`↓` |
### Text Selection ### Text Selection
| Action | Windows/Linux | macOS | | Action | Windows/Linux | macOS |
| ------------------------------------------------- | --------------------- | ----------------- | | ------------------------------------------------- | --------------------- | ----------------- |
| Select all | `Control` `A` | `Cmd` `A` | | Select all | `Control`&nbsp;`A` | `Cmd`&nbsp;`A` |
| Extend selection one character to left | `Shift` `←` | `Shift` `←` | | Extend selection one character to left | `Shift`&nbsp;`←` | `Shift`&nbsp;`←` |
| Extend selection one character to right | `Shift` `→` | `Shift` `→` | | Extend selection one character to right | `Shift`&nbsp;`→` | `Shift`&nbsp;`→` |
| Extend selection one line up | `Shift` `↑` | `Shift` `↑` | | Extend selection one line up | `Shift`&nbsp;`↑` | `Shift`&nbsp;`↑` |
| Extend selection one line down | `Shift` `↓` | `Shift` `↓` | | Extend selection one line down | `Shift`&nbsp;`↓` | `Shift`&nbsp;`↓` |
| Extend selection one paragraph up | `Alt` `Shift` `↑` | `Alt` `Shift` `↑` | | Extend selection one paragraph up | `Alt`&nbsp;`Shift`&nbsp;`↑` | `Alt`&nbsp;`Shift`&nbsp;`↑` |
| Extend selection one paragraph down | `Alt` `Shift` `↓` | `Alt` `Shift` `↓` | | Extend selection one paragraph down | `Alt`&nbsp;`Shift`&nbsp;`↓` | `Alt`&nbsp;`Shift`&nbsp;`↓` |
| Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Cmd` `Shift` `↑` | | Extend selection to the beginning of the document | `Control`&nbsp;`Shift`&nbsp;`↑` | `Cmd`&nbsp;`Shift`&nbsp;`↑` |
| Extend selection to the end of the document | `Control` `Shift` `↓` | `Cmd` `Shift` `↓` | | Extend selection to the end of the document | `Control`&nbsp;`Shift`&nbsp;`↓` | `Cmd`&nbsp;`Shift`&nbsp;`↓` |

View File

@@ -8,7 +8,7 @@ The whole editor is rendered inside of a container with the class `.ProseMirror`
```css ```css
/* Scoped to the editor */ /* Scoped to the editor */
.ProseMirror p { .ProseMirror p&nbsp;{
margin: 1em 0; margin: 1em 0;
} }
``` ```
@@ -17,7 +17,7 @@ If youre rendering the stored content somewhere, there wont be a `.ProseMi
```css ```css
/* Global styling */ /* Global styling */
p { p&nbsp;{
margin: 1em 0; margin: 1em 0;
} }
``` ```