मैं खोज की है में जिम्मेदार बताते हैं किसी भी परिणाम के बिना की जगह है, यहाँ किसी को पता है कि कैसे उपेक्षा और/या तत्व TinyMCE में विशेषताओं को बदलने के लिए?पर ध्यान न दें/तत्व TinyMCE
उदाहरण के लिए:
<table cellpadding="0" cellspacing="0" class="tdTable" style="margin: 0 20px 0 0;">
मैं ऊपर कोड को बदलने के लिए चाहते हैं:
tinyMCE.activeEditor.dom.Serializer.addAttributeFilter('class,style', function(nodes, name) {
for (var i = 0; i < nodes.length; i++) {
console.log(nodes[i].name);
tinyMCE.dom.setAttrib(nodes[i], 'class', null);
tinyMCE.dom.setAttrib(nodes[i], 'style', null);
// Process the nodes here (e.g. set attribute to null or delete Attribute)
}
});
आप कर सकते हैं:
<table cellpadding="0" cellspacing="5">
+1 अच्छा प्रश्न – Thariama