<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>WymeditorController.php</filename>
    </added>
    <added>
      <filename>skins/frog/icons.png</filename>
    </added>
    <added>
      <filename>skins/frog/skin.css</filename>
    </added>
    <added>
      <filename>skins/frog/skin.js</filename>
    </added>
    <added>
      <filename>views/environment.php</filename>
    </added>
    <added>
      <filename>views/settings.php</filename>
    </added>
    <added>
      <filename>views/sidebar.php</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -63,21 +63,8 @@ Object.extend(Control.TextArea.ToolBar.Wymeditor.prototype,{
     jQuery('#'+textarea).wymeditor({
       // The language is set from the backend
       lang: frog_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?
-      }
+      skin: 'frog',
+      stylesheet: frog_wymeditor_stylesheet
     });
     
     // Register update event, could be added more than once (multiple page parts),</diff>
      <filename>frog_wymeditor.js</filename>
    </modified>
    <modified>
      <diff>@@ -6,7 +6,7 @@ Plugin::setInfos(array(
     'id'          =&gt; $plugin_id,
     '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.3',
+    'version'     =&gt; '0.0.4',
     'license'     =&gt; 'MIT',
     'author'      =&gt; 'THE M',
     'website'     =&gt; 'http://github.com/them/frog_wymeditor/',
@@ -17,11 +17,13 @@ Plugin::setInfos(array(
 // 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.
-// Store it in the user session, so that this file does not need the whole Frog infrastructure.
-$_SESSION[&quot;wymeditor_language&quot;] = I18n::getLocale();
+// The controller is required for the Frog integration (e.g. stylesheets)
+Plugin::addController($plugin_id, __('WYMeditor'), null, false);
+
+// XXX: this is an ugly hack to include scripts that are not physically present in the file system
+$parts = parse_url(get_url('plugin/'.$plugin_id.'/environment'));
+Plugin::$javascripts[] = &quot;../..&quot; . $parts['path'];
 
-Plugin::addJavascript($plugin_id, 'wymeditor_frog_language.js.php');
 Plugin::addJavascript($plugin_id, 'jquery.wymeditor.min.js');
 // Ensure that the Frog integration is included after the editor file
 Plugin::addJavascript($plugin_id, 'frog_wymeditor.js');</diff>
      <filename>index.php</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>wymeditor_frog_language.js.php</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>da151eb3aeeff069f4b744703e9ee06a6b85a58b</id>
    </parent>
  </parents>
  <author>
    <name>The M</name>
    <email>only.the.em@googlemail.com</email>
  </author>
  <url>http://github.com/them/frog_wymeditor/commit/ab2ae17f9ae6a365119a35dfced19fcb9e444e69</url>
  <id>ab2ae17f9ae6a365119a35dfced19fcb9e444e69</id>
  <committed-date>2009-07-15T13:15:42-07:00</committed-date>
  <authored-date>2009-07-15T13:15:42-07:00</authored-date>
  <message>Version: 0.0.4
- added skin from radiant version (not yet fully
  adapted for frog), but it looks nice
- added backend to allow custom styles</message>
  <tree>6894c60715fc1427be814615c5e3c65ecefbd05d</tree>
  <committer>
    <name>The M</name>
    <email>only.the.em@googlemail.com</email>
  </committer>
</commit>
