This is because there is an error on the generated HTML code :
<a class="link-open" href="#">
<img alt="" src="/?q=sites/all/modules/wymeditor/filter-icon.jpg"/>
<span>Format d'entrée</span>
</a>
Notice the ?q= on the URL debut.
I solved the problem by modifying file wymeditor.module line 76 :
FROM :
drupal_add_js(array('wymeditor_key' => array($key), 'wymeditor_path' => array(url(drupal_get_path('module', 'wymeditor')))), 'setting');
TO :
drupal_add_js(array('wymeditor_key' => array($key), 'wymeditor_path' => array($module_path)), 'setting');
And it works well for me.
I did not make no more tests with others configurations. Guess it could have problem with simplified URL option activate.
So feel free to post comment on it.
And, at last, I guess it should be better to include the picture using CSS in place of hard coding HTML image :
FROM :
<a class="link-open" href="#">
<img alt="" src="/?q=sites/all/modules/wymeditor/filter-icon.jpg"/>
<span>Format d'entrée</span>
</a>
TO :
<a class="link-open" href="#">
<span>Format d'entrée</span>
</a>
And in a CSS file :
a#linkopen {
background: url(/sites/all/modules/wymeditor/filter-icon.jpg") left center no-repeat;
padding-left : 24 px /* no less than picture width*/
...
}
Comments
Comment #1
Anonymous (not verified) commentedI quickly changed the configuration to activate simplified URL. With the original code there is no more problem : everything is fine.
But the change I've made in my previous comment then cause an error when simplified URL option is activated !
So there is some works to do to solve the problem !
Comment #2
Bèr Kessels commentedSimply removing the "url" works too, but can break if you have Drupal installed in a subdirectory.
Comment #3
Anonymous (not verified) commented