Comments (5)
from novu.
@lucafaggianelli you can paste template code into Custom code tab in the Email editor, it works for me
from novu.
Also, it seems like the problem occurs because when we type in the in-app editor text like this:
The expense {{expense.name}}
it is represented in DOM like this:
<span>The expense </span>
<span >{{</span>
<span> expense.name</span>
<span >}}</span>
and after copying and pasting into email editor, 'data/html' will be pasted like in the example above. But email editor is not rich text editor, so when the app tries to find variables it parses HTML tags and can't find variables.
I assume it will be proper to prohibit pasting any 'data/html' into email editor not only because variables are not parsed correctly, but also because all styles and fonts are pasted with text now and there are no controls to clear them.
If it's okay, I can do it.
from novu.
Yeah I imagine it's something like that. I agree with your idea of blocking the pasting of html but on the other side it would be cool to let a user to copy the message from one editor to another, that in my opinion is a common case. So in this case the copy from the editor should copy a data/text.
In any case I'm thinking about moving to the echo version where I can use react email (I already have the templates).
Thanks for taking a look!
from novu.
Yes, I agree, I meant the same: prohibit paste 'data/html' but still allow to taste 'data/text'. So in case of copying from the editor 'data/text' should be pasted.
Let's wait for novu team response, if this approach is okay, I can implement it.
from novu.
Related Issues (20)
- π Feature: Slack personal multi channel support HOT 3
- π Bug Report: Message content could not be generated HOT 4
- π Bug Report: Layouts not loaded on web admin client HOT 3
- π Bug Report: Message dropdown menu is hidden by below the notifications center header HOT 2
- πCannot find module react-scanner.config.js HOT 8
- π Feature: Specify data for each step using Expo provider HOT 2
- π Bug Report: Test HOT 1
- π Bug Report: step conditions not working with push webhook provider HOT 1
- TechTop HOT 1
- New organization onboarding through api (Getting api key of newly created organization) HOT 1
- * HOT 1
- π Bug Report: cannot trigger workflow with topic HOT 6
- π Bug Report: Angular ^17.0.0 - flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering HOT 1
- π Feature: Allow specifying delivery preferences on the topic level HOT 1
- π Docs Feedback: Faulty "to" description for event triggering HOT 1
- Update calendly link to Hubspot meeting HOT 2
- π Feature: SvelteKit Serve Function Addition HOT 1
- π Bug Report: HOT 2
- π Bug Report: Icon layoutShift when scrolling HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from novu.