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.
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
..
chroma Replace Less with CSS (#23481) 1 year ago
code Fix some broken css (#23560) 1 year ago
codemirror Replace Less with CSS (#23481) 1 year ago
console Replace Less with CSS (#23481) 1 year ago
features Set opaque background on markup and images (#23578) 1 year ago
markup Set opaque background on markup and images (#23578) 1 year ago
modules Replace Less with CSS (#23481) 1 year ago
shared Convert issue list checkboxes to native (#23596) 1 year ago
standalone Replace Less with CSS (#23481) 1 year ago
themes CSS color tweaks (#23828) 1 year ago
admin.css Replace Less with CSS (#23481) 1 year ago
animations.css Replace Less with CSS (#23481) 1 year ago
base.css Fix image border-radius (#23886) 1 year ago
dashboard.css Replace Less with CSS (#23481) 1 year ago
editor-markdown.css Improve markdown editor: width, height, preferred (#23895) 1 year ago
editor.css Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
explore.css Fix long name ui issues and label ui issue (#23541) 1 year ago
font_i18n.css Replace Less with CSS (#23481) 1 year ago
form.css CSS color tweaks (#23828) 1 year ago
helpers.css Use graceful editorconfig loader to reduce errors when loading malformed editorconfigs (#21257) 1 year ago
home.css Replace Less with CSS (#23481) 1 year ago
index.css Introduce GitHub markdown editor, keep EasyMDE as fallback (#23876) 1 year ago
install.css Replace Less with CSS (#23481) 1 year ago
organization.css Org pages style fixes (#23901) 1 year ago
package.css Replace Less with CSS (#23481) 1 year ago
repository.css Improve markdown editor: width, height, preferred (#23895) 1 year ago
review.css Improve markdown editor: width, height, preferred (#23895) 1 year ago
runner.css Replace Less with CSS (#23481) 1 year ago
svg.css Replace Less with CSS (#23481) 1 year ago
tribute.css Replace Less with CSS (#23481) 1 year ago
user.css Fix user profile description rendering (#23882) 1 year ago