How can i put the atribute name of a span in Ragy with cssApplier. One example:
<span name="##" id ="##" class="note">
i try:
highlighter.addCssClassApplier(rangy.createCssClassApplier("note", {
ignoreWhiteSpace: true,
elementTagName: ["span"],
elementProperties: {
name:"##",
id:"##",
onmousedown: function (){
if (event.button==2){
var highlight = highlighter.getHighlightForElement(this);
if (window.confirm("Delete this new note ?")) {
highlighter.removeHighlights( [highlight] );
}
return false;
}
}
}
}
But it doesnt work. it was a result:
<span id ="##" class="note">
Is it a bug in rangy?