mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-14 03:03:58 +02:00
Export defaultScrollSelectionIntoView
(#5914)
This commit is contained in:
5
.changeset/fifty-shirts-tap.md
Normal file
5
.changeset/fifty-shirts-tap.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
'slate-react': patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Export `defaultScrollSelectionIntoView`
|
@@ -1929,7 +1929,7 @@ export const defaultDecorate: (entry: NodeEntry) => DecoratedRange[] = () => []
|
|||||||
* A default implement to scroll dom range into view.
|
* A default implement to scroll dom range into view.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
const defaultScrollSelectionIntoView = (
|
export const defaultScrollSelectionIntoView = (
|
||||||
editor: ReactEditor,
|
editor: ReactEditor,
|
||||||
domRange: DOMRange
|
domRange: DOMRange
|
||||||
) => {
|
) => {
|
||||||
|
@@ -6,6 +6,7 @@ export {
|
|||||||
RenderLeafProps,
|
RenderLeafProps,
|
||||||
RenderPlaceholderProps,
|
RenderPlaceholderProps,
|
||||||
DefaultPlaceholder,
|
DefaultPlaceholder,
|
||||||
|
defaultScrollSelectionIntoView,
|
||||||
} from './components/editable'
|
} from './components/editable'
|
||||||
|
|
||||||
export { DefaultElement } from './components/element'
|
export { DefaultElement } from './components/element'
|
||||||
|
Reference in New Issue
Block a user