イントラネットでckeditorを使用しています。たとえば、リンクなどのフォーマットされたテキストを保存するために使用します。
問題は、私がckeditorソースに持っているのは
<p>
this is the new <a href="http://www.google.com">test</a> we need to run.</p>
エディターに表示されるのは
test(as a link)
DBに保存されるのは
<p>
this is the new <a href="http://www.google.com">test</a> we need to run.</p>
どちらが正しい。
しかし、ckeditorで編集したい場合、私が見るのは
<p> <a href="http://www.google.com">test</a></p>
そして私がソースとして見ているのは
<p>
<a href="http://www.google.com">test</a></p>
編集するときもまったく同じように見たいです。
特筆すべきは、Html.Rawを使用してインデックスに表示しているのですが、htmlが表示されています。レンダリングされたhtmlを見たいのですが。
だから、私が保存すると
<p>
this is the new <a href="http://www.google.com">test</a> we need to run.</p>
見たい
this is the new test(as link) we need to run
ではなく
<p>
this is the new <a href="http://www.google.com">test</a> we need to run.</p>
何か案は??ルイ・マーティンズ