Code Monkey home page Code Monkey logo

Comments (12)

smallCF avatar smallCF commented on June 12, 2024

在ot里面可以采用
otClient.connect(连接, 文档id,文件内容) 的形式来设置协同时没有内容采用传入的值作为内容
在YJS里面我没有看见setvalue 类似的方法

from am-editor.

big-camel avatar big-camel commented on June 12, 2024

可以在服务端初始化设置内容

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

是指连接上服务端后去设置内容嘛?
image

from am-editor.

big-camel avatar big-camel commented on June 12, 2024

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

我在连接成功后进行set值,是可以覆盖远程内容的值

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

有没有什么办法能在连接成功后拿到远程的内容进行判断如果有值就不set值,没有值的时候才执行自己的set值
image

from am-editor.

big-camel avatar big-camel commented on June 12, 2024

image

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

这个方法我试过,我在你的代码里面找到这段内容了的好像不生效

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

image

image

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

我在控制台打印了provider这个属性的内容 ,没有看见有connect这个方法,是我版本有问题嘛?
image

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

我再prototype里面找到了这个方法

from am-editor.

smallCF avatar smallCF commented on June 12, 2024

好的,我调到这个逻辑,感谢

from am-editor.

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.