簡體   English   中英

Telerik RadEditor-輸入新內容后文本消失

[英]Telerik RadEditor - Text disappears upon entering new content

這位編輯使我有些頭疼。 這是我在編輯器中生成的HTML。

 <p style="text-align: justify;"><!--[if (gte mso 9)]><table cellspacing="0" cellpadding="0" align='left'><tr><td align='left' style="padding-right:10px; padding-top:5px;"><![endif]--><img alt="" width="163" height="180" id="img00" style="padding-top: 5px; margin-right: 10px; max-width: 100%; float: left; width: 118px; height: 127px;" src="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f7/Max_Born.jpg/240px-Max_Born.jpg" /><span style="font-family: Verdana;"><img alt="" width="0" height="0" /><!--[if (gte mso 9)]></td><td></tr></table><![endif]-->An atom is the smallest unit of matter. Quantum mechanics is a chapter of physics that studies matter at this incredibly granular level, leading to the invention of personal computers, lasers, and medical imaging devices (MRI), among other game-changing technologies.Today's Doodle celebrates the 135th birthday of Max Born, German physicist and mathematician who was awarded the Nobel Prize for his contribution to the field of quantum mechanics.An outstanding student, Born earned his Ph.D. at G&ouml;ttingen University where he later became a professor of theoretical physics, collaborating with and mentoring some of the most famous scientists of the time.</span></p> 

這里的問題是,當我嘗試通過鍵入內容來編輯內容(在設計模式下)時,它會影響HTML標記,並且文本會消失。 您可以使用以下鏈接重現此問題: Editor Demo 只需粘貼HTML並嘗試在設計模式下編輯內容。

有辦法防止這種情況發生嗎? 謝謝

找不到任何解決辦法。 我必須刪除那些mso條件,以使事情按需工作。

我的建議是禁用ConvertToXhtml內容過濾器並再次測試: https : //demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx

您也可以通過禁用其他過濾器進行測試。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM