[wp-trac] [WordPress Trac] #29048: Twenty Thirteen: editor styles for audio format cause issues in wpviews
WordPress Trac
noreply at wordpress.org
Thu Aug 7 22:18:38 UTC 2014
#29048: Twenty Thirteen: editor styles for audio format cause issues in wpviews
------------------------------+--------------------
Reporter: celloexpressions | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: 4.0
Component: TinyMCE | Version: trunk
Severity: major | Resolution:
Keywords: has-patch | Focuses:
------------------------------+--------------------
Comment (by azaozz):
As far as I see we have two options:
1. Load editor-style.css into the iframes and add another <style> to
reset/override some of it, primarily things applied to the body, etc. This
is easier to implement and will add all needed styles, but may add some
styling that we don't want in there.
2. Insert some HTML that resembles the ME.js output, grab styles from it,
remove the HTML, construct a <style> tag with the styles we got, add that
tag to all iframes. This is more complex and has a limitation as we can't
grab all styles, will have to decide which selectors/styles to get. But
should be safer.
Thinking we can go with (1) for now. Will have to add an ID to the iframe
body so it is easy to target from the reset CSS. Having an ID will also
let themes target the iframes directly, eventually.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/29048#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list