Skip to content

Commit

Permalink
Fix for list email plugin, tinymce
Browse files Browse the repository at this point in the history
  • Loading branch information
cheesegrits committed Jul 14, 2017
1 parent f90ec54 commit b2e2360
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion plugins/fabrik_list/email/email-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions plugins/fabrik_list/email/email.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,10 @@ define(['jquery', 'fab/list-plugin', 'fab/fabrik'], function (jQuery, FbListPlug
if (typeof WFEditor !== 'undefined') {
WFEditor.getContent('message');
}
var url = 'index.php';
else if (typeof tinymce !== 'undefined') {
tinyMCE.activeEditor.save();
}
var url = Fabrik.liveSite + '/index.php';
if (self.options.additionalQS !== '') {
url += '?' + self.options.additionalQS;
}
Expand Down Expand Up @@ -77,7 +80,7 @@ define(['jquery', 'fab/list-plugin', 'fab/fabrik'], function (jQuery, FbListPlug
},

buttonAction: function () {
var url = 'index.php?option=com_fabrik&controller=list.email&task=popupwin&tmpl=component&ajax=1&id=' +
var url = Fabrik.liveSite + '/index.php?option=com_fabrik&controller=list.email&task=popupwin&tmpl=component&ajax=1&id=' +
this.listid + '&renderOrder=' + this.options.renderOrder,
self = this;
this.listform.getElements('input[name^=ids]').each(function (id) {
Expand Down
2 changes: 1 addition & 1 deletion plugins/fabrik_list/email/models/email.php
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,7 @@ public function getEditor()

if ($params->get('wysiwyg', true))
{
$editor = JFactory::getEditor();
$editor = JEditor::getInstance($this->config->get('editor'));

return $editor->display('message', $msg, '100%', '200px', 75, 10, true, 'message');
}
Expand Down

0 comments on commit b2e2360

Please sign in to comment.