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1.0
1.0.3
1.0.2
1.0.1
1.0.0
0.3.9
0.3.8
0.3.7
0.3.6
0.3.5
0.3.4
0.3.3
0.3.2
0.3.1
0.3.0
0.2.3
0.2.2
0.2.1
0.2.0
Paste options toolbar for @atlaskit/editor-core
bitbucket.org/atlassian/atlassian-frontend-mirror
@atlaskit/editor-plugin-paste-options-toolbar
/
dist
/
esm
/
ui
/
utils
/
paste-menu-rules
/
hasTableNode.js
14 lines
•
287 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
export
var
hasTableNode =
function
hasTableNode
(
slice
) {
if
(!slice) {
return
false
; }
var
found =
false
; slice.
content
.
descendants
(
function
(
node
) {
if
(node.
type
.
name
===
'table'
) { found =
true
;
return
false
; }
return
true
; });
return
found; };