[RSS Feed/News] editor has janky new-line behaviour with after copy & paste

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
Suppose the editor has this contents
Code:

Code:
<p>1</p>
<p><br/>3</p>
This renders as;
Code:

Code:
1

3

However if you press the delete key after '1'; the editor results in
Code:

<p>13</p>
And not the expected;
Code:

Code:
<p>1</p>
<p>3</p>

If there is a trailing <br> in the <p>, it is effectively invisible; then you need to press the delete key multiple times after the '1' value to actually delete the newline.

It looks like normalizePaste br normalization code...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom