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

[8.0] web_ckeditor4 does not work in email templates/mako #151

Closed
RoelAdriaans opened this issue Jun 23, 2015 · 17 comments
Closed

[8.0] web_ckeditor4 does not work in email templates/mako #151

RoelAdriaans opened this issue Jun 23, 2015 · 17 comments
Assignees
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Milestone

Comments

@RoelAdriaans
Copy link

With the web_ckeditor4 enabled, editing an email template breaks the template.

The code before saving is, for example:

       % if object.origin:
       &nbsp;&nbsp;Order reference: ${object.origin}<br />
       % endif

and after saving:

% if object.origin: &nbsp;&nbsp;Order reference: ${object.origin}<br />
% endif %

The missing enters break the mako formatting engine, you have to edit the template by hand..
This is in 8.0.
(Ninja edit, %endif is not removed)

@pedrobaeza
Copy link
Member

And % endif is also removed?

@antespi, you have also this issue, doesn't it?

@RoelAdriaans
Copy link
Author

@pedrobaeza %end if is not removed, it's on a new line with the next % if next to it.
I've updated my paste..

0k/web_ckeditor#4 seems to be the same issue

@pedrobaeza
Copy link
Member

I think that has to be treated on the ckeditor4 JS widget itself, not here, but @hbrunn should say about this

@hbrunn
Copy link
Member

hbrunn commented Jun 29, 2015

To fix this, we'll have to dive into ckeditor's internals, I think. http://docs.ckeditor.com/#!/api/CKEDITOR.htmlDataProcessor seems to be a good starting point. Or this looks even better: http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-protectedSource

@antespi
Copy link
Contributor

antespi commented Jun 29, 2015

@pedrobaeza yes, we have the same issue.
@hbrunn yes, protectedSource regex maybe fix this.

@rafaelbn
Copy link
Member

@hbrunn did you detect the same issue using https://github.com/OCA/crm/tree/8.0/newsletter when creating/editing emails templates Under Sales/Configuration/Newsletter type? (as newsletter installs ckeditor)

@hbrunn
Copy link
Member

hbrunn commented Jun 30, 2015

@RoelAdriaans-B-informed @pedrobaeza @antespi @rafaelbn

I think @lfreeke mentioned this problem once.

Should be fixed by #158

@RoelAdriaans
Copy link
Author

#158 did not fix this issue

@rafaelbn
Copy link
Member

rafaelbn commented Aug 5, 2015

As #158 didn't fix this issue, are any of you interested in fixing it? Are you using this module en production enviroments? We are still not using this module as corrupts many standards functionalities.

@hbrunn hbrunn added the 8.0 label Sep 4, 2015
@hbrunn hbrunn added this to the 8.0 milestone Sep 4, 2015
@hbrunn hbrunn added bug and removed 8.0 labels Sep 4, 2015
@rafaelbn
Copy link
Member

Check #213 @hbrunn update ckeditor version

@rafaelbn
Copy link
Member

@sergio-incaser @carlos-incaser as you are using web_ckeditor4 module I think you are interested in this issue. We are not using web_ckeditor4 by the moment. We need time to fix this issue and test it deeper to use with customers.

@psyray
Copy link

psyray commented Feb 8, 2017

Hi,
This bug is still present, result after saving is the same as @RoelAdriaans-B-informed reports.
image
image

Is this planned to be resolved ?

@pedrobaeza
Copy link
Member

If the PR already merged doesn't resolve it, I don't think so, as most of us have moved on to 9.0 or uninstall the module, but I can't speak for all.

@psyray
Copy link

psyray commented Feb 8, 2017

Thanks for quick reply ;)
Is there a way to disable ck_editor for email templating ? Or must i use this module for all html content ?

@pedrobaeza
Copy link
Member

Not now AFAIK, as this one replaces default HTML editor.

@psyray
Copy link

psyray commented Feb 8, 2017

Ok thanks, I will disable this module.

hbrunn added a commit to hbrunn/web that referenced this issue May 7, 2018
leemannd added a commit to camptocamp/web that referenced this issue May 29, 2018
vrenaville pushed a commit to camptocamp/web that referenced this issue Jul 19, 2018
Substances to analyze duplicated on tasks BSMTS-275
hbrunn added a commit to hbrunn/web that referenced this issue Sep 15, 2018
@github-actions
Copy link

github-actions bot commented Oct 3, 2021

There hasn't been any activity on this issue in the past 6 months, so it has been marked as stale and it will be closed automatically if no further activity occurs in the next 30 days.
If you want this issue to never become stale, please ask a PSC member to apply the "no stale" label.

@github-actions github-actions bot added the stale PR/Issue without recent activity, it'll be soon closed automatically. label Oct 3, 2021
@github-actions github-actions bot closed this as completed Nov 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug stale PR/Issue without recent activity, it'll be soon closed automatically.
Projects
None yet
Development

No branches or pull requests

6 participants