To reproduce:
- Install a second language
- Try to open a tld pricing modal
- Encounter js error
VM144:175 Uncaught SyntaxError: Identifier 'ck_editor' has already been declared
at b (jquery.min.js:2)
at Pe (jquery.min.js:2)
at s.fn.init.append (jquery.min.js:2)
at s.fn.init.<anonymous> (jquery.min.js:2)
at $ (jquery.min.js:2)
at s.fn.init.html (jquery.min.js:2)
at e.z._update (jquery.qtip.min.js:3)
at e.z._updateContent (jquery.qtip.min.js:3)
at e.^content.text$ (jquery.qtip.min.js:3)
at e.j (jquery.qtip.min.js:3)
The problem line is identified as
const ck_editor = document.querySelector('#edit_tld_net #email_content_es_es .email_content_html .ck-editor__editable');
Looks like we should change plugins/domains/views/default/admin_domains_pricing.pdt around line 435 and 436 to change 'const' to 'var'