I am trying to configure the TinyMCERTE Editor so that when I copy & paste from a Word doc, it doesn’t carry over any styling. I have added a json config file that has the following:
{
“invalid_elements” : “span”
}
This works to remove any styling that is part of a span tag. I am trying to remove any additional inline styling such as for example:
Removing the aria-level=“1” would be great as well.
From what I tried previously, setting a list of valid elements in tinymcerte.valid_elements as you mentioned (i.e. h1,h2,h3,h4,h5,h6,p,strong,em,b,li,ul,ol,a,blockquote), for a tags (i.e. < a href=" >), the href=“” doesn’t get pasted, it just appears as < a >.
This topic was automatically closed 2 days after discussion ended and a solution was marked. New replies are no longer allowed. You can open a new topic by clicking the link icon below the original post or solution and selecting “+ New Topic”.