Coder Social home page Coder Social logo

Comments (7)

F-loat avatar F-loat commented on May 23, 2024

嗯,这个问题其实应该到simplemde的仓库去反馈,我只是做了一个vue插件的封装而已,不过我可以试试看可不可以通过hack的方式来处理下这个问题。

另外高度默认就是自适应的,可以通过以下样式设置最小高度

.markdown-editor .CodeMirror, .markdown-editor .CodeMirror-scroll {
  min-height: 200px;
}

我的demo里是把高度设置为固定值了,所以才不会自动调整

.markdown-editor .CodeMirror {
  height: 300px;
}

from vue-simplemde.

EveLuty avatar EveLuty commented on May 23, 2024

谢谢回复,

是的,我知道这个是codeMirror的问题,在simpleMde中也有人提,然后被ref到codeMirror关闭了。。所以很无奈

我说的自适应只是举个列子,我意思是如果codeMirror的这个问题解决不了,不知道simplemde有没有提供一个方法可以让我们禁用codeMirror,而是使用一般的纯文本,这样的话,如果限定ios中使用纯文本输入框,不就解决问题了么。。虽然是个bypass。但是ios不需要太多codeMirror的功能,比如tab的缩进等等。。

谢谢啦,如果你觉得这个很难搞,请关闭这个issue吧,确实不是您的项目的issue

再次感谢

from vue-simplemde.

F-loat avatar F-loat commented on May 23, 2024

嗯,我手里暂时没有ios的手机,之后有机会可以再看下这个问题,不过禁用codeMirror这个好像不太可行,看上去simplemde是高度依赖codeMirror的

from vue-simplemde.

F-loat avatar F-loat commented on May 23, 2024

你可以试下这个组件 码文看有没有类似的问题

from vue-simplemde.

EveLuty avatar EveLuty commented on May 23, 2024

hi,

我有试过,这个没问题的,因为左侧的编辑栏是没有使用codeMirror,就是说左侧你写了#或者其他markdown语法是不会立刻显示出效果的。还有tab等等。

就是codeMirror的问题,唉。我觉得在pc端simplemde编辑体验更好。但是不支持ios是个硬伤。

谢谢啦

from vue-simplemde.

F-loat avatar F-loat commented on May 23, 2024

没事,刚刚看了下codemirror还是一直在更新的,但是simplemde已经快一年没更新了,你试试看现在codemirror有没有修复这个问题,有的话自己重新打包一个simplemde应该就可以了

from vue-simplemde.

can-cc avatar can-cc commented on May 23, 2024

mark,有修复了的同学吗

from vue-simplemde.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.