2

You can do it with Apex. If you have only 1 image in the text you can use the following sample code. String contactId; Contact c = [ SELECT Id, Picture__c FROM Contact WHERE Id = :contactId ]; c.Picture__c = c.Picture__c.replace('<img', '<img style="height: 256px"'); update contacts; Note: update SObject name and field name ...


2

You cannot add tables directly in Rich Text Area, however, you can copy and paste them from MS Excel, for example. The result will be like this:


2

Rich text fields are a little wonky. ISNULL and ISBLANK don't work with this field type, period. To check NULL on this data type field we need to use LEN. It basically calculates the number of characters. So if you have VR like this: LEN(richText__c) = 0 If you insert an image in the field, the rule will not fire. It will only fire once you add a space ...


2

No, you cannot. https://help.salesforce.com/articleView?id=quick_text_insert.htm&type=5 There's an idea to have quick text used for standard case comments which you can vote for here: https://success.salesforce.com/ideaView?id=0873A0000003XnRQAU Any other option would require some type of custom creation with LWC or something along those lines. It's ...


2

I get the answer in this official article . I conclude 3 point : Reason : Images in the rich text area fields are meant to be "Salesforce internally available only" by default. A user from site is unauthenticated to the image in RTA. Solution: Step 1 : Make your articles publicly available, which makes them accessible via force.com sites. Step 2 : You ...


1

In LWC, components are designed so as to be unaffected by their context of use; CSS from one LWC has no impact on its children's rendering. The formatted rich text component will be no different. As per the documentation, the formatted rich text component does not support the "style" element, so you cannot embed the CSS in the HTML to be rendered. ...


1

The \ character is an escape character in Apex. If you wanted it to be a literal backslash in the resulting string, you'd have to double up on it: \\. However, this won't work the way you expect, as the characters need to be escaped in HTML. Use escapeHtml4() to do this: newArticle.Article_Body_Long_T__c = result.SolutionNote.escapeHtml4(); Or, to ...


1

To retain the formatted value of long text area while coping to the rich-text area, You need to replace all the carriage returns with br's as rich text area accepts HTML instead of a string. I did something like this and it worked:- Account__c acc= [SELECT Id, Name, Long_Text__c, Rich_Text__c FROM Account__c where id='a0WB0000000WrLUMA0']; acc.Rich_Text__c = ...


1

Unfortunately it is not possible anymore with the built-in Richtext editor. According to https://help.salesforce.com/articleView?id=000313235&language=en_US&type=1&mode=1 : "Tables cannot be added via the UI; however they can be added via API (APEX script sample below):" It is a great step, my users love it :-(


1

This problem is caused by the EXIF extension in this article, combined with the fact that apparently image-rotation is, by default, 0deg, so any compliant browser isn't allowed to show the image right-side-up. The only fix for this is to reorient the image properly by using an image manipulation algorithm capable of reordering the pixels in the file, such ...


Only top voted, non community-wiki answers of a minimum length are eligible