Merge branch 'main' of github.com:ueberdosis/tiptap-next into main

This commit is contained in:
Hans Pagel
2021-01-20 23:00:30 +01:00
7 changed files with 122 additions and 82 deletions

View File

@@ -17,7 +17,6 @@ function detectColors(doc) {
let matches
// eslint-disable-next-line
let regex = hexColors
while (matches = hexColors.exec(node.text)) {
results.push({
color: matches[0],
@@ -26,6 +25,7 @@ function detectColors(doc) {
})
}
// eslint-disable-next-line
while (matches = rgbaColors.exec(node.text)) {
results.push({
color: matches[0],

View File

@@ -147,7 +147,8 @@ Have a look at all of the core commands listed below. They should give you a goo
| .lift() | Removes an existing wrap. |
| .liftEmptyBlock() | Lift block if empty. |
| .newlineInCode() | Add a newline character in code. |
| .replace() | Replaces text with a node within a range. |
| .replace() | Replaces text with a node. |
| .replaceRange() | Replaces text with a node within a range. |
| .resetNodeAttributes() | Resets all node attributes to the default value. |
| .selectParentNode() | Select the parent node. |
| .setMark() | Add a mark with new attributes. |