Comments (11)
I have implemented a auto-resize plugin and it will be available in the next version
from react-markdown-editor-lite.
With
.editorpane { overflow-y: auto !important; }
the scrollbar only shows when you reach the max height.
Seems nicer to me as now this rarely happens.
The interface will shake on windows, you can consider which one to use by yourself
from react-markdown-editor-lite.
I have released 1.1.0, please upgrade and have a try.
Docs here: https://github.com/HarryChen0506/react-markdown-editor-lite/blob/master/docs/plugin.md
from react-markdown-editor-lite.
MdEditor.use(Plugins, {
min: 100,
max: 1000,
})
does not seem to influence anything in my case.
But it is possible that I have not implemented it correctly: https://github.com/barbalex/apf2/blob/edeac59d7ea2a6de27519809f999c586ac98c67c/src/components/shared/MarkdownFieldFormik/MarkdownFieldFormikGrowing.js#L10-L13
from react-markdown-editor-lite.
Plugins -> Plugins.AutoResize
MdEditor.use(Plugins.AutoResize, {
min: 100,
max: 1000,
})
from react-markdown-editor-lite.
This (see my code) results in the following Invalid hook call
error where index.js:1
seems to be in react-markdown-editor-lite:
from react-markdown-editor-lite.
I'm sorry that I found a dependency resolution bug just now, it may be related to your situation. Try to upgrade to 1.1.1, does it resolved?
from react-markdown-editor-lite.
Now it works like a charm. Thanks a lot!!!!
from react-markdown-editor-lite.
With
.editorpane {
overflow-y: auto !important;
}
the scrollbar only shows when you reach the max height.
Seems nicer to me as now this rarely happens.
from react-markdown-editor-lite.
@sylingd was this intended to also work with just the html pane?
value = "Very long text ..."
config={{
view: {
menu: false,
md: false,
html: true,
}
}
I want to display some markdown in a html pane with a maximum height, is this possible? Could it be because this is undefined
or just not called maybe?from react-markdown-editor-lite.
@wezrule Let me modify supported in 1.1.2
from react-markdown-editor-lite.
Related Issues (20)
- Support for RTL HOT 4
- [Question] required prop for textarea HOT 1
- wht I getting this error when i try to write in the editor [object object] HOT 1
- [Question] 请问在线demo的解析器是什么?codesandbox中和自己的demo(markdown-it)有序列表渲染有问题
- [BUG] Autoresize not working if updating value externally (field has no focus)
- 希望能自定义菜单栏 HOT 2
- [Question]怎么开启只读模式,只展示预览框,不展示编辑框 HOT 1
- [Question] Asset Upload to Cloud Storage Serivce
- [Question] after pasting content, the cursor moves to the end HOT 2
- [Question]右边预览滚动时左边编辑器会跟着滚动,但是demo里不会
- [BUG] User can still changes the content when readOnly is true with kb style shortcuts
- How do I allow users to select images from devices. It's not documented. HOT 2
- how to get incerment data?
- [Question] Modifying Toolbar Button's function HOT 2
- [Feature Request]: 可以支持插件图标位置自定义么? HOT 1
- [Question]怎么禁用图片上传功能呢 HOT 5
- How can I resize the uploaded image in editor ? HOT 1
- [Feature Request]如何支持用户可以动态调节高度 HOT 1
- [BUG]
- Accept only Images - "onImageUpload" HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-markdown-editor-lite.