#31464 closed enhancement (fixed)
MCE Views - Don't restrict importing of styles to AV views.
Reported by: | mattheu | Owned by: | azaozz |
---|---|---|---|
Milestone: | 4.2 | Priority: | normal |
Severity: | normal | Version: | 4.0 |
Component: | TinyMCE | Keywords: | has-patch |
Focuses: | javascript | Cc: |
Description (last modified by )
FIrstly - some great improvements to the MCE view code recently - see #31412.
I would like to register a custom view which is sometimes sandboxed in an iFrame. I would also like to have the styles imported from the editor.
However this is hardcoded to only do this for video, audio and playlists.
importStyles = this.type === 'video' || this.type === 'audio' || this.type === 'playlist';
I think this should be a property on the view object - set to false by default but true for the AV views. This would allow me to easily enable it for my views.
Patch incomming.
Attachments (6)
Change History (24)
#5
@
10 years ago
Not sure if there's any reason to not do this all the time.
Agreed - I think thats pretty much the point of the sandbox functionality.
Attached an updated patch.
This ticket was mentioned in Slack in #core-editor by iseulde. View the logs.
10 years ago
#11
@
10 years ago
I'll investigate this a bit more. I think there are a few problems with these styles in general.
This ticket was mentioned in Slack in #core-editor by azaozz. View the logs.
10 years ago
This ticket was mentioned in Slack in #core by johnbillion. View the logs.
10 years ago
#14
@
10 years ago
- Milestone changed from 4.2 to Future Release
Unfortunately this just didn't get done in time for 4.2. Let's try again in 4.3.
#15
@
10 years ago
- Milestone changed from Future Release to 4.2
Refreshed the patch. We can refine which styles get added later and see if there are any problems. This is for audio and video too, because some styles don't seem to be added.
Yep, we should rework that too.