Telerik RadEditor - Текст исчезает при вводе нового контента
Этот редактор доставил мне серьезную головную боль. Вот 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ö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 и попробуйте отредактировать контент в режиме конструктора.
Есть ли способ, которым я мог бы предотвратить это? Спасибо
1 ответ
Не могу найти никакого решения для этого. Я должен был удалить эти условные обозначения, чтобы заставить вещи работать как нужно.
Мой совет - отключить фильтр содержимого ConvertToXhtml и протестировать снова: https://demos.telerik.com/aspnet-ajax/editor/examples/builtincontentfilters/defaultcs.aspx
Вы также можете проверить, отключив другие фильтры тоже.