How can i show file type and size details along with link in Rich Text Editor (TinyMCE v6)

Vote:
 

I need to show file type name and size along with the refrence URL in Rich Text Editor as  below, any suggetions please.
Example: licence revocation notice (PDF, 369.6 KB)

#302797
Jun 01, 2023 11:37
Vote:
 

Hi Rajveer,

You could create a content event that will check for properties of type XhtmlString.

For these property types then analyze the cotent to check for file types and if it matches then retrieve the information and update the XhtmlString content.

Or you could possibly do the same logic when rendering, might have a slight performance impact though would need testing.

Thanks

Paul

#302798
Jun 01, 2023 16:00
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.