/[drupal]/contributions/modules/wymeditor/wymeditor.js
ViewVC logotype

Contents of /contributions/modules/wymeditor/wymeditor.js

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (show annotations) (download) (as text)
Wed Apr 25 09:21:16 2007 UTC (2 years, 7 months ago) by moxide
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +5 -3 lines
File MIME type: text/javascript
#134278 Fixed : bold and italics odd behaviour when displaying/hiding wymeditor
1 // Display/Hide WYMeditor
2 function wymToggleDisplay()
3 {
4 txt = document.getElementById("edit-body");
5 txt.style.display = (txt.style.display == "") ? "none" : "";
6 wymdiv = document.getElementById("wym-div");
7 wymdiv.style.display = (wymdiv.style.display == "") ? "none" : "";
8
9 // Populate either the editor or the textarea, according to what is to be shown.
10 if(wymdiv.style.display == ""){
11 // When hiding the iframe, Gecko forgets the 'styleWithCSS' setting.
12 if (moz) setTimeout("execCom('styleWithCSS',false,false);",500);
13 setHTML();
14 } else
15 getCleanHTML();
16
17 }

  ViewVC Help
Powered by ViewVC 1.1.2