Opened 9 years ago
Closed 9 years ago
#36461 closed defect (bug) (fixed)
wpLink autocomplete results styles are not available when wp_editor() is used on front-end
Reported by: |
|
Owned by: |
|
---|---|---|---|
Milestone: | 4.5 | Priority: | normal |
Severity: | normal | Version: | 4.6 |
Component: | TinyMCE | Keywords: | commit has-patch has-screenshots |
Focuses: | Cc: |
Description
Hi,
I'm not sure if WordPress should deal with this, but just in case it should, i've noticed for one of my plugin that uses the wp_editor()
on front end that autocomplete results were looking a bit ugly. So i've fixed it at my level (see https://github.com/imath/wp-idea-stream/issues/56).
But if WordPress should deal with this more globally. Here's the explanation, now the wpLink feature is using the jQuery Autocomplete UI to populate results, as the wp-admin/css/forms.css is only loaded in back-end results are looking pretty ugly on front-end...
I suggest the attached patch, just in case.
Attachments (6)
Change History (20)
#3
@
9 years ago
No need to make another stylesheet for this. These styles should be in editor.css which is for styling around both editors. They also will need to be a bit more specific to not interfere with the default UI Autocomplete styling that may be used at other places. Patch coming up.
#4
@
9 years ago
In 36461.1.patch: add the styles for UI Autocomplete to editor.css and make them a bit more specific to not interfere with the default autocomplete styling.
#5
@
9 years ago
- Keywords needs-screenshots removed
Great!
@azaozz i've just tested the patch and i confirm it's fixing the issue.
#6
follow-up:
↓ 7
@
9 years ago
- Milestone changed from Awaiting Review to 4.5
@imath thanks.
I realize this is relatively minor, and plugins can add these styles themselves, but would be good to consider it for fixing in 4.5 even this late. 36461.1.patch only copies the already used styles and makes them available on the front-end.
#7
in reply to:
↑ 6
@
9 years ago
- Keywords commit has-patch added
Replying to azaozz:
would be good to consider it for fixing in 4.5 even this late. 36461.1.patch only copies the already used styles and makes them available on the front-end.
Agreed. This is dangerously close to (if not) a regression anyway.
Let's get the other review needed to commit this.
This ticket was mentioned in Slack in #core by mike. View the logs.
9 years ago
#9
@
9 years ago
- Keywords has-screenshots added
36461.1.patch only copies the already used styles and makes them available on the front-end.
Noticed another issue with the too common .alignright
class in Twenty Sixteen, see before.png. Fixed in 36461.2.patch by using the same class names as in the old modal, see after.png.
#10
@
9 years ago
+1 for 36461.2.patch. There are some other styling issues that existed in 4.4 (probably earlier) once you hit the gear icon, but that's not a regression.
#11
@
9 years ago
We shouldn't be using .item-title
and .item-type
in autocomplete as they are used in the "rivers" in wpLink where the styling is different. Also, .item-title
is not needed there at all. If we must change the class name, lets make it something more specific to the editor. See 36461.3.patch.
#12
@
9 years ago
If anyone else thinks 36461.3.patch is the right way to go, would be great to get this committed before tomorrow morning's dry run.
@imath Can you attach some before/after screenshots please?