4
votes
Can I use base LWC in Aura component?
In Aura you write with Aura syntax, so you reference the components the same way you have always done in Aura regardless of what type of component it is (Aura or LWC)
<aura:component>
<...
4
votes
Accepted
Can I use base LWC in Aura component?
Yes you should be able to do this by wrapping up the LWC base component in a custom LWC Component. You can use custom LWC component in an Aura Component. Use this link to understand how to use custom ...
3
votes
Accepted
How to Get the Current Value from a Lightning-Input-Rich-Text
Avoid using onChange and may be use the querySelctor instead as shown below
<template>
<lightning-input-rich-text value={myVal}>
</lightning-input-rich-text>
<lightning-...
2
votes
Accepted
lightning:inputrichtext value can be initialized from init method, but not from different method
Looks like we can override by adding a Renderer file .Here is the code thats working for me
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:...
2
votes
Accepted
Is it possible to initialize the value in a lightning:inputRichText, like with a lightning:input or ui:inputText?
The below code worked perfectly fine for me
<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:...
2
votes
How to adjust min-height of Salesforce Lightning input rich text component on load
Here's a solid option if you need auto-sizing:
All you have to do is add the below code to your CSS file within your Aura or LWC. This automatically sets the appropriate size for the rich text area. ...
1
vote
Accepted
lightning-input-rich-text deleting rendered email template on backspace
Per Salesforce, editing HTML email templates in the lightning-input-rich-text tag is a know limitation and cannot be done.
1
vote
Accepted
How to get the InnerHTML from lightning:inputRichText?
The value attribute should contain the HTML:
JS:
import { LightningElement, track} from 'lwc';
export default class testLwc extends LightningElement {
@track htmlValue;
handleChange(event) ...
1
vote
Accepted
Unable to Embed TinyMCE 6 Text Editor into VisualForce Page
I had an incorrect path, was missing the base folder. Here is the correct way to import it:
<apex:includeScript value="{!URLFOR($Resource.TinyMCE,'tinymce/js/tinymce/tinymce.min.js')}"/&...
1
vote
LWC Rich Text component doesn't trigger change event, value not updated on blur, for minor changes
Calling e.target.setRangeText("", 0, 0) will flush out any changes without changing/corrupting them (though note that the editor might standardize some of the formatting, like wrapping the ...
1
vote
Resize lightning-input-field when it is a rich text field using the cursor
Here's a better option:
All you have to do is add the below code to your CSS file within your Aura or LWC. This automatically sets the appropriate size for the rich text area. This will even ...
1
vote
Aura component replace highlighted text
Solution found:
let range = window.getSelection().getRangeAt(0),
desiredLink = 'www.nba.com',
desiredText = window.getSelection().toString();
range.deleteContents();
let el = document....
1
vote
Accepted
How to adjust min-height of Salesforce Lightning input rich text component on load
Yes it can be targeted in the css file. Lightning components such as lightning:inputRichText generate their own HTML that will have to be targeted. The following will work with your provided class:
....
1
vote
How to adjust min-height of Salesforce Lightning input rich text component on load
You can change height using CSS for lightningInputRichText control
.THIS .slds-rich-text-editor__textarea{
height: 14em;
}
1
vote
Accepted
Rich text in Lightning design file
Sorry this is currently not supported. Only String, Integer and Boolean are supported, where Strings can have a datasource that will present as a picklist.
Reference: https://developer.salesforce....
1
vote
Accepted
How to do character count in rich text field
As we cannot add onKeyUp Listener on lightning:inputRichText , we will add a listener to commentBody attribute in the markup. We can do that using aura:valueChange
Markup:
<aura:attribute name="...
1
vote
How to do character count in rich text field
You should be able to get the value of the lightning:inputRichText
And then find it's length:
let value = cmp.find('inputRichTextId').get("v.value");
let characterCount = value.length;
1
vote
Accepted
How to get current cursor position in Lightning:inputrichtext field?
I believe it is not possible because you need to get hold of the cursor position of the lightning:inputRichText which is not exposed either by attribute or by action as of now, also it's part of ...
1
vote
Auto insert text at end of line of a rich text field
When you use an <apex:... id="..."> component, the id value gets prefixed. The simplest fix is to use the "ends with" ($=) selector:
var input = $("[id$='notes']");
var notFound = $("#notes"); /...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
inputrichtext × 33lightning-aura-components × 10
lightning-web-components × 10
lightning × 9
richtextarea × 8
aura × 4
visualforce × 3
javascript × 3
lightninginput × 3
visual-workflow × 2
css × 2
html × 2
third-party × 2
apex × 1
email × 1
integration × 1
salesforce1-app × 1
case × 1
lightning-design-system × 1
jquery × 1
service-cloud-console × 1
servicecloud × 1
javascript-controller × 1
visual-flows × 1
feeditem × 1