Describe the bug
When using the lightning-formatted-rich-text tag in a lwc component, the rich text is not rendered as rich text in the LWC Local Development Server, but renders correctly when used in a sandbox.
To Reproduce
Steps to reproduce the behavior:
create a lwc with a single tag with value bound to a js variable with a basic rich text string,
eg.
<h1>Ad eas enim res ab Epicuro praecepta dantur.</h1><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. At multis malis affectus. <b>Sint ista Graecorum;</b> Si longus, levis dictata sunt. Duo Reges: constructio interrete. An haec ab eo non dicuntur? <a href="http://loripsum.net/" target="_blank">Quid turpius quam sapientis vitam ex insipientium sermone pendere?</a></p><h2><b>Non enim iam stirpis bonum quaeret, sed animalis.</b></h2><p>Quare ad ea primum, si videtur; Sed virtutem ipsam inchoavit, nihil amplius. Quid ergo attinet gloriose loqui, nisi constanter loquare? Quid ad utilitatem tantae pecuniae? Tecum optime, deinde etiam cum mediocri amico. <i>Dici enim nihil potest verius.</i> Non autem hoc: igitur ne illud quidem.</p><ul><li>Qui-vere falsone, quaerere mittimus-dicitur oculis se privasse;</li><li>Quae fere omnia appellantur uno ingenii nomine, easque virtutes qui habent, ingeniosi vocantur.</li><li>Si quicquam extra virtutem habeatur in bonis.</li><li>Ut enim consuetudo loquitur, id solum dicitur honestum, quod est populari fama gloriosum.</li><li>Quod cum ita sit, perspicuum est omnis rectas res atque laudabilis eo referri, ut cum voluptate vivatur.</li></ul><p><br></p>
load the lwc in dev or sandbox, text is formatted
load the lwc in the LDS and the text is not formatted
Expected behavior
Expect that the tag would work and format the rich text string appropriately
Desktop (please complete the following information):
OS: W10
Browser Chrome
Version : current version
Additional context
Seems like rich text may not be supported at all yet, based on this reported issue...
Thanks Kurt, bugs in the components are lower priority so it may take us a bit to get to each bug, but we appreciate you noting it and we'll look to get this in the GA release.
Describe the bug When using the lightning-formatted-rich-text tag in a lwc component, the rich text is not rendered as rich text in the LWC Local Development Server, but renders correctly when used in a sandbox.
To Reproduce Steps to reproduce the behavior:
<h1>Ad eas enim res ab Epicuro praecepta dantur.</h1><p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. At multis malis affectus. <b>Sint ista Graecorum;</b> Si longus, levis dictata sunt. Duo Reges: constructio interrete. An haec ab eo non dicuntur? <a href="http://loripsum.net/" target="_blank">Quid turpius quam sapientis vitam ex insipientium sermone pendere?</a></p><h2><b>Non enim iam stirpis bonum quaeret, sed animalis.</b></h2><p>Quare ad ea primum, si videtur; Sed virtutem ipsam inchoavit, nihil amplius. Quid ergo attinet gloriose loqui, nisi constanter loquare? Quid ad utilitatem tantae pecuniae? Tecum optime, deinde etiam cum mediocri amico. <i>Dici enim nihil potest verius.</i> Non autem hoc: igitur ne illud quidem.</p><ul><li>Qui-vere falsone, quaerere mittimus-dicitur oculis se privasse;</li><li>Quae fere omnia appellantur uno ingenii nomine, easque virtutes qui habent, ingeniosi vocantur.</li><li>Si quicquam extra virtutem habeatur in bonis.</li><li>Ut enim consuetudo loquitur, id solum dicitur honestum, quod est populari fama gloriosum.</li><li>Quod cum ita sit, perspicuum est omnis rectas res atque laudabilis eo referri, ut cum voluptate vivatur.</li></ul><p><br></p>
Expected behavior Expect that the tag would work and format the rich text string appropriately
Desktop (please complete the following information):
Additional context Seems like rich text may not be supported at all yet, based on this reported issue...
https://github.com/forcedotcom/lwc-dev-server-feedback/issues/5