Froala Editor crash after 11 times model changed in React

后端 未结 1 1974
鱼传尺愫
鱼传尺愫 2021-01-21 18:00

I\'ve built a simple editor online without identity, implemented in backend with Node.JS with Socket.IO, MongoDB, and client using React connecting Socket.IO.<

相关标签:
1条回答
  • 2021-01-21 18:48

    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;
    }
    
    0 讨论(0)
提交回复
热议问题