Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

换行问题 #27

Closed
Big0range opened this issue Nov 10, 2021 · 9 comments
Closed

换行问题 #27

Big0range opened this issue Nov 10, 2021 · 9 comments
Labels
bug Something isn't working question Further information is requested

Comments

@Big0range
Copy link

敲下回车时 并没有实现换行效果

@imzbf
Copy link
Owner

imzbf commented Nov 10, 2021

方便给个代码地址还原下问题么,这边没有发现类似的问题

@imzbf imzbf added the question Further information is requested label Nov 16, 2021
@Big0range
Copy link
Author

<template>
  <div>
    <editor v-model="text" editorClass="editor" :pageFullScreen="false"></editor>
  </div>
</template>

<script lang="ts">
import { defineComponent, ref } from 'vue'
import Editor from 'md-editor-v3'
import 'md-editor-v3/lib/style.css'
export default defineComponent({
  components: {
    Editor
  },
  setup() {
    const text = ref(`# H1`)
    return {
      text
    }
  }
})
</script>

运行环境: windows 10 Chrome浏览器

@imzbf
Copy link
Owner

imzbf commented Nov 16, 2021

运行环境: windows 10 Chrome浏览器

请问编辑器的版本是?

@Big0range
Copy link
Author

版本 94.0.4606.81(正式版本) (32 位)
我测试了下 回车必须敲两下才可以换行,而有的时候又只需要敲一下
比如说上一行是标题(# xxx) 一次回车就可以换行,
如果是普通段落的话,则需要按两次回车

@imzbf
Copy link
Owner

imzbf commented Nov 17, 2021

请问你在文档页面的编辑器示例中会出现该问题吗?如果没有,最好能提供一个临时的代码仓库供还原问题,这边才能正确的解决你的问题。

@Big0range
Copy link
Author

1637117622(1).jpg
会的呢,情况是一样的

@imzbf imzbf added the bug Something isn't working label Nov 17, 2021
imzbf pushed a commit that referenced this issue Nov 17, 2021
@imzbf
Copy link
Owner

imzbf commented Nov 19, 2021

v1.7.0版本后已修复该问题

@imzbf imzbf closed this as completed Nov 19, 2021
imzbf pushed a commit that referenced this issue Mar 21, 2022
imzbf pushed a commit that referenced this issue Mar 21, 2022
imzbf pushed a commit that referenced this issue Mar 22, 2022
imzbf pushed a commit that referenced this issue May 16, 2022
imzbf added a commit that referenced this issue May 16, 2022
imzbf added a commit that referenced this issue May 16, 2022
imzbf added a commit that referenced this issue May 16, 2022
imzbf added a commit that referenced this issue May 16, 2022
imzbf pushed a commit that referenced this issue May 16, 2022
@Jack-hyt
Copy link

v1.7.0版本后已修复该问题

我用的1.11.0还是不能识别,还是要敲两下回车

@Jack-hyt
Copy link

vue版本是3.2.13

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants