You can do it with Apex.
If you have only 1 image in the text you can use the following sample code.
Contact c = [
SELECT Id, Picture__c
WHERE Id = :contactId
c.Picture__c = c.Picture__c.replace('<img', '<img style="height: 256px"');
Note: update SObject name and field name
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 ...
No, you cannot.
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 ...
I get the answer in this official article .
I conclude 3 point :
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.
Step 1 : Make your articles publicly available, which makes them accessible via force.com sites.
Step 2 : You ...
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. ...
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 ...
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 = ...
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 :-(
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 ...