2017-12-11 20 views
0

このエディタは私に重大な頭痛を与えています。エディタで生成しているHTMLを次に示します。Telerik RadEditor - 新しいコンテンツを入力するとテキストが消えます

<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を貼り付けて、コンテンツをデザインモードで編集してみてください。

これが起こるのを防ぐ方法はありますか?ありがとう

+0

これはどのブラウザでテストしていますか?問題を再現しようとしましたが、期待どおりに動作しています。私はChromeを使用しています。 –

+0

すべてのブラウザで:(テキストだけの間にスペースを追加しようとすると、テキスト全体が消えて画像のみが残ってしまう。 – DevSa

+0

ああ、私はそれを再現することができた。問題の原因となっている<! - [if(gte mso 9)]ディレクティブ。これがエディタでサポートされているものかどうかをチェックしてみましょうか。 –

答えて

0

これに対する修正は見つかりませんでした。私は、必要に応じて作業を開始するために、それらのmso条件を削除しなければなりませんでした。

関連する問題