From 48277026659912c3387b06bd55b2113765091eb4 Mon Sep 17 00:00:00 2001 From: Ayesha Mazumdar Date: Tue, 5 Dec 2017 10:41:51 -0800 Subject: [PATCH] fix(rich-text-editor): Remove break-all code to keep hyperlinks intact (#2936) --- ui/components/rich-text-editor/base/_index.scss | 4 ---- ui/components/rich-text-editor/base/example.jsx | 5 +++-- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/ui/components/rich-text-editor/base/_index.scss b/ui/components/rich-text-editor/base/_index.scss index 7c401667f2..18fbd353d0 100644 --- a/ui/components/rich-text-editor/base/_index.scss +++ b/ui/components/rich-text-editor/base/_index.scss @@ -176,10 +176,6 @@ word-wrap: break-word; hyphens: manual; - a { - word-break: break-all; - } - h1 { font-size: $font-size-heading-large; } diff --git a/ui/components/rich-text-editor/base/example.jsx b/ui/components/rich-text-editor/base/example.jsx index 4384745940..e2729c8f85 100644 --- a/ui/components/rich-text-editor/base/example.jsx +++ b/ui/components/rich-text-editor/base/example.jsx @@ -415,8 +415,9 @@ let TextInputExample = props => (

Heading - h2

- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod - tempor incididunt ut labore et dolore magna aliqua. + Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod{' '} + veryVeryLongWordWithHyperlinkExample tempor incididunt ut + labore et dolore magna aliqua.