ckeditor5

How to get data from CKEditor 5 instance

纵饮孤独 提交于 2019-11-27 06:59:00
问题 I know that for CKEditor 4, you can get the textarea data like this: var content = CKEDITOR.instances['comment'].getData(); How is this done for CKEditor 5? 回答1: You can find the answer in the Basic API guide. Basically, in CKEditor 5 there's no single global editors repository (like the old CKEDITOR.instances global variable). This means that you need to keep the reference to the editor that you created and use that reference once you'll want to retrieve the data: ClassicEditor .create(

How to set the height of CKEditor 5 (Classic Editor)

孤人 提交于 2019-11-27 03:03:27
问题 In CKEditor 4 to change the editor height there was a configuration option: config.height. How do I change the height of CKEditor 5? (the Classic Editor) 回答1: Answering my own question as it might help others. CKEditor 5 no longer comes with a configuration setting to change its height. The height can be easily controlled with CSS. There is one tricky thing though, if you use the Classic Editor: <div id="editor1"></div> ClassicEditor .create( document.querySelector( '#editor1' ) ) .then(

How to enable image upload support in CKEditor 5?

耗尽温柔 提交于 2019-11-26 20:43:56
I will use the ckeditor v5 into my project. I´ve trying to use the image plugin, but I don´t find enough informations about it. If you see the Demoe here , you easily upload images with Drag&Drop. But when I will try it with the download ballon zip nothing happens when I try to Drag&Drop a image. There is also no error. Is there a way to use this image support in the downladable variant? Yes, image upload is included in all the available builds. In order to make it work, though, you need to configure one of the existing upload adapters or write your own. In short, upload adapter is a simple

How to enable image upload support in CKEditor 5?

一个人想着一个人 提交于 2019-11-26 06:44:03
问题 I will use the ckeditor v5 into my project. I´ve trying to use the image plugin, but I don´t find enough informations about it. If you see the Demoe here, you easily upload images with Drag&Drop. But when I will try it with the download ballon zip nothing happens when I try to Drag&Drop a image. There is also no error. Is there a way to use this image support in the downladable variant? 回答1: Yes, image upload is included in all the available builds. In order to make it work, though, you need