title: Ckeditor:call a function on mouseover to a link in editor
body: <p>I have to create a plugin that can produce the following markup</p>
  
  <pre><code>&lt;a  id='location' onmouseover="win(this)" href="#"&gt;Cityname&lt;/a&gt;
  </code></pre>
  
  <p>for this I have made this plugin</p>
  
  <pre><code>CKEDITOR.plugins.add( 'geoloc',
  {
      init: function( editor )
      {
          editor.addCommand( 'link',
              {
                  exec : function( editor )
                  {    
                      style = new CKEDITOR.style(
  
                              {
  
                              element : 'span',
  
                              attributes : {  'id' : 'location' , 'onmouseover' : 'win(this)' , 'href' : '#'},
  
                          });
  
                                      style.apply(editor.document);
                  }
              });
          editor.ui.addButton( 'Geoloc',
          {
              label: 'Add to geomap',
              command: 'link',
              icon: this.path + 'newplugin.png'
          } );
      }
  } );
  </code></pre>
  
  <p>Problem:
  It adds <code>span</code> tag as style but not <code>anchor</code> tag which I need.</p>
  
  <p>Question:
  How can I call <code>win()</code> method <code>onmouseover</code> to that link in the editor.? Where to put that methods code?</p>