You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
forgejo/templates
wxiaoguang 93eb914438
Improve markdown editor: width, height, preferred (#23895)
Follow #23876


1. Fine tune the heights of the editors (like before)
    * Auto expand the editor (increase/decrease the height) when editing
2. Remember user's last used editor (textarea/easymde) in LocalStorage,
then next time the editor will be switched automatically
* No need to introduce extra config option, it satisfies all users,
including who prefer EasyMDE
3. Also fix the width problem of Review Panel

Screenshot:

<details>


![image](https://user-images.githubusercontent.com/2114189/229518585-2e05827e-8355-48f3-a20c-2c8b9e60ce74.png)


![image](https://user-images.githubusercontent.com/2114189/229518173-4caa6da7-6ad9-40e9-bf1a-ceddfcd4b37f.png)


![image](https://user-images.githubusercontent.com/2114189/229507886-148e9b84-9b58-46d1-ba3f-727e1396f476.png)


![image](https://user-images.githubusercontent.com/2114189/229518258-9f522294-1e64-4b06-91ab-ab43b0353aaa.png)


![image](https://user-images.githubusercontent.com/2114189/229507752-6d540ac7-7748-4bb6-bc09-28acab32d31b.png)


![image](https://user-images.githubusercontent.com/2114189/229510899-de322af5-57e8-4dc5-9a61-771a3b1bee79.png)


</details>

---------

Co-authored-by: silverwind <me@silverwind.io>
1 year ago
..
admin Clean template/helper.go (#23922) 1 year ago
api/packages/pypi Remove incorrect HTML self close tag (#23748) 1 year ago
base Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
code Use data-tooltip-content for tippy tooltip (#23649) 1 year ago
custom Add footer extra links template (#9576) 5 years ago
devtest Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
explore Add ONLY_SHOW_RELEVANT_REPOS back, fix explore page bug, make code more strict (#23766) 1 year ago
mail Remove incorrect HTML self close tag (#23748) 1 year ago
org Merge template functions "dict/Dict/mergeinto" (#23932) 1 year ago
package More specific and unique feed name for NuGet install command template. (#23889) 1 year ago
projects Introduce GiteaLocaleNumber custom element to handle number localization on pages. (#23861) 1 year ago
repo Improve markdown editor: width, height, preferred (#23895) 1 year ago
shared Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
status Remove incorrect HTML self close tag (#23748) 1 year ago
swagger Add activity feeds API (#23494) 1 year ago
user Merge template functions "dict/Dict/mergeinto" (#23932) 1 year ago
home.tmpl Improve home page template, fix Sort dropdown menu flash (#23856) 1 year ago
install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago
post-install.tmpl Remove incorrect HTML self close tag (#23748) 1 year ago