typora添加一键到底按键

技术 · 2022-04-26 · 39 人浏览

typora每次打开都是在文件最顶端,到最低端要下滑很久,于是我添加了一个悬浮按键,一键到底。

首先在typora安装目录的[bsmark]resources[/bsmark]文件夹中打开[bsmark]window.html[/bsmark]文件
通过查找[bsmark]write[/bsmark] 关键字定位到需要求改的地方
然后进行修改,在[bsmark]div[/bsmark]修改为下面样式


<a id="down" href="#DD" style="display: inline-block;width: 70px;border-radius: 50%;position: fixed;bottom: 10%;right: 5%; text-decoration: none;font-size: 20px; color: #77ac98; z-index:1" >by胖橘</a>

<div id="write" class="ty-before-first-render" contenteditable="false" spellcheck="true" tabindex="-1"><div style="opacity: 0"><h1>ABCDEFG</h1><p>abcdefg</p></div></div>

<a id='DD' ></a>
typora
Theme Jasmine by Kent Liao