Comments (7)
嗯,这个问题其实应该到simplemde的仓库去反馈,我只是做了一个vue插件的封装而已,不过我可以试试看可不可以通过hack的方式来处理下这个问题。
另外高度默认就是自适应的,可以通过以下样式设置最小高度
.markdown-editor .CodeMirror, .markdown-editor .CodeMirror-scroll {
min-height: 200px;
}
我的demo里是把高度设置为固定值了,所以才不会自动调整
.markdown-editor .CodeMirror {
height: 300px;
}
from vue-simplemde.
谢谢回复,
是的,我知道这个是codeMirror的问题,在simpleMde中也有人提,然后被ref到codeMirror关闭了。。所以很无奈
我说的自适应只是举个列子,我意思是如果codeMirror的这个问题解决不了,不知道simplemde有没有提供一个方法可以让我们禁用codeMirror,而是使用一般的纯文本,这样的话,如果限定ios中使用纯文本输入框,不就解决问题了么。。虽然是个bypass。但是ios不需要太多codeMirror的功能,比如tab的缩进等等。。
谢谢啦,如果你觉得这个很难搞,请关闭这个issue吧,确实不是您的项目的issue
再次感谢
from vue-simplemde.
嗯,我手里暂时没有ios的手机,之后有机会可以再看下这个问题,不过禁用codeMirror这个好像不太可行,看上去simplemde是高度依赖codeMirror的
from vue-simplemde.
你可以试下这个组件 码文看有没有类似的问题
from vue-simplemde.
hi,
我有试过,这个没问题的,因为左侧的编辑栏是没有使用codeMirror,就是说左侧你写了#或者其他markdown语法是不会立刻显示出效果的。还有tab等等。
就是codeMirror的问题,唉。我觉得在pc端simplemde编辑体验更好。但是不支持ios是个硬伤。
谢谢啦
from vue-simplemde.
没事,刚刚看了下codemirror还是一直在更新的,但是simplemde已经快一年没更新了,你试试看现在codemirror有没有修复这个问题,有的话自己重新打包一个simplemde应该就可以了
from vue-simplemde.
mark,有修复了的同学吗
from vue-simplemde.
Related Issues (20)
- @input event never fire HOT 1
- Editor not working. Showing regular textarea field HOT 2
- @input event not firing HOT 1
- Vue2.6.x导入VueSimplemde时出现报错 xxx is not exported from package HOT 2
- support for emojis
- marked is not a function
- Cannot enable code highlight HOT 1
- Displaying the rendered markdown without going fullscreen.
- Focusing Element needed HOT 1
- 请问是否删除了 vue-simplemde/src/markdown-editor ? HOT 2
- Vetur & typescript: Cannot find module 'vue-simplemde'. Vetur(2307) HOT 1
- modelVal not updating on model change HOT 3
- Changing the config setup in initialise to the spread operator broke in IE HOT 4
- How do you clear the vue-simplemde after axios.post method? HOT 1
- 怎么使用单纯的查看模式 HOT 3
- v-model is broken HOT 4
- Question: customising button bar HOT 1
- Add changelog.md
- vue-simplemde 支持vue3吗 HOT 1
- Updating modelValue from outside of the editor HOT 2
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 vue-simplemde.