View Issue Details

This bug affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
14035Bug reportsPluginspublic2021-03-10 22:02
Reporterkemweb Assigned Tomarkusfluer 
PrioritynoneSeverityminor 
Status assignedResolutionopen 
Product Version3.19.2 
Summary14035: Problem with inserting variables in email template editor
Description
  1. Open the email template editor /index.php/admin/emailtemplates/sa/index/surveyid/1
  2. Click the insert variable lemon
    => the editor resizes

This is caused because the ajax request from the ckeditor plugin is missing the XMLHttpRequest header.
index.php/admin/limereplacementfields/sa/index/fieldtype/email-invitation/action/editemailtemplates/surveyid/1/gid//qid/

This causes AdminTheme.php to added JS and styles in registerStylesAndScripts().

I tried to rewrite the plugin to use jQuery.ajax but could not make it work to load asynchron.

Anyway I think this is a ckeditor issue. So I opened a ticket there: https://github.com/ckeditor/ckeditor-dev/issues/2382

Maybe you have a better solution or like to add the fix.

In /assets/packages/ckeditor/plugins/ajax/plugin.js add after xhr.open(... the line:
xhr.setRequestHeader('X-Requested-With', 'XMLHttpRequest');

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)Release 3.7.0+180418
I will donate to the project if issue is resolvedNo
Browser
Database type & version*
Server OS (if known)Debian
Webserver software & version (if known)Apache 2.4.25
PHP Version7.0.27-0+deb9u1

Users monitoring this issue

There are no users monitoring this issue.

Activities

kemweb

kemweb

2018-09-06 11:26

reporter   ~48982

I forgot you also have to look at
polls/application/models/AdminTheme.php Line 140

and replace:
if (!Yii::app()->request->getQuery('isAjax', false)) {

with:
if (!Yii::app()->request->getIsAjaxRequest()) {

Issue History

Date Modified Username Field Change
2018-09-06 10:59 kemweb New Issue
2018-09-06 11:26 kemweb Note Added: 48982
2018-09-10 10:57 LouisGac Assigned To => markusfluer
2018-09-10 10:57 LouisGac Status new => assigned
2021-03-10 22:02 ollehar Product Version => 3.19.2