cssApplier でスパンの属性名を Ragy に入れる方法を教えてください。一例:
<span name="##" id ="##" class="note">
私は試します:
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;
}
}
}
}
しかし、うまくいきません。それは結果でした:
<span id ="##" class="note">
それはrangyのバグですか?