HarryChen0506 / react-markdown-editor-lite

a light-weight Markdown editor based on React. 一款轻量的基于React的markdown编辑器
https://harrychen0506.github.io/react-markdown-editor-lite/
MIT License
1.02k stars 161 forks source link

How can I resize the uploaded image in editor ? #301

Open himanshuchauhan981 opened 5 months ago

himanshuchauhan981 commented 5 months ago

Please note 提问前请注意

HarryChen0506 commented 4 months ago

方法一:嵌入HTML代码使用img标签

<img src="./xxx.png" width = "300" height = "200" alt="图片名称" align=center />

附:如果需要居中的话只要在外面包围div标签即可

<div  align="center"> ... </div>

作者:郑宇 链接:https://www.zhihu.com/question/23378396/answer/40604931 来源:知乎 著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。