No Code Attached Yet bug
avatar Kostelano
Kostelano
11 Jul 2021

Steps to reproduce the issue

Go to SYSTEM - Mail Templates, open any template. Place your mouse cursor somewhere in the middle of the message text and try to insert a tag - it is inserted only at the end of the message.

This only happens with the message body WITHOUT HTML. In the field of HTML - everything is good.

avatar Kostelano Kostelano - open - 11 Jul 2021
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jul 2021
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 11 Jul 2021
avatar JamesNGarrett
JamesNGarrett - comment - 12 Jul 2021

https://github.com/joomla/joomla-cms/blob/4.0.0-rc3/build/media_source/com_mails/js/admin-email-template-edit.es6.js

Line 58 suggests that if the editor isn't loaded then insertTag just appends the tag to the value.

 if (Joomla.editors.instances[input.id]) {
        Joomla.editors.instances[input.id].replaceSelection(tag);
      } else {
        input.value += ` ${tag}`;
      }
avatar brianteeman
brianteeman - comment - 15 Apr 2022

Confirmed

avatar Hackwar Hackwar - change - 22 Feb 2023
Labels Added: No Code Attached Yet bug
Removed: ?
avatar Hackwar Hackwar - labeled - 22 Feb 2023
avatar Hackwar Hackwar - change - 26 Nov 2024
Status New Closed
Closed_Date 0000-00-00 00:00:00 2024-11-26 08:36:49
Closed_By Hackwar
avatar Hackwar Hackwar - close - 26 Nov 2024
avatar Hackwar
Hackwar - comment - 26 Nov 2024

In the meantime the field is not using textarea anymore, but editor with the type forced to none, which makes this work fine. Closing this issue as solved.

Add a Comment

Login with GitHub to post a comment