AppFlowy-IO / AppFlowy-IO/appflowy-editor
[Bug] Editor Does not Display Html Email Template
- Lingua principale
- Dart
- Stelle
- 684
- Fork
- 329
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
### Bug Description
I'm having a hard time figuring out why the following HTML template is not rendered by the editor.
Initially, I thought that there was some problem in this template that was causing the issue, but I tried to render it using an [HTML Renderer](https://pub.dev/packages/flutter_widget_from_html) from the pub and it worked.
### How to Reproduce
Try to render this HTML Email template using `htmlToDocument`
```
Welcome to Odoo
${object.name}
Dear ${object.name},
You have been invited by ${object.create_uid.name} of ${object.company_id.name} to connect on Odoo.
% set website_url = object.env['ir.config_parameter'].sudo().get_param('web.base.url')
Your Odoo domain is: ${website_url}
Your sign in email is: ${object.email}
Never heard of Odoo? It’s an all-in-one business software loved by 3+ million users. It will considerably improve your experience at work and increase your productivity.
Have a look at the Odoo Tour to discover the tool.
Enjoy Odoo!
--
The ${object.company_id.name} Team
${object.company_id.name}
${object.company_id.phone}
% if object.company_id.email
| ${object.company_id.email}
% endif
% if object.company_id.website
|
${object.company_id.website}
% endif
Powered by Odoo
```
### Same Template with Dummy Data
```
Welcome to Odoo
John Doe
Dear John Doe,
You have been invited by Jane Smith of Company ABC to connect on Odoo.
Your Odoo domain is: https://www.example.com
Your sign in email is: johndoe@example.com
Never heard of Odoo? It’s an all-in-one business software loved by 3+ million users. It will considerably improve your experience at work and increase your productivity.
Have a look at the Odoo Tour to discover the tool.
Enjoy Odoo!
--
The Company ABC Team
Company ABC
+123-456-7890 | info@example.com
|
https://www.example.com
Powered by Odoo
```
### Expected Behavior
I expect this to render the email template, like this preview
Welcome to Odoo
${object.name}
Dear ${object.name},
You have been invited by ${object.create_uid.name} of ${object.company_id.name} to connect on Odoo.
% set website_url = object.env['ir.config_parameter'].sudo().get_param('web.base.url')
Your Odoo domain is: ${website_url}
Your sign in email is: ${object.email}
Never heard of Odoo? It’s an all-in-one business software loved by 3+ million users. It will considerably improve your experience at work and increase your productivity.
Have a look at the Odoo Tour to discover the tool.
Enjoy Odoo!
--
The ${object.company_id.name} Team
${object.company_id.name}
${object.company_id.phone}
% if object.company_id.email
| ${object.company_id.email}
% endif
% if object.company_id.website
|
${object.company_id.website}
% endif
Powered by Odoo
### Operating System
IOS
### AppFlowy Editor Version(s)
appflowy_editor: ^1.3.0
### Screenshots
Email template rendered by [flutter_widget_from_html](https://pub.dev/packages/flutter_widget_from_html)

### Additional Context
_No response_
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.