Skip to content

Commit

Permalink
[build]pro
Browse files Browse the repository at this point in the history
  • Loading branch information
luowei authored and luowei committed Dec 5, 2019
1 parent 6e7f160 commit aaf6eab
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Load quill and style dependencies
```
```
<link href="https://cdnjs.cloudflare.com/ajax/libs/quill/2.0.0-dev.3/quill.snow.min.css" rel="stylesheet">
<link href="https://unpkg.com/quill-better-table@1.2.7/dist/quill-better-table.css" rel="stylesheet">
<link href="https://unpkg.com/quill-better-table@1.2.8/dist/quill-better-table.css" rel="stylesheet">
```

ES6
Expand Down
21 changes: 20 additions & 1 deletion dist/demo/demo1.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "fc9381ece683addaf878";
/******/ var hotCurrentHash = "b2ee69a9ed01aab8434c";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
Expand Down Expand Up @@ -3141,6 +3141,25 @@ quill_better_table_BetterTable.keyboardBindings = {
return true;
}

},
'up-to-table': {
key: 'ArrowUp',
collapsed: true,

handler(range, context) {
const target = context.line.prev;

if (target && target.statics.blotName === 'table-view') {
const rows = target.table().rows();
const targetCell = rows[rows.length - 1].children.head;
const targetLine = targetCell.children.head;
this.quill.setSelection(targetLine.offset(this.quill.scroll), 0, external_commonjs_quill_commonjs2_quill_amd_quill_root_Quill_default.a.sources.USER);
return false;
}

return true;
}

}
};

Expand Down
21 changes: 20 additions & 1 deletion dist/quill-better-table.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ return /******/ (function(modules) { // webpackBootstrap
/******/
/******/ var hotApplyOnUpdate = true;
/******/ // eslint-disable-next-line no-unused-vars
/******/ var hotCurrentHash = "fc9381ece683addaf878";
/******/ var hotCurrentHash = "b2ee69a9ed01aab8434c";
/******/ var hotRequestTimeout = 10000;
/******/ var hotCurrentModuleData = {};
/******/ var hotCurrentChildModule;
Expand Down Expand Up @@ -3141,6 +3141,25 @@ quill_better_table_BetterTable.keyboardBindings = {
return true;
}

},
'up-to-table': {
key: 'ArrowUp',
collapsed: true,

handler(range, context) {
const target = context.line.prev;

if (target && target.statics.blotName === 'table-view') {
const rows = target.table().rows();
const targetCell = rows[rows.length - 1].children.head;
const targetLine = targetCell.children.head;
this.quill.setSelection(targetLine.offset(this.quill.scroll), 0, external_commonjs_quill_commonjs2_quill_amd_quill_root_Quill_default.a.sources.USER);
return false;
}

return true;
}

}
};

Expand Down
2 changes: 1 addition & 1 deletion dist/quill-better-table.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "quill-better-table",
"version": "1.2.7",
"version": "1.2.8",
"description": "Module for better table in Quill, more useful features are supported.",
"main": "dist/quill-better-table.js",
"scripts": {
Expand Down

0 comments on commit aaf6eab

Please sign in to comment.