mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-08-28 17:39:57 +02:00
Fix parameter name, remove trailing spaces. (#1101)
This commit is contained in:
committed by
Ian Storm Taylor
parent
25d54e30b0
commit
17adfd2f34
@@ -170,8 +170,8 @@ class Content extends React.Component {
|
|||||||
// Otherwise, figure out which DOM nodes should be selected...
|
// Otherwise, figure out which DOM nodes should be selected...
|
||||||
const { anchorKey, anchorOffset, focusKey, focusOffset, isCollapsed } = selection
|
const { anchorKey, anchorOffset, focusKey, focusOffset, isCollapsed } = selection
|
||||||
const anchor = getCaretPosition(anchorKey, anchorOffset, state, editor, this.element)
|
const anchor = getCaretPosition(anchorKey, anchorOffset, state, editor, this.element)
|
||||||
const focus = isCollapsed
|
const focus = isCollapsed
|
||||||
? anchor
|
? anchor
|
||||||
: getCaretPosition(focusKey, focusOffset, state, editor, this.element)
|
: getCaretPosition(focusKey, focusOffset, state, editor, this.element)
|
||||||
|
|
||||||
// If they are already selected, do nothing.
|
// If they are already selected, do nothing.
|
||||||
@@ -206,7 +206,7 @@ class Content extends React.Component {
|
|||||||
/**
|
/**
|
||||||
* The React ref method to set the root content element locally.
|
* The React ref method to set the root content element locally.
|
||||||
*
|
*
|
||||||
* @param {Element} n
|
* @param {Element} element
|
||||||
*/
|
*/
|
||||||
|
|
||||||
ref = (element) => {
|
ref = (element) => {
|
||||||
|
Reference in New Issue
Block a user