We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

SfRichTextBoxAdv html mode image help and css changes

Hi.

I have a problem with SfRichTextBoxAdv images in html, i've checked the documentation, but it is poor.

If i save document as html, they are all embedded in img tag as a src data, but i need them just as relative to app folder links to images, is this supported?

The thing is i need some way to also change the image folder before they are added to document, a way to intercept add image dialog results.

This is how i should work:

1) I open app and type some text in editor, the app has already a dedicated image folder for relative access "img"
2) I want to add an image, but this image can be anywhere, on any disk and folder, i click add image and the dialog pop out
3) Now the requirement, when i choose image from any disk and folder it is first:
- copied to dedicated "img" folder in app dir
- its name is changed to unique
- the image now in "img" folder with unique name is added to the document as img tag with src that has a relative link this folder eg. <img src="img/some_unique_name.jpg" />

How i can do this?

Also, when i remove image from document, is there a way i can know that? Some event? I just want to delete it form the "img" folder when removing from document.

I need html and images separate, it will work as an editor for android app, so the img tags can not have embed image.

---

I also would like to know if i can somehow change the generated css styles, i don't want it to add font-family styles or i way to force a font-familly interanially.

3 Replies

EJ Emmima Josephine Jeyapaul Syncfusion Team September 28, 2016 10:15 AM UTC

Hi Andrew, 
Thank you for contacting Syncfusion support. 
We have logged provide options in Html Exporting with css styles and Image path as a feature request in our database. We will implement this feature in any of our upcoming releases. We usually have an interval of at least three months between releases. The feature implementation would also greatly depend on the factors such as product design, code compatibility and complexity. we request you to visit our website periodically for release updates.

 
Regards, 
Emmima. 



AN Andrew September 28, 2016 12:55 PM UTC

So what that means now?

There is no way i can make it with image paths? Or insert image at caret position myself?

I don't have time to wait month and stop the project, this is very poor support and documentation, looks like SfRichTextBoxAdv is very simple and feature missing control.

I need a solution ASAP, where is really no way to override it or something?

So, this means if i edit an external html document with images using this control it wont work?


EJ Emmima Josephine Jeyapaul Syncfusion Team September 29, 2016 12:18 PM UTC

Hi Andrew, 
You have already created the support Incident for the same query. Please follow up the support incident to access this solution for your requirement under your Direct Trac account. Please log on to our support website to check for further updates. 
Please get back to us know if you need further assistance. 
 
Regards, 
Emmima. 


Loader.
Up arrow icon