@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.
@@ -1197,8 +1197,8 @@ const setTextSelection = position => ({ tr, dispatch }) => {
1197
1197
  const { from, to } = typeof position === 'number'
1198
1198
  ? { from: position, to: position }
1199
1199
  : position;
1200
- const minPos = prosemirrorState.Selection.atStart(doc).from;
1201
- const maxPos = prosemirrorState.Selection.atEnd(doc).to;
1200
+ const minPos = 0;
1201
+ const maxPos = tr.doc.content.size;
1202
1202
  const resolvedFrom = minMax(from, minPos, maxPos);
1203
1203
  const resolvedEnd = minMax(to, minPos, maxPos);
1204
1204
  const selection = prosemirrorState.TextSelection.create(doc, resolvedFrom, resolvedEnd);
@@ -2104,7 +2104,7 @@ const Keymap = Extension.create({
2104
2104
  const pcKeymap = {
2105
2105
  ...baseKeymap,
2106
2106
  Home: () => this.editor.commands.selectTextblockStart(),
2107
- End: () => this.editor.commands.selectTextblockStart(),
2107
+ End: () => this.editor.commands.selectTextblockEnd(),
2108
2108
  };
2109
2109
  const macKeymap = {
2110
2110
  ...baseKeymap,
@@ -2740,15 +2740,10 @@ function injectExtensionAttributesToParseRule(parseRule, extensionAttributes) {
2740
2740
  if (oldAttributes === false) {
2741
2741
  return false;
2742
2742
  }
2743
- const newAttributes = extensionAttributes
2744
- .filter(item => item.attribute.rendered)
2745
- .reduce((items, item) => {
2743
+ const newAttributes = extensionAttributes.reduce((items, item) => {
2746
2744
  const value = item.attribute.parseHTML
2747
2745
  ? item.attribute.parseHTML(node)
2748
2746
  : fromString(node.getAttribute(item.name));
2749
- if (isObject(value)) {
2750
- 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`);
2751
- }
2752
2747
  if (value === null || value === undefined) {
2753
2748
  return items;
2754
2749
  }