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)
- [Others] node后端进行makeHtml,怎么没有样式,或者说样式怎么不生效呢? HOT 2
- 多个图片复制粘贴问题 HOT 1
- Editor Without Formatting - Plain Text Only
- [Others] code 粘贴的时候,能进行格式化吗? HOT 10
- [Bug] 预览模式 HOT 2
- [Feature Request] 希望提供拦截粘贴行为的回调 HOT 1
- [Bug Report] build failure w/ esbuild HOT 7
- [Feature Request] 希望有一个即时渲染模式,所见即所得,像vditor那样,这样可以让不熟悉markdown语法的用户也能轻松二次编辑markdown文档 HOT 4
- 是否展示顶部工具栏 选项无效
- [Bug Report] 关于setValue开启保持光标位置的性能问题 HOT 2
- [Bug Report] 初始化阶段设置的toolbar在切换编辑模式时未生效
- [Bug Report] 自定义菜单onClick为async函数时报错
- [Bug Report] 自定义语法makeHtml异步问题 HOT 1
- [Bug Report] 使用makeHtml对markdown转换时发生错误 HOT 1
- [Bug Report] 上传flv等不常见的文件时,不会触发uploadfile HOT 1
- [Bug Report]无法识别链接的结束,会把链接后面的内容一并转为 a 标签 HOT 5
- [Feature Request] Pro 版本大概啥时候出来,我看之前规划的话大概是2年前了,像简单表格,echarts渲染表格好像都还没有支持 HOT 2
- 克隆仓库到本地问题 HOT 4
- Render Ordered item with Tailwind CSS
- [Client] 发布后的MarkDown文档在前端页面的渲染方法问题, HOT 3
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.