我想在丁瑞克语中每个具体要素(例如表格)的旁边打一个 but子(例如,米布顿),然后,当 but子被点击时,就把这个具体要素 s到html处理,并在编辑中加以更新。
我可以处理加工问题,但我可以指出,如何显示纽伦,并 gr碎具体要素——html。 例如,如果我这样做的话,就会增加时间的html。 我对锡里卡马埃语的我的回答是,如果这是正常内容,我不想:
jQuery( iframe#content ).contents().find( table ).append( <span class="mybutton">My button</span> );
我在此试图做的是:
function processElement( element, values ) {
// do stuff to the table html (I don t need help with this part)
return element;
}
function appendButtonToTinyMCEElement ( button, element ) {
// put button next to all instances of the specified element in TinyMCE
// (in this case, put span.mybutton at the corner of all tables)
}
$( .myhelperbutton ).click(function(){
var element = ??? // get content of the element whose button was clicked
var element = processElement( element );
// send element back to TinyMCE (not sure how)
});
So, my two questions are: How can I display the button in the right place without affecting the html that gets saved in TinyMCE? And, when the button is clicked, how do I get/set just that element from TinyMCE?