and $button is put before the div on line 125 ('MASS_MAILER_MESSAGE_LABEL') of administrator/components/com_comprofiler/view/view.users.phpJModelLegacy::addIncludePath(JPATH_BASE . '/components/com_content/models', 'ContentModel');
$model = JModelLegacy::getInstance('Article', 'ContentModel');
$articleId = 232;
$article = $model->getItem($articleId)->introtext;
$article = str_replace(array("\r\n", "\n", "\r"), ' ', $article);
$article = str_replace('\'', '‘', $article);
$article = "'".$article."'";
$button = '<button class="button" onclick="clickme();">Welcome Letter</button><script>function clickme() { tinymce.activeEditor.setContent('.$article.')}</script>'."\r\n";
Please Log in to join the conversation.
Please Log in to join the conversation.
Please Log in to join the conversation.