Git Product home page Git Product logo

Comments (13)

rickx81 avatar rickx81 commented on June 30, 2024

子应用中的 getSelection() 指向好像有问题,都指向了第一个 shadowRoot ?

image

image

from wujie.

zonemeen avatar zonemeen commented on June 30, 2024

@rickx81 你好,你是怎么解决这个问题的,我也遇到了

from wujie.

rickx81 avatar rickx81 commented on June 30, 2024

@rickx81 你好,你是怎么解决这个问题的,我也遇到了

其实是另外一个问题导致的 #770
我自己 fork 代码改了,然后自己发包使用了

from wujie.

zonemeen avatar zonemeen commented on June 30, 2024

行吧,估计只有这种方法解决了,你是咋改写缓存了,请问一下

from wujie.

rickx81 avatar rickx81 commented on June 30, 2024

行吧,估计只有这种方法解决了,你是咋改写缓存了,请问一下

我是这样改的,目前使用正常,但是不保证没有其他问题,可以参考下 Commit

from wujie.

zonemeen avatar zonemeen commented on June 30, 2024

可以,我试试,谢谢了

from wujie.

rickx81 avatar rickx81 commented on June 30, 2024

可以,我试试,谢谢了

没问题的话可以提个 pr 给他们

from wujie.

AttackXiaoJinJin avatar AttackXiaoJinJin commented on June 30, 2024

兄弟赶紧提,不止是你这个编辑器,我用的slate也遇到这个问题了,感觉只要是子应用里用了编辑器都会出现这个bug

from wujie.

rickx81 avatar rickx81 commented on June 30, 2024

兄弟赶紧提,不止是你这个编辑器,我用的slate也遇到这个问题了,感觉只要是子应用里用了编辑器都会出现这个bug

最近很忙,你也可以提一个pr看看
这个 getSelection 其实还有个问题,shadowRoot 上的 isCollapsed 始终都是 true 还是 false 来着,有些编辑器内部会自己根据选中的前后位置判断

from wujie.

ZhangYC193 avatar ZhangYC193 commented on June 30, 2024

好像还是不行啊

from wujie.

rickx81 avatar rickx81 commented on June 30, 2024

好像还是不行啊

可以自己改一下源码发包,或者用 pnpm patch 的方式改一下源码打补丁

from wujie.

ZhangYC193 avatar ZhangYC193 commented on June 30, 2024

好像还是不行啊

可以自己改一下源码发包,或者用 pnpm patch 的方式改一下源码打补丁

改 wangeditor吗 @rickx81

from wujie.

rickx81 avatar rickx81 commented on June 30, 2024

好像还是不行啊

可以自己改一下源码发包,或者用 pnpm patch 的方式改一下源码打补丁

改 wangeditor吗 @rickx81

wangeditor 的话你搜一下 issue 应该有解决方案吧,我这个问题是 CKEditor 的光标异常问题,主要是子应用里面的 getSelection 都指向了第一个子应用,改了 wujie 的代码

from wujie.

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.