Froala Editor crash after 11 times model changed in React

别等时光非礼了梦想. 提交于 2019-12-02 04:23:22

I've found the answer for my question.

I've tried with simple version using Froala Editor with React and Redux on https://stackblitz.com/edit/react-froala-editor?file=style.css and I've found why it's crashing after 11 times.

Because Froala is using with license, but I've using CSS to remove the banner of Froala so when the 11th change, editor will crash.

I've tried with hidden version (hide license banner) and with no hidden, and the hidden version is crash after 11 times.

I also found a trick how to handle this problem, I don't hide banner, but I set it is invisible by font-size: 0 and padding: 0

div.fr-wrapper>div>a {
        /* display: none !important; */
        /* position: fixed; */
        /* z-index: -99999 !important; */
    font-size: 0px !important;
    padding: 0px !important;
    height: 0px !important;
}
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!