Question

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!

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top