Skip to content

Commit

Permalink
Merge pull request #116 from 0xGG/feat/improve-fold-link
Browse files Browse the repository at this point in the history
feat: Upgraded VickyMD
  • Loading branch information
shd101wyy authored Jun 1, 2020
2 parents 0467147 + 9f1e919 commit 3cae859
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
"unstated-next": "^1.1.0",
"urql": "^1.9.7",
"uuid": "^7.0.3",
"vickymd": "^0.2.1"
"vickymd": "^0.2.2"
},
"scripts": {
"git-info": "echo export default \"{\\\"logMessage\\\": \\\"$(git log -1 --oneline)\\\",\\\"hash\\\":\\\"$(git rev-parse HEAD)\\\"}\" > src/_git_commit.js",
Expand Down
7 changes: 0 additions & 7 deletions src/components/Editor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -715,12 +715,6 @@ export default function Editor(props: Props) {
};
editor.on("keyup", keyupHandler);

const linkIconClickedHandler = (args: any) => {
const url = args.element.getAttribute("data-url");
openURL(url || "", note);
};
editor.on("linkIconClicked", linkIconClickedHandler);

const imageClickedHandler = (args: any) => {
const marker: TextMarker = args.marker;
const imageElement: HTMLImageElement = args.element;
Expand All @@ -744,7 +738,6 @@ export default function Editor(props: Props) {
return () => {
editor.off("changes", changesHandler);
editor.off("keyup", keyupHandler);
editor.off("linkIconClicked", linkIconClickedHandler);
editor.off("imageClicked", imageClickedHandler);
editor.off("imageReadyToLoad", loadImage);
};
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -16531,10 +16531,10 @@ [email protected]:
core-util-is "1.0.2"
extsprintf "^1.2.0"

vickymd@^0.2.1:
version "0.2.1"
resolved "https://registry.npm.taobao.org/vickymd/download/vickymd-0.2.1.tgz#de970ec00270124daa48b7f50fb8ee20c936ad98"
integrity sha1-3pcOwAJwEk2qSLf1D7juIMk2rZg=
vickymd@^0.2.2:
version "0.2.2"
resolved "https://registry.npm.taobao.org/vickymd/download/vickymd-0.2.2.tgz#80ae4ae338f1dad59fdc68fc639cfab34bf23c32"
integrity sha1-gK5K4zjx2tWf3Gj8Y5z6s0vyPDI=
optionalDependencies:
echarts "^4.7.0"
emojione "^4.5.0"
Expand Down

0 comments on commit 3cae859

Please sign in to comment.