"I don't think so, the WYSIWYG has a rule that everything needs to be in block elements I think."
IIRC that's a change from the old editor, such that functionality developed with the old editor now has issues which weren't immediately apparent from the change documentation.
We use listings a lot, and when we're outputting metadata fields which didn't have paragraph element tags wrapped around them before that can cause problems for the markup and css styling due to the DOM change from adding the paragraph element.
"Could you maybe add a class to those <p> tags and style it with CSS to make it appear inline or potentially run JS over them? Why do they need to be in <span> tags only and not <p>?"
We've found a class that remedies the problem that sparked this post initially, but I think we may have to consider metadata schema changes in other places. I'm thinking that there are going to be situations where we need to consider carefully between raw html / WYSIWYG in content and the relevant metadata types.
Can I ask is the Editor behaviour configurable or documented? Documentation would be useful in communicating things like 'don't put <script>...</script> in a WYSIWYG as the editor will just remove the code.' - the manuals at the moment just say:
"You can use the Source Editor to modify the HTML code of your content. Once you are satisfied with your work, click the Apply Changes button to return to the Edit+ Editor WYSIWYG Content Container ."
however that does not say anything about the markup being modified following the 'apply changes' button being clicked.