Hi,
I'm having the same problem and I found out that there's a plugin (KeyPlugin.js) that was created for "fixing" this strange behaviors, in it there's a method to "Handle spans that get inserted deliberately by Webkit.":
handleJunkSpans: function(context) { var com = CUI.rte.Common; var selection = this.editorKernel.createQualifiedSelection(context); if (selection && !selection.isSelection) { var toCheck = selection.startNode; toCheck = (toCheck.nodeType === 3 ? com.getParentNode(context, toCheck) : toCheck); if (com.isTag(toCheck, "span")) { var styleAttrib = com.getAttribute(toCheck, "style", true); if (styleAttrib) { if (styleAttrib.indexOf("font-size") >= 0) { CUI.rte.DomProcessor.removeWithoutChildren(toCheck); } } } } }
But I'm still having problem with styles being added directly on tags.
So I'll ask again, has someone else had this problem?
Thanks in advance,
Marco.