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

Better variable elements #20

Open
Sitebase opened this issue Nov 7, 2016 · 0 comments
Open

Better variable elements #20

Sitebase opened this issue Nov 7, 2016 · 0 comments
Labels
Story New features and enhancements

Comments

@Sitebase
Copy link
Member

Sitebase commented Nov 7, 2016

If we use a span around each variable where we attach data-content that contains the text you want to use in the WYSIWYG. We can use a content replace using just CSS. This way we don't have to remove/add nodes while switching between visual and source mode. Because once send, the email client doesn't have this special CSS replace resulting in the actual variable value being shown.

POC:
https://jsfiddle.net/sitebase/ymhv33jz/5/

This will also solve some other issues like:
#2

@Sitebase Sitebase added the Story New features and enhancements label Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Story New features and enhancements
Projects
None yet
Development

No branches or pull requests

1 participant