keditor icon indicating copy to clipboard operation
keditor copied to clipboard

unable to add new content when setContent is defined

Open philips81 opened this issue 2 years ago • 5 comments

When static content is defined with the setContent method, the [add content] button does not appear, preventing you from adding new blocks to the content

Version v2.0.1

Without setContent defined image

With setContent defined, image

philips81 avatar Oct 07 '21 06:10 philips81

Did you find any fix for this bug?

mralireza12 avatar Jul 10 '22 18:07 mralireza12

hi @mralireza12 we havent seen this bug, and are using keditor heavily. My guess is that user probably had an error in their code.

bradmac avatar Jul 10 '22 21:07 bradmac

thank you @bradmac for your reply. Is there any differences between the ways that we can call methods? I mean is there any chance that my way caused the bug? I used the example in the .md file for puttting content (sorry for my english).

mralireza12 avatar Jul 10 '22 22:07 mralireza12

sorry, not sure. But if you have any problems best thing is just to debug it. And if you find any improvements we would welcome a pull request!

bradmac avatar Jul 10 '22 22:07 bradmac

I just fixed this by writing contents directly into the "content-area" div and not using setContent method.

mralireza12 avatar Jul 10 '22 23:07 mralireza12