@tiptap/extension-placeholder
Advanced tools
Comparing version 2.0.0-beta.29 to 2.0.0-beta.30
@@ -6,2 +6,13 @@ # Change Log | ||
# [2.0.0-beta.30](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-placeholder@2.0.0-beta.29...@tiptap/extension-placeholder@2.0.0-beta.30) (2021-09-08) | ||
### Features | ||
* add `includeChildren` option to placeholder extension ([#1416](https://github.com/ueberdosis/tiptap/issues/1416)) ([1799b90](https://github.com/ueberdosis/tiptap/commit/1799b907ec7db7988f2c78016755ee1eaaab35af)) | ||
# [2.0.0-beta.29](https://github.com/ueberdosis/tiptap/compare/@tiptap/extension-placeholder@2.0.0-beta.28...@tiptap/extension-placeholder@2.0.0-beta.29) (2021-09-06) | ||
@@ -8,0 +19,0 @@ |
@@ -12,3 +12,4 @@ import { Editor, Extension } from '@tiptap/core'; | ||
showOnlyCurrent: boolean; | ||
includeChildren: boolean; | ||
} | ||
export declare const Placeholder: Extension<PlaceholderOptions>; |
@@ -17,2 +17,3 @@ 'use strict'; | ||
showOnlyCurrent: true, | ||
includeChildren: false, | ||
}, | ||
@@ -49,3 +50,3 @@ addProseMirrorPlugins() { | ||
} | ||
return false; | ||
return this.options.includeChildren; | ||
}); | ||
@@ -52,0 +53,0 @@ return prosemirrorView.DecorationSet.create(doc, decorations); |
@@ -13,2 +13,3 @@ import { Extension } from '@tiptap/core'; | ||
showOnlyCurrent: true, | ||
includeChildren: false, | ||
}, | ||
@@ -45,3 +46,3 @@ addProseMirrorPlugins() { | ||
} | ||
return false; | ||
return this.options.includeChildren; | ||
}); | ||
@@ -48,0 +49,0 @@ return DecorationSet.create(doc, decorations); |
@@ -15,2 +15,3 @@ (function (global, factory) { | ||
showOnlyCurrent: true, | ||
includeChildren: false, | ||
}, | ||
@@ -47,3 +48,3 @@ addProseMirrorPlugins() { | ||
} | ||
return false; | ||
return this.options.includeChildren; | ||
}); | ||
@@ -50,0 +51,0 @@ return prosemirrorView.DecorationSet.create(doc, decorations); |
{ | ||
"name": "@tiptap/extension-placeholder", | ||
"description": "placeholder extension for tiptap", | ||
"version": "2.0.0-beta.29", | ||
"version": "2.0.0-beta.30", | ||
"homepage": "https://tiptap.dev", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
}, | ||
"gitHead": "b386728f357b826abbab34742e12b4e05a92985f" | ||
"gitHead": "42e8755d87b37506d537152dbae4b0c8d497fd48" | ||
} |
@@ -15,2 +15,3 @@ import { Editor, Extension } from '@tiptap/core' | ||
showOnlyCurrent: boolean, | ||
includeChildren: boolean, | ||
} | ||
@@ -27,2 +28,3 @@ | ||
showOnlyCurrent: true, | ||
includeChildren: false, | ||
}, | ||
@@ -67,3 +69,3 @@ | ||
return false | ||
return this.options.includeChildren | ||
}) | ||
@@ -70,0 +72,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34965
254