Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: WYSIWYG preview in TinyMCE visual pane #124

Open
mlwilkerson opened this issue Jun 25, 2021 · 1 comment
Open

Feature Request: WYSIWYG preview in TinyMCE visual pane #124

mlwilkerson opened this issue Jun 25, 2021 · 1 comment

Comments

@mlwilkerson
Copy link
Member

Cases to consider:

  1. when there is an [icon] shortcode
  2. when there is an <i> tag
  3. when the CSS defines pseudo-elements

The TinyMCE visual pane is rendered within its own <iframe>, which does not include Font Awesome.

To make this feature work would require:

  1. installing the currently configured Font Awesome that's active in the outer DOM into that TinyMCE visual preview <iframe>
  2. converting any [icon] shortcodes into the corresponding <i> tags (just for preview, not in the stored post content)

CAVEAT on pseudo-elements: pseudo-elements support is disabled by default for SVG/JS. That would need be additionally enabled within the Tiny MCE <iframe> when it's enabled in the outer DOM.

@mlwilkerson
Copy link
Member Author

This would also need to determine whether or how to handle v4 compatibility inside the Tiny MCE <iframe>.

For example, should it include v4 shims?
If so, should it also include the inline style for the "font face shim"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant