Depending on how one interprets "using the same syntax of the TinyMCE valid_elements option", this may actually be a feature request.

The TinyMCE valid_elements documentation states for the "/" character: "Separates element synonymous. The first element is the one that will be output."

I take this to mean if you have a definition like "abbr/acronym", both elements are allowed, but when the page is actually rendered, both elements render using the first element. What is happening instead is that both elements are allowed, and are rendering as themselves.

Comments

Version:7.x-1.6-rc2» 7.x-1.x-dev
Status:Active» Needs review
StatusFileSize
new3.44 KB
new2.02 KB

Two patches attached. The first fixes this issue. The second corrects indentation to match the changes in the first patch. I have them separate to make it easier to see what has changed functionally. Apply the patches in order.

StatusFileSize
new2.07 KB

Improved version of first patch. Second patch still OK.