Repository navigation
RichText: Format boundaries without DOM #13697
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
7f1d3fc
fa8722e
e269593
8435016
5ba90fd
ed4200d
86de3a9
ccf61e7
4365fe8
2e789e7
3d0e224
32ff15f
b6c7d25
2e3850e
5ad78e0
1a88924
421876c
d2b0c7e
fa45d75
781ce79
90b38a8
4cd0bf4
25d2ade
89164fd
29008e5
47f0d05
294ca35
3573ebb
fd8b71c
b4cf4f3
8b434d7
db35c6b
9a78bf4
ab58913
b4a7be8
74b3a38
b488d83
11378ef
894c0d8
26ef673
0518174
1b5a628
7e5b221
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,13 +1,6 @@ | ||
| .wp-block-cover-image, | ||
| .wp-block-cover { | ||
| .editor-rich-text__tinymce[data-is-empty="true"]::before { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| position: inherit; | ||
| } | ||
|
|
||
| .editor-rich-text__tinymce:focus a[data-mce-selected] { | ||
| padding: 0 2px; | ||
| margin: 0 -2px; | ||
| border-radius: 2px; | ||
| .editor-rich-text__editable:focus a[data-rich-text-format-boundary] { | ||
| box-shadow: none; | ||
| background: rgba(255, 255, 255, 0.3); | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -35,13 +35,13 @@ | |
| } | ||
|
|
||
| // Adjust line spacing for larger headings. | ||
| h1.editor-rich-text__tinymce, | ||
| h2.editor-rich-text__tinymce, | ||
| h3.editor-rich-text__tinymce { | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I love these removals but I think this is also something we should document in the release... as some themes might have relied on these tinymce classNames. Granted that the components classNames should not be considered public API.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We should also drop a note to the themes/design team once this lands to check the twenty* themes.
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yes. We should really discourage the use of these classes. The only reasonable uses I've seen is to style the placeholder or boundaries differently. Ideally the default styles should work for anything though. Worth looking into at some point. |
||
| h1, | ||
| h2, | ||
| h3 { | ||
| line-height: 1.4; | ||
| } | ||
|
|
||
| h4.editor-rich-text__tinymce { | ||
| h4 { | ||
| line-height: 1.5; | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,5 @@ | ||
| .block-library-list .editor-rich-text__tinymce, | ||
| .block-library-list .editor-rich-text__tinymce ul, | ||
| .block-library-list .editor-rich-text__tinymce ol { | ||
| .editor-styles-wrapper .block-library-list ul, | ||
| .editor-styles-wrapper .block-library-list ol { | ||
| padding-left: 1.3em; | ||
| margin-left: 1.3em; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,5 +1,5 @@ | ||
| .wp-block-text-columns { | ||
| .editor-rich-text__tinymce:focus { | ||
| .editor-rich-text__editable:focus { | ||
| outline: $border-width solid $light-gray-500; | ||
| } | ||
| } |
Uh oh!
There was an error while loading. Please reload this page.