]> source.dussan.org Git - gitea.git/commit
wiki - editor - enable side-by-side button (#7242)
authorCherrg <michael@gnehr.de>
Sat, 16 Nov 2019 02:20:07 +0000 (03:20 +0100)
committerLunny Xiao <xiaolunwen@gmail.com>
Sat, 16 Nov 2019 02:20:07 +0000 (10:20 +0800)
commit6fbfffeeb8fa23327660e8f8e168644bc93bf42b
treeeec265cf9d24bf3def0880e7c094bf437d4beb6a
parent11208f33818ae3fe2f32581285c358b5cfcf5992
wiki - editor - enable side-by-side button (#7242)

* wiki - enable side-by-side button in editor

and add some delay so side-by-side live preview is updated
* every 10th keypress
* if keypress < 10 -> apter no input for 1 sec

affects #5436

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* decrease timeinterval user need to stop before rendering is triggered

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* removed not needed code with simpleMDE placeholder

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* run highlight.js on markdown preview

Signed-off-by: Michael Gnehr <michael@gnehr.de>
* fix white border around side-by-side preview

Signed-off-by: Michael Gnehr <michael@gnehr.de>
public/css/theme-arc-green.css
public/js/index.js
public/js/index.js.map
web_src/js/index.js
web_src/less/themes/arc-green.less