Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
APS.NETでは、CKeditorの.Textサーバー側のプロパティは、 .getData()クライアント側のメソッドと同じものを返しません。
例: <script>WYSIWYGエディターで記述した場合、サーバー側の.Textプロパティが返さ<p><script></p>れ、clientSide .getData()が返されます。<p><script></p>
<script>
<p><script></p>
<p><script></p>
.getDataの機能を返すサーバー側のプロパティが見つかりませんでした。私は何かが足りないのですか?
クライアントと同じ値を取得するには、を使用しますString value = Server.HtmlEncode(ckeditor.text)。
String value = Server.HtmlEncode(ckeditor.text)
ただし、これはエンコード<p>と</p>タグ付けも行います。 必要ない場合は、すべて<p>を置き換え</p>、一部のcharでエンコードし、charを<p>and</p>タグで置き換えます。
<p>
</p>