Is the onclick event element determined by the element that wymeditor is attached to? ie:
- Code: Select all
$("#myWymEditor wym_tools_strong").click()
- Code: Select all
$("wym_tools_strong").click()
Anyone have any ideas I can try?
Forum closed. New forum available at http://community.wymeditor.org/
$("#myWymEditor wym_tools_strong").click()
$("wym_tools_strong").click()
WYMeditor.editor.prototype.bindEvents = function() {
//copy the instance
var wym = this;
//handle click event on tools buttons
jQuery(this._box).find(this._options.toolSelector).click(function() {
wym.exec(jQuery(this).attr(WYMeditor.NAME));
return(false);
});
<div id="edit" class="wym_tools wym_section wym_buttons" style="left: 0px;" rel="">
<ul>
<li class="wym_tools_save"><a style="background-image: url(/vendor/wymeditor/wymeditor/skins/default/icons.png);" href="#" name="Save">Do something</a></li>
<li class="wym_tools_strong"><a title="Strong" name="Bold" href="#">Strong</a></li>
<li class="wym_tools_emphasis"><a title="Emphasis" name="Italic" href="#">Emphasis</a></li>
<li class="wym_tools_ordered_list"><a title="Ordered List" name="InsertOrderedList" href="#">Ordered List</a></li>
<li class="wym_tools_unordered_list"><a title="Unordered List" name="InsertUnorderedList" href="#">Unordered List</a></li>
<li class="wym_tools_link"><a title="Link" name="CreateLink" href="#">Link</a></li>
<li class="wym_tools_unlink"><a title="Unlink" name="Unlink" href="#">Unlink</a></li>
<li class="wym_tools_image"><a title="Image" name="InsertImage" href="#">Image</a></li>
<li class="wym_tools_undo"><a title="Undo" name="Undo" href="#">Undo</a></li>
<li class="wym_tools_redo"><a title="Redo" name="Redo" href="#">Redo</a></li>
<li class="wym_tools_paste"><a title="Paste from Word" name="Paste" href="#">Paste from Word</a></li>
</ul>
</div>
Users browsing this forum: No registered users and 1 guest