I can easily wrap a text selection with span tag through a button click like this;
this.toolbar.on(
'testClick',
function(o)
{
var sel = myEditor._getSelection();
myEditor.execCommand('inserthtml', '<span class="test">' + sel + '</span>');
alert(myEditor);
},
myEditor, true);
What I am trying to achive is to bind this span class ('test') within the iframe to a javascript event;
testEvent = function {
alert('Hello World!')
}
Any ideas if that's possible?