Comments (7)
@sunsonliu 还没实现这个api,如果急用,可以先 cherry.wrapperDom.remove();。。。
这个确实有用,我是在nuxt下使用的,希望有个destroy方法
from cherry-markdown.
有道理,我们给setMarkdown和setValue增加第二个参数吧,autoRestoreCursor = true 会尝试保持之前的光标位置。
这里逻辑比较复杂,尤其是在光标之前变动内容的时候,盲目按照偏移量恢复光标不符合预期,比如原始内容是 ABC光标DEF
,当内容变成AABCDEF
的时候,光标会出现在AAB光标CDEF
,这是不符合预期的,所以需要对setValue前后的内容进行一次diff,然后计算出光标变更偏移量,最终实现光标出现在AABC光标DEF
,这块有些开发工作量,我们排期搞下哈
from cherry-markdown.
vue组件多次创建Cherry实例怎么办?
Cherry没有destroy()方法
from cherry-markdown.
vue组件多次创建Cherry实例怎么办? Cherry没有destroy()方法
我新建了一个issue #140 来跟进没有destory的问题哈
from cherry-markdown.
https://github.com/Tencent/cherry-markdown/releases/tag/v0.6.6
from cherry-markdown.
@sunsonliu 如何destroy啊?有办法吗
from cherry-markdown.
@sunsonliu 如何destroy啊?有办法吗
还没实现这个api,如果急用,可以先 cherry.wrapperDom.remove();
。。。
from cherry-markdown.
Related Issues (20)
- [Bug Report] 代码提示自动补全国际化问题 HOT 2
- PR合并后自动清除PR在线预览相关资源 HOT 1
- [Feature Request] 代码块语法中的语言支持更多的别名 HOT 2
- 服务器部署时如何修改到指定IP和端口? HOT 1
- [Bug report]多脚注解析错乱 HOT 1
- [Feature Request] 添加“内联代码”按钮或者改进现有的“代码块”工具条按钮 HOT 4
- [Client] 使用的 vue 2+ toc 可以跳转到对应锚点 ,标题前面 <a> 的锚点信息,没有完整的location,开启 toc.updateLocationHash 后 location hash 也不对
- [Others] 最近停更了吗? HOT 4
- 有序列表的语法,如何使用英文字母而不是希腊字母? HOT 1
- [Bug Report] 不支持mermaid@^10.9.1 HOT 1
- [Bug Report] 渲染 mermaid 脑图时,节点重叠在一起
- 【提议】模块化插件支持
- 增加是否自动把制表符转成空格的配置及功能
- [Others]【drawio】纯预览点击drawio图片能弹窗iframe界面 还能修改 HOT 3
- [Bug Report]页面上已有mathjax,再引入 cherry-markdown markdown 中的公式不会生效 HOT 1
- 多文件上传接口后台api应该返回什么格式的json数据? HOT 2
- 插入图片缩小了,如何做成链接点击放大? HOT 6
- 快捷键配置无效 HOT 1
- 关于Mathjax的配置? HOT 1
- 主题样式的覆盖与修改? 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 cherry-markdown.