Merge branch 'main' of github.com:ueberdosis/tiptap-next into main
This commit is contained in:
@@ -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],
|
||||
|
||||
@@ -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. |
|
||||
|
||||
Reference in New Issue
Block a user