[wp-trac] [WordPress Trac] #33805: Blockquotes that directly wrap lists quote each list item
WordPress Trac
noreply at wordpress.org
Wed Sep 23 23:28:54 UTC 2015
#33805: Blockquotes that directly wrap lists quote each list item
--------------------------+------------------------------
Reporter: krogsgard | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 4.1
Severity: normal | Resolution:
Keywords: | Focuses: administration
--------------------------+------------------------------
Comment (by azaozz):
This depends on the current selection. If the <li> are selected, it adds
the blockqupote tags inside them. If the <ul> is selected, it wraps it in
a blockquote. Both cases are "correct" and may be used.
The only way to control this is by looking at the "element path" at the
bottom of the editor. When the whole <ul> needs to be wrapped in a
blockquote, make sure it is selected or click on it to select it.
Perhaps we can try to look at the selection before adding <blockquote>.
Determine if all <li> nodes are selected, and select the parent node. But
that may be hit and miss sometimes.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33805#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list