Steps to reproduce:

  1. Use jHtmlArea editor.
  2. Goto Html Edit mode.
  3. Add <script>...</script> section, for example yandex map widget.
  4. Goto Visual Edit mode.
  5. Goto Html Edit mode.

Section <script>...</script> will be broken.

How to fix this issue to insert <script>...</script> section to jHtmlArea editor correctly? May be there is a plugin for this?

The editor is the following (xinha): http://xinha.webfactional.com/browser/trunk?rev=631

Thanks a lot for the help!

有帮助吗?

解决方案

I don't know much about HtmlArea editor. However most editors would do the same - some manually added tags (eg script) will be treated different as they suppost to be.

What I used to do is to go to database and insert the script directly after content has been typed in in the editor. Of course, given that you have access to the database.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top