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:
desrosj 2021-09-11 00:27:57 +00:00
parent 9705f4ea3a
commit 7e071f1545
4 changed files with 33 additions and 3186 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -1636,6 +1636,22 @@ function createFromElement(_ref3) {
return "continue"; 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') { if (type === 'br') {
accumulateSelection(accumulator, node, range, createEmptyValue()); accumulateSelection(accumulator, node, range, createEmptyValue());
mergePair(accumulator, create({ mergePair(accumulator, create({
@ -1655,7 +1671,7 @@ function createFromElement(_ref3) {
var format = isFormatEqual(newFormat, lastFormat) ? lastFormat : newFormat; var format = isFormatEqual(newFormat, lastFormat) ? lastFormat : newFormat;
if (multilineWrapperTags && multilineWrapperTags.indexOf(type) !== -1) { if (multilineWrapperTags && multilineWrapperTags.indexOf(type) !== -1) {
var _value2 = createFromMultilineElement({ var _value3 = createFromMultilineElement({
element: node, element: node,
range: range, range: range,
multilineTag: multilineTag, multilineTag: multilineTag,
@ -1664,8 +1680,8 @@ function createFromElement(_ref3) {
isEditableTree: isEditableTree isEditableTree: isEditableTree
}); });
accumulateSelection(accumulator, node, range, _value2); accumulateSelection(accumulator, node, range, _value3);
mergePair(accumulator, _value2); mergePair(accumulator, _value3);
return "continue"; return "continue";
} }

File diff suppressed because one or more lines are too long