Comments (12)
在ot里面可以采用
otClient.connect(连接, 文档id,文件内容) 的形式来设置协同时没有内容采用传入的值作为内容
在YJS里面我没有看见setvalue 类似的方法
from am-editor.
可以在服务端初始化设置内容
from am-editor.
from am-editor.
from am-editor.
我在连接成功后进行set值,是可以覆盖远程内容的值
from am-editor.
有没有什么办法能在连接成功后拿到远程的内容进行判断如果有值就不set值,没有值的时候才执行自己的set值
from am-editor.
from am-editor.
这个方法我试过,我在你的代码里面找到这段内容了的好像不生效
from am-editor.
from am-editor.
我在控制台打印了provider这个属性的内容 ,没有看见有connect这个方法,是我版本有问题嘛?
from am-editor.
我再prototype里面找到了这个方法
from am-editor.
好的,我调到这个逻辑,感谢
from am-editor.
Related Issues (20)
- 引用@aomao/plugin-yjs-websocket并new WebsocketProvider后报These dependencies were not found:
- toolbar引用antd4样式文件,能兼容antd5吗?
- 开启协同编辑后图片经常加载失败
- 能不能为View视图增加一个类似Engine中setHtml渲染方法 HOT 2
- 可以出一个vue2的多人协作demo吗,完全不知道怎么用。 HOT 4
- Toolbar collapse item custome failured, How can define success? HOT 16
- 通过ot 的方式切换到yjs,数据如何同步过来呢?
- 如何对加入文档的协作者进行限制? HOT 2
- 批量上传会丢失数据 request.upload方法有错误 HOT 1
- Ctrl+Z 会丢失内容
- 插件样式引用报错
- ant-design-vue Tooltip异常提示 HOT 1
- embed cannot preview in view
- 样式解耦element-plus
- 完全自定义上传功能定义
- 如何完全外部自定义upload相关业务
- 如何重写编辑器 engine.request.upload 方法 HOT 10
- 如何添加一个placeholder属性
- 官方文档504啦,无法查看文档,期望解决 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 am-editor.