[wp-trac] [WordPress Trac] #32920: Centering iFrames using visual editor
WordPress Trac
noreply at wordpress.org
Wed Aug 26 14:30:13 UTC 2015
#32920: Centering iFrames using visual editor
------------------------------------------------+--------------------------
Reporter: prionkor | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting
Component: TinyMCE | Review
Severity: normal | Version:
Keywords: 2nd-opinion dev-feedback has-patch | Resolution:
| Focuses:
------------------------------------------------+--------------------------
Changes (by prionkor):
* keywords: 2nd-opinion dev-feedback => 2nd-opinion dev-feedback has-patch
Comment:
Adding align class is the most non destructive change we can make. I have
created a patch. I am sure it can be improved.
Functionalities:
1. Adds align classes to iframe.
2. When align is removed by clicking an active button editor alignnone
class to images. In the case of iframe all align class is removed.
3. `findAlignClass` function I have attached to editor. I am not much
experienced with tinymce. IF the function can be moved to anywhere else
please do so.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/32920#comment:5>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list