mirror of
https://github.com/WordPress/WordPress.git
synced 2024-11-13 22:26:06 +01:00
Block Editor: Additional package updates.
Built from https://develop.svn.wordpress.org/branches/5.3@51802 git-svn-id: http://core.svn.wordpress.org/branches/5.3@51409 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
parent
9705f4ea3a
commit
7e071f1545
3189
wp-includes/js/dist/editor.js
vendored
3189
wp-includes/js/dist/editor.js
vendored
File diff suppressed because it is too large
Load Diff
6
wp-includes/js/dist/editor.min.js
vendored
6
wp-includes/js/dist/editor.min.js
vendored
File diff suppressed because one or more lines are too long
22
wp-includes/js/dist/rich-text.js
vendored
22
wp-includes/js/dist/rich-text.js
vendored
@ -1636,6 +1636,22 @@ function createFromElement(_ref3) {
|
||||
return "continue";
|
||||
}
|
||||
|
||||
if (type === 'script') {
|
||||
var _value2 = {
|
||||
formats: [,],
|
||||
replacements: [{
|
||||
type: type,
|
||||
attributes: {
|
||||
'data-rich-text-script': node.getAttribute('data-rich-text-script') || encodeURIComponent(node.innerHTML)
|
||||
}
|
||||
}],
|
||||
text: OBJECT_REPLACEMENT_CHARACTER
|
||||
};
|
||||
accumulateSelection(accumulator, node, range, _value2);
|
||||
mergePair(accumulator, _value2);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
if (type === 'br') {
|
||||
accumulateSelection(accumulator, node, range, createEmptyValue());
|
||||
mergePair(accumulator, create({
|
||||
@ -1655,7 +1671,7 @@ function createFromElement(_ref3) {
|
||||
var format = isFormatEqual(newFormat, lastFormat) ? lastFormat : newFormat;
|
||||
|
||||
if (multilineWrapperTags && multilineWrapperTags.indexOf(type) !== -1) {
|
||||
var _value2 = createFromMultilineElement({
|
||||
var _value3 = createFromMultilineElement({
|
||||
element: node,
|
||||
range: range,
|
||||
multilineTag: multilineTag,
|
||||
@ -1664,8 +1680,8 @@ function createFromElement(_ref3) {
|
||||
isEditableTree: isEditableTree
|
||||
});
|
||||
|
||||
accumulateSelection(accumulator, node, range, _value2);
|
||||
mergePair(accumulator, _value2);
|
||||
accumulateSelection(accumulator, node, range, _value3);
|
||||
mergePair(accumulator, _value3);
|
||||
return "continue";
|
||||
}
|
||||
|
||||
|
2
wp-includes/js/dist/rich-text.min.js
vendored
2
wp-includes/js/dist/rich-text.min.js
vendored
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user