<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>README.markdown</filename>
    </added>
    <added>
      <filename>frog-plugins.xml</filename>
    </added>
    <added>
      <filename>wymeditor_language.js.php</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -4,9 +4,9 @@ $plugin_id = &quot;wymeditor&quot;;
 // Register plugin
 Plugin::setInfos(array(
     'id'          =&gt; $plugin_id,
-    'title'       =&gt; __('WYM editor'),
-    'description' =&gt; __('WYM editor'),
-    'version'     =&gt; '0.0.1',
+    'title'       =&gt; __('WYMeditor'),
+    'description' =&gt; __('WYMeditor is a web-based WYSIWYM (What You See Is What You Mean) XHTML editor (not WYSIWYG).'),
+    'version'     =&gt; '0.0.2',
     'license'     =&gt; 'MIT',
     'author'      =&gt; 'THE M',
     'website'     =&gt; 'http://github.com/them/frog_wymeditor/',
@@ -14,6 +14,11 @@ Plugin::setInfos(array(
     'require_frog_version' =&gt; '0.9.5'
 ));
 
+// The plug-in is a filter
 Filter::add($plugin_id, $plugin_id.'/'.ucfirst($plugin_id).'.php');
+
+// Because the I18n is not available in javascript, it must be set somewhere from server side.
+$_SESSION[&quot;wymeditor_language&quot;] = I18n::getLocale();
+Plugin::addJavascript($plugin_id, 'wymeditor_language.js.php');
 Plugin::addJavascript($plugin_id, 'jquery.wymeditor.min.js');
 ?&gt;
\ No newline at end of file</diff>
      <filename>index.php</filename>
    </modified>
    <modified>
      <diff>@@ -2,8 +2,9 @@ var origin_function = setTextAreaToolbar;
 
 wymeditor_setTextAreaToolbar = function(textarea, filter) {
   jQuery.each(WYMeditor.INSTANCES, function() {
-    if (this._element &amp;&amp; this._element.attr('id') == textarea &amp;&amp; filter != &quot;wymeditor&quot;) {
-      // remove the editor
+    // Check if the editor is still active
+    if (this &amp;&amp; this._doc &amp;&amp; this._element.attr('id') == textarea &amp;&amp; filter != &quot;wymeditor&quot;) {
+      // Remove the editor
       this.update();
       $(this._box).remove();
       delete this;
@@ -16,9 +17,9 @@ wymeditor_setTextAreaToolbar = function(textarea, filter) {
 
 wymeditor_update_all = function() {
   jQuery.each(WYMeditor.INSTANCES, function() {
-    // Only if editor is still there
-    if (this._element) {
-      this.update();      
+    // Only if editor is still there, store the content to the origin textarea
+    if (this._doc) {
+      this.update();
     }
   });
 };
@@ -35,7 +36,25 @@ Object.extend(Control.TextArea.ToolBar.Wymeditor.prototype,{
     setTextAreaToolbar = wymeditor_setTextAreaToolbar;
 
     // Create the editor
-    jQuery('#'+textarea).wymeditor();
+    jQuery('#'+textarea).wymeditor({
+      // The language is set from the backend
+      lang: wymeditor_language,
+
+      // Change the apperance of the editor
+      postInit: function(wym) {
+        // Render the containers box as a panel
+        // and remove the span containing the '&gt;'
+        jQuery(wym._box).find(wym._options.containersSelector)
+          .removeClass('wym_dropdown')
+          .addClass('wym_panel')
+          .find('h2 &gt; span')
+          .remove();
+        // Height of the editor
+        jQuery(wym._box)
+          .find(wym._options.iframeSelector)
+          .css('height', '400px'); // TODO: auto grow?
+      }
+    });
     
     // Register update event, could be added more than once (multiple page parts),
     // but this should be no problem</diff>
      <filename>wymeditor.js</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>frog_plugins.xml</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>c57f27743cdb92c4d8232155bbb0f86f940b235a</id>
    </parent>
  </parents>
  <author>
    <name>The M</name>
    <email>only.the.em@googlemail.com</email>
  </author>
  <url>http://github.com/them/frog_wymeditor/commit/8c0e85aab77f7e3a9e58382328ba02fce4007d10</url>
  <id>8c0e85aab77f7e3a9e58382328ba02fce4007d10</id>
  <committed-date>2009-06-23T14:15:01-07:00</committed-date>
  <authored-date>2009-06-23T14:15:01-07:00</authored-date>
  <message>Version: 0.0.2
- [enh] Backend language is now used for the
  build-in translation of the editor.
- [enh] Appearance of the element types are now
  a flat list and not a drop down list.
- [enh] Size of the editor increased
- [fix] Unused or broken editors are now ignored.
  Allows activation and deactivation of the editor.</message>
  <tree>ebd2131dcc96ab36eddd2a518f1c66338541a3fa</tree>
  <committer>
    <name>The M</name>
    <email>only.the.em@googlemail.com</email>
  </committer>
</commit>
