dankito / RichTextEditor

Rich text WYSIWYG editor for Android and JavaFX
Apache License 2.0
92 stars 36 forks source link

How local image upload to server #52

Closed sudipnandi01 closed 3 years ago

sudipnandi01 commented 4 years ago

if I upload an image to the server I get an image url, then I want to insert the image using this server image url. How i have to achieve this functionality?

dankito commented 4 years ago

You can call

RichTextEditor.javaScriptExecutor.insertImage(url: String, alt: String, rotation: Int = 0)

to insert an image at current cursor location.

Does this answer your question?

Soon you can also set image width and height:

open fun insertImage(url: String, alt: String, width: String? = null, height: String? = null, rotation: Int = 0)