Closed garretwilson closed 8 years ago
A few things here...
<br />
elements you're mentioningbar
, you're in effect placing the collapsed selection INSIDE the dfn element and before the first character. So you end with two nested dfn elements. According to the HTML document model, this is wrong. But we have no way to allow pasting and be model-compliant here, hence the result.To paste your <dfn>foo</dfn>
correctly, place the caret inside the other dfn element, hit the ESC key to select the whole element and then the left arrow key to place the selection BEFORE the element (and not inside it like above).
Closing as there is nothing I can do here.
Closing as there is nothing I can do here.
There is indeed something you can do here. Add the rule: "if the cursor is at the beginning of a series of inline elements and the user hits Enter, don't create a whole list of empty inline elements, as it is obvious that the user wants the newline to take place before them."
That is, if I my cursor is here:
<li><dfn><code><span>|foobar
If I hit Enter, it is obvious that I want to create this:
<li>
<li><dfn><code><span>|foobar...
and not
<li><dfn><code><span></span></code></dfn><br/>
<dfn><code><span>|foobar...</li>
To paste your foo correctly, place the caret inside the other dfn element, hit the ESC key to select the whole element and then the left arrow key to place the selection BEFORE the element (and not inside it like above).
Ah, that's a very good tip. Thanks. It seems to be working; I'll keep testing it. (Still the suggestion I indicated above could make it all more user friendly.)
Let's say I start with the following list:
Let's say elsewhere I have the following paragraph:
I then:
<dfn>foo</dfn>
in the WYSIWYG view and copy it.bar
in the above list and hit Enter to create a new line.I expect to see this:
But what I actually get is this:
This messy stuff happens all over the place when I am working with lists.
Note that the Markup Cleaner tool does not remove the extra
<br />
tags. See #9.