@atlaskit/editor-plugin-selection-extension 3.2.0 → 3.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# @atlaskit/editor-plugin-selection-extension
|
|
2
2
|
|
|
3
|
+
## 3.2.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#189233](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/189233)
|
|
8
|
+
[`0fe3ab9a767d5`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/0fe3ab9a767d5) -
|
|
9
|
+
FG cleanup for platform_editor_fix_get_selection_state_mismatch
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
3
12
|
## 3.2.0
|
|
4
13
|
|
|
5
14
|
### Minor Changes
|
|
@@ -130,8 +130,7 @@ var selectionExtensionPlugin = exports.selectionExtensionPlugin = function selec
|
|
|
130
130
|
var currentSelection = view.state.selection;
|
|
131
131
|
var from = currentSelection.from,
|
|
132
132
|
to = currentSelection.to;
|
|
133
|
-
var
|
|
134
|
-
var text = currentState.doc.textBetween(from, to, '\n');
|
|
133
|
+
var text = view.state.doc.textBetween(from, to, '\n');
|
|
135
134
|
var coords = (0, _getBoundingBoxFromSelection.getBoundingBoxFromSelection)(view, from, to);
|
|
136
135
|
return {
|
|
137
136
|
text: text,
|
|
@@ -129,8 +129,7 @@ export const selectionExtensionPlugin = ({
|
|
|
129
129
|
from,
|
|
130
130
|
to
|
|
131
131
|
} = currentSelection;
|
|
132
|
-
const
|
|
133
|
-
const text = currentState.doc.textBetween(from, to, '\n');
|
|
132
|
+
const text = view.state.doc.textBetween(from, to, '\n');
|
|
134
133
|
const coords = getBoundingBoxFromSelection(view, from, to);
|
|
135
134
|
return {
|
|
136
135
|
text,
|
|
@@ -123,8 +123,7 @@ export var selectionExtensionPlugin = function selectionExtensionPlugin(_ref) {
|
|
|
123
123
|
var currentSelection = view.state.selection;
|
|
124
124
|
var from = currentSelection.from,
|
|
125
125
|
to = currentSelection.to;
|
|
126
|
-
var
|
|
127
|
-
var text = currentState.doc.textBetween(from, to, '\n');
|
|
126
|
+
var text = view.state.doc.textBetween(from, to, '\n');
|
|
128
127
|
var coords = getBoundingBoxFromSelection(view, from, to);
|
|
129
128
|
return {
|
|
130
129
|
text: text,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/editor-plugin-selection-extension",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "editor-plugin-selection-extension plugin for @atlaskit/editor-core",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -106,9 +106,6 @@
|
|
|
106
106
|
"platform-feature-flags": {
|
|
107
107
|
"platform_editor_selection_extension_api_v2": {
|
|
108
108
|
"type": "boolean"
|
|
109
|
-
},
|
|
110
|
-
"platform_editor_fix_get_selection_state_mismatch": {
|
|
111
|
-
"type": "boolean"
|
|
112
109
|
}
|
|
113
110
|
}
|
|
114
111
|
}
|