replace non-breaking-space with html entity
This commit is contained in:
@@ -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/)
|
||||||
|
|||||||
@@ -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/)
|
||||||
|
|||||||
@@ -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/)
|
||||||
|
|||||||
@@ -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/)
|
||||||
|
|||||||
@@ -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 ` <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/)
|
||||||
|
|||||||
@@ -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` `Enter`
|
||||||
* Windows/Linux: `Control` `Enter`
|
* Windows/Linux: `Control` `Enter`
|
||||||
* macOS: `Cmd` `Enter`
|
* macOS: `Cmd` `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/)
|
||||||
|
|||||||
@@ -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` `Alt` `1-6`
|
||||||
* macOS: `Cmd` `Alt` `1-6`
|
* macOS: `Cmd` `Alt` `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/)
|
||||||
|
|||||||
@@ -23,12 +23,12 @@ yarn add @tiptap/extension-history
|
|||||||
|
|
||||||
## Keyboard shortcuts
|
## Keyboard shortcuts
|
||||||
### Undo
|
### Undo
|
||||||
* Windows/Linux: `Control` `Z`
|
* Windows/Linux: `Control` `Z`
|
||||||
* macOS: `Cmd` `Z`
|
* macOS: `Cmd` `Z`
|
||||||
|
|
||||||
### Redo
|
### Redo
|
||||||
* Windows/Linux: `Shift` `Control` `Z`
|
* Windows/Linux: `Shift` `Control` `Z`
|
||||||
* macOS: `Shift` `Cmd` `Z`
|
* macOS: `Shift` `Cmd` `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/)
|
||||||
|
|||||||
@@ -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` `I`
|
||||||
* macOS: `Cmd` `I`
|
* macOS: `Cmd` `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/)
|
||||||
|
|||||||
@@ -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` `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/)
|
||||||
|
|||||||
@@ -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` `Shift` `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/)
|
||||||
|
|||||||
@@ -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` `Alt` `0`
|
||||||
* macOS: `Cmd` `Alt` `0`
|
* macOS: `Cmd` `Alt` `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/)
|
||||||
|
|||||||
@@ -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` `D`
|
||||||
* macOS: `Cmd` `D`
|
* macOS: `Cmd` `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/)
|
||||||
|
|||||||
@@ -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` `U`
|
||||||
* macOS: `Cmd` `U`
|
* macOS: `Cmd` `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/)
|
||||||
|
|||||||
@@ -37,66 +37,66 @@ new Editor({
|
|||||||
### Essentials
|
### Essentials
|
||||||
| Action | Windows/Linux | macOS |
|
| Action | Windows/Linux | macOS |
|
||||||
| ------------------------ | --------------------- | ----------------- |
|
| ------------------------ | --------------------- | ----------------- |
|
||||||
| Copy | `Control` `C` | `Cmd` `C` |
|
| Copy | `Control` `C` | `Cmd` `C` |
|
||||||
| Cut | `Control` `X` | `Cmd` `X` |
|
| Cut | `Control` `X` | `Cmd` `X` |
|
||||||
| Paste | `Control` `V` | `Cmd` `V` |
|
| Paste | `Control` `V` | `Cmd` `V` |
|
||||||
| Paste without formatting | `Control` `Shift` `V` | `Cmd` `Shift` `V` |
|
| Paste without formatting | `Control` `Shift` `V` | `Cmd` `Shift` `V` |
|
||||||
| Undo | `Control` `Z` | `Cmd` `Z` |
|
| Undo | `Control` `Z` | `Cmd` `Z` |
|
||||||
| Redo | `Control` `Shift` `Z` | `Cmd` `Shift` `Z` |
|
| Redo | `Control` `Shift` `Z` | `Cmd` `Shift` `Z` |
|
||||||
| Insert or edit link | `Control` `K` | `Cmd` `K` |
|
| Insert or edit link | `Control` `K` | `Cmd` `K` |
|
||||||
| Open link | `Alt` `Enter` | `Alt` `Enter` |
|
| Open link | `Alt` `Enter` | `Alt` `Enter` |
|
||||||
| Find | `Control` `F` | `Cmd` `F` |
|
| Find | `Control` `F` | `Cmd` `F` |
|
||||||
| Find and replace | `Control` `H` | `Cmd` `Shift` `H` |
|
| Find and replace | `Control` `H` | `Cmd` `Shift` `H` |
|
||||||
| Find again | `Control` `G` | `Cmd` `G` |
|
| Find again | `Control` `G` | `Cmd` `G` |
|
||||||
| Find previous | `Control` `Shift` `G` | `Cmd` `Shift` `G` |
|
| Find previous | `Control` `Shift` `G` | `Cmd` `Shift` `G` |
|
||||||
| Repeat last action | `Control` `Y` | `Cmd` `Y` |
|
| Repeat last action | `Control` `Y` | `Cmd` `Y` |
|
||||||
| Add a line break | `Shift` `Enter` | `Shift` `Enter` |
|
| Add a line break | `Shift` `Enter` | `Shift` `Enter` |
|
||||||
|
|
||||||
### Text Formatting
|
### Text Formatting
|
||||||
| Action | Windows/Linux | macOS |
|
| Action | Windows/Linux | macOS |
|
||||||
| --------------------- | --------------------------------------------- | ----------------- |
|
| --------------------- | --------------------------------------------- | ----------------- |
|
||||||
| Bold | `Control` `B` | `Cmd` `B` |
|
| Bold | `Control` `B` | `Cmd` `B` |
|
||||||
| Italicize | `Control` `I` | `Cmd` `I` |
|
| Italicize | `Control` `I` | `Cmd` `I` |
|
||||||
| Underline | `Control` `U` | `Cmd` `U` |
|
| Underline | `Control` `U` | `Cmd` `U` |
|
||||||
| Strikethrough | `Alt` `Shift` `5` | `Cmd` `Shift` `X` |
|
| Strikethrough | `Alt` `Shift` `5` | `Cmd` `Shift` `X` |
|
||||||
| Superscript | `Control` `.` | `Cmd` `.` |
|
| Superscript | `Control` `.` | `Cmd` `.` |
|
||||||
| Subscript | `Control` `,` | `Cmd` `,` |
|
| Subscript | `Control` `,` | `Cmd` `,` |
|
||||||
| Copy text formatting | `Control` `Alt` `C` | `Cmd` `Alt` `C` |
|
| Copy text formatting | `Control` `Alt` `C` | `Cmd` `Alt` `C` |
|
||||||
| Paste text formatting | `Control` `Alt` `V` | `Cmd` `Alt` `V` |
|
| Paste text formatting | `Control` `Alt` `V` | `Cmd` `Alt` `V` |
|
||||||
| Clear text formatting | `Control` <code>\</code><br>`Control` `Space` | `Cmd` `\` |
|
| Clear text formatting | `Control` <code>\</code><br>`Control` `Space` | `Cmd` `\` |
|
||||||
| Increase font size | `Control` `Shift` `>` | `Cmd` `Shift` `>` |
|
| Increase font size | `Control` `Shift` `>` | `Cmd` `Shift` `>` |
|
||||||
| Decrease font size | `Control` `Shift` `<` | `Cmd` `Shift` `<` |
|
| Decrease font size | `Control` `Shift` `<` | `Cmd` `Shift` `<` |
|
||||||
|
|
||||||
### Paragraph Formatting
|
### Paragraph Formatting
|
||||||
| Action | Windows/Linux | macOS |
|
| Action | Windows/Linux | macOS |
|
||||||
| ------------------------------ | --------------------- | --------------------- |
|
| ------------------------------ | --------------------- | --------------------- |
|
||||||
| Increase paragraph indentation | `Control` `]` | `Cmd` `]` |
|
| Increase paragraph indentation | `Control` `]` | `Cmd` `]` |
|
||||||
| Decrease paragraph indentation | `Control` `[` | `Cmd` `[` |
|
| Decrease paragraph indentation | `Control` `[` | `Cmd` `[` |
|
||||||
| Apply normal text style | `Control` `Alt` `0` | `Cmd` `Alt` `0` |
|
| Apply normal text style | `Control` `Alt` `0` | `Cmd` `Alt` `0` |
|
||||||
| Apply heading style 1 | `Control` `Alt` `1` | `Cmd` `Alt` `1` |
|
| Apply heading style 1 | `Control` `Alt` `1` | `Cmd` `Alt` `1` |
|
||||||
| Apply heading style 2 | `Control` `Alt` `2` | `Cmd` `Alt` `2` |
|
| Apply heading style 2 | `Control` `Alt` `2` | `Cmd` `Alt` `2` |
|
||||||
| Apply heading style 3 | `Control` `Alt` `3` | `Cmd` `Alt` `3` |
|
| Apply heading style 3 | `Control` `Alt` `3` | `Cmd` `Alt` `3` |
|
||||||
| Apply heading style 4 | `Control` `Alt` `4` | `Cmd` `Alt` `4` |
|
| Apply heading style 4 | `Control` `Alt` `4` | `Cmd` `Alt` `4` |
|
||||||
| Apply heading style 5 | `Control` `Alt` `5` | `Cmd` `Alt` `5` |
|
| Apply heading style 5 | `Control` `Alt` `5` | `Cmd` `Alt` `5` |
|
||||||
| Apply heading style 6 | `Control` `Alt` `6` | `Cmd` `Alt` `6` |
|
| Apply heading style 6 | `Control` `Alt` `6` | `Cmd` `Alt` `6` |
|
||||||
| Left align | `Control` `Shift` `L` | `Cmd` `Shift` `L` |
|
| Left align | `Control` `Shift` `L` | `Cmd` `Shift` `L` |
|
||||||
| Center align | `Control` `Shift` `E` | `Cmd` `Shift` `E` |
|
| Center align | `Control` `Shift` `E` | `Cmd` `Shift` `E` |
|
||||||
| Right align | `Control` `Shift` `R` | `Cmd` `Shift` `R` |
|
| Right align | `Control` `Shift` `R` | `Cmd` `Shift` `R` |
|
||||||
| Justify | `Control` `Shift` `J` | `Cmd` `Shift` `J` |
|
| Justify | `Control` `Shift` `J` | `Cmd` `Shift` `J` |
|
||||||
| Numbered list | `Control` `Shift` `7` | `Cmd` `Shift` `7` |
|
| Numbered list | `Control` `Shift` `7` | `Cmd` `Shift` `7` |
|
||||||
| Bulleted list | `Control` `Shift` `8` | `Cmd` `Shift` `8` |
|
| Bulleted list | `Control` `Shift` `8` | `Cmd` `Shift` `8` |
|
||||||
| Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` |
|
| Move paragraph up | `Control` `Shift` `↑` | `Control` `Shift` `↑` |
|
||||||
| Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` |
|
| Move paragraph down | `Control` `Shift` `↓` | `Control` `Shift` `↓` |
|
||||||
|
|
||||||
### Text Selection
|
### Text Selection
|
||||||
| Action | Windows/Linux | macOS |
|
| Action | Windows/Linux | macOS |
|
||||||
| ------------------------------------------------- | --------------------- | ----------------- |
|
| ------------------------------------------------- | --------------------- | ----------------- |
|
||||||
| Select all | `Control` `A` | `Cmd` `A` |
|
| Select all | `Control` `A` | `Cmd` `A` |
|
||||||
| Extend selection one character to left | `Shift` `←` | `Shift` `←` |
|
| Extend selection one character to left | `Shift` `←` | `Shift` `←` |
|
||||||
| Extend selection one character to right | `Shift` `→` | `Shift` `→` |
|
| Extend selection one character to right | `Shift` `→` | `Shift` `→` |
|
||||||
| Extend selection one line up | `Shift` `↑` | `Shift` `↑` |
|
| Extend selection one line up | `Shift` `↑` | `Shift` `↑` |
|
||||||
| Extend selection one line down | `Shift` `↓` | `Shift` `↓` |
|
| Extend selection one line down | `Shift` `↓` | `Shift` `↓` |
|
||||||
| Extend selection one paragraph up | `Alt` `Shift` `↑` | `Alt` `Shift` `↑` |
|
| Extend selection one paragraph up | `Alt` `Shift` `↑` | `Alt` `Shift` `↑` |
|
||||||
| Extend selection one paragraph down | `Alt` `Shift` `↓` | `Alt` `Shift` `↓` |
|
| Extend selection one paragraph down | `Alt` `Shift` `↓` | `Alt` `Shift` `↓` |
|
||||||
| Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Cmd` `Shift` `↑` |
|
| Extend selection to the beginning of the document | `Control` `Shift` `↑` | `Cmd` `Shift` `↑` |
|
||||||
| Extend selection to the end of the document | `Control` `Shift` `↓` | `Cmd` `Shift` `↓` |
|
| Extend selection to the end of the document | `Control` `Shift` `↓` | `Cmd` `Shift` `↓` |
|
||||||
|
|||||||
@@ -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 {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -17,7 +17,7 @@ If you’re rendering the stored content somewhere, there won’t be a `.ProseMi
|
|||||||
|
|
||||||
```css
|
```css
|
||||||
/* Global styling */
|
/* Global styling */
|
||||||
p {
|
p {
|
||||||
margin: 1em 0;
|
margin: 1em 0;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user