Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 2984
7 votes
Accepted

Find the word count of a Rich Text Area

You can't reliably use LTA, RTA, or ETA fields (Long, Rich, Encrypted) in formulas, but you can in Apex Code. My solution would be simply: trigger CheckWorkCount on SObject (before insert, before upd …
sfdcfox's user avatar
  • 502k
0 votes

Visualforce rich text input area spacing

<p> elements include a 1em space afterwards; it's part of the HTML specs. If you want to have single spacing, use a line break (<br />) instead.
sfdcfox's user avatar
  • 502k
1 vote

Image URL in Rich Text Area field Salesforce

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 …
sfdcfox's user avatar
  • 502k
5 votes
Accepted

Is there an easy way to change the WYSIWYG editor for sending emails?

Short answer: no. Long answer: It's not easy, but it is possible, if you're willing to work for it, and accept the limitations that would arise from such a hack. There are two basic ways to accompli …
sfdcfox's user avatar
  • 502k
1 vote
Accepted

Trying to Update Text Area (Long) to Text Area (Rich) for all Account Records

You need to filter your accounts to only include values that are populated, and only for records that need to be updated. The Null Pointer Exception (NPE) is generated here by replaceAll: a.RichText__ …
sfdcfox's user avatar
  • 502k
1 vote
Accepted

Handling the String with <> characters

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 t …
sfdcfox's user avatar
  • 502k
7 votes

rtaimage servlet parameters...what does the refid refer to?

eid is a custom object, the "entity ID". Presumably, you could use this to view an instance of your record. feoid is the "field entity ID". This describes the field that the content is stored in. You …
sfdcfox's user avatar
  • 502k
1 vote

Not able to update Rich text field with XML data

A rich text area only stores "HTML" content, not "XML" content. You cannot freely store any tags you wish, only those that are allowed in HTML that cannot cause potential threats (e.g. you cannot stor …
sfdcfox's user avatar
  • 502k
0 votes

Sending HTML via SOAP API

The SOAP API uses XML, which is a variant of SGML (the Standardized General Markup Language), which is also used by HTML. As such, when you place unsafe characters, which are &, <, >, and ", inside a …
sfdcfox's user avatar
  • 502k
2 votes
Accepted

Remove tags from Rich Text Area

You can use the stripHtmlTags() function to remove all HTML tags. string msgToSup = 'Privacy Officer Message: ' + SPM.Message_To_Supervisor__c.stripHtmlTags() + '\n\n' + 'Security Officer Me …
sfdcfox's user avatar
  • 502k
5 votes

How to enable wrap text in ui:outputRichText?

You shouldn't do anything special at all. It works correctly as is without any other wrappers. Here's a very basic example I wrote up. Application <aura:application extends="force:slds"> <aura …
sfdcfox's user avatar
  • 502k
2 votes

Rich Text pictures - how to find and manage them

The images stored in a RTA field are saved to the ContentReference (not ContentDocumentLink, ContentDocument, or ContentVersion) object. Short of performing a Data Export, I couldn't find a way to get …
sfdcfox's user avatar
  • 502k
4 votes
Accepted

All TextArea replace with the Rich Text

The Id of an apex:inputTextArea is modified by the runtime system that guarantees it will be unique on the page. As a side effect, this means you can't generally use those Id values without some extra …
sfdcfox's user avatar
  • 502k
2 votes

Is there a decent WYSIWG HTML editor that will run inside an LWC?

I was able to get Froala working in an LWC, so it's not LWC's fault. Most of the time, you'll find that errors of the "parameter 1 is not a X" errors are related to Locker Service (LS) or Lightning We …
sfdcfox's user avatar
  • 502k
0 votes

Beautify code snippet string in LWC

By default, Prettier expects to find the parser in a particular file location. It's not enough to just upload the file and hope for the best. It appears that you should create a ZIP (Compressed Folder …
sfdcfox's user avatar
  • 502k