@tiptap/core 2.0.0-beta.167 → 2.0.0-beta.170

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.
@@ -1193,8 +1193,8 @@ const setTextSelection = position => ({ tr, dispatch }) => {
1193
1193
  const { from, to } = typeof position === 'number'
1194
1194
  ? { from: position, to: position }
1195
1195
  : position;
1196
- const minPos = Selection.atStart(doc).from;
1197
- const maxPos = Selection.atEnd(doc).to;
1196
+ const minPos = 0;
1197
+ const maxPos = tr.doc.content.size;
1198
1198
  const resolvedFrom = minMax(from, minPos, maxPos);
1199
1199
  const resolvedEnd = minMax(to, minPos, maxPos);
1200
1200
  const selection = TextSelection.create(doc, resolvedFrom, resolvedEnd);
@@ -2100,7 +2100,7 @@ const Keymap = Extension.create({
2100
2100
  const pcKeymap = {
2101
2101
  ...baseKeymap,
2102
2102
  Home: () => this.editor.commands.selectTextblockStart(),
2103
- End: () => this.editor.commands.selectTextblockStart(),
2103
+ End: () => this.editor.commands.selectTextblockEnd(),
2104
2104
  };
2105
2105
  const macKeymap = {
2106
2106
  ...baseKeymap,
@@ -2736,15 +2736,10 @@ function injectExtensionAttributesToParseRule(parseRule, extensionAttributes) {
2736
2736
  if (oldAttributes === false) {
2737
2737
  return false;
2738
2738
  }
2739
- const newAttributes = extensionAttributes
2740
- .filter(item => item.attribute.rendered)
2741
- .reduce((items, item) => {
2739
+ const newAttributes = extensionAttributes.reduce((items, item) => {
2742
2740
  const value = item.attribute.parseHTML
2743
2741
  ? item.attribute.parseHTML(node)
2744
2742
  : fromString(node.getAttribute(item.name));
2745
- if (isObject(value)) {
2746
- console.warn(`[tiptap warn]: BREAKING CHANGE: "parseHTML" for your attribute "${item.name}" returns an object but should return the value itself. If this is expected you can ignore this message. This warning will be removed in one of the next releases. Further information: https://github.com/ueberdosis/tiptap/issues/1863`);
2747
- }
2748
2743
  if (value === null || value === undefined) {
2749
2744
  return items;
2750
2745
  }