Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

In firefox 57.0b4 beta version , i find some changes in handling content editable div line breaks handling .... but i found the following issue

  • 1 trả lời
  • 1 gặp vấn đề này
  • 2 lượt xem
  • Trả lời mới nhất được viết bởi cor-el

more options

Earlier , pressing enter adds br tag Now it adds <div><br></div> Consider a html

test1
<br>
test2
<br>
<test3>

Place cursor before test2 , press backspace , test2 goes to previous line html becomes

test1test2
<br>
test3

Now place cursor between test1 and test2 and press enter, both test1 and test2 becomes wrapped inside <div></div> but the <br> before test3 is removed , The html becomes

<div>test1</div>
<div>test2</div>
test3


Please look in to this ...

Earlier , pressing enter adds br tag Now it adds &lt;div&gt;&lt;br&gt;&lt;/div&gt; Consider a html <pre><nowiki>test1 <br> test2 <br> <test3> </nowiki></pre> Place cursor before test2 , press backspace , test2 goes to previous line html becomes <pre><nowiki> test1test2 <br> test3 </nowiki></pre> Now place cursor between test1 and test2 and press enter, both test1 and test2 becomes wrapped inside &lt;div&gt;&lt;/div&gt; but the &lt;br&gt; before test3 is removed , The html becomes <pre><nowiki> <div>test1</div> <div>test2</div> test3 </nowiki></pre> Please look in to this ...

Được chỉnh sửa bởi cor-el vào

Tất cả các câu trả lời (1)

more options

You can press Shift+Enter to get a <br> tag. Enter is supposed to open a new block.

See the discussion in this bug report:

  • bug 1297414 - Generate <p>/<div> for newlines, not <br> (defaultParagraphSeparator) [55]

(please do not comment in bug reports
https://bugzilla.mozilla.org/page.cgi?id=etiquette.html
)

Được chỉnh sửa bởi cor-el vào