Jump to content
  • 0

Can No longer add an email template for WYSIWYG in CK Editor


turner2f

Question

Hello Support,

I wrote a "Contribute" article in November 2017 on " How to create your own Email Template within CKEditor " .

That was when I was using version 4.0.1.

I have upgraded and I am now using version 4.11.2, and I can no longer create a template within CKEditor .

https://www.blesta.com/forums/index.php?/topic/10716-how-to-create-your-own-email-template-within-ckeditor/


You can also see the Custom Templates in action at . . .

https://youtu.be/wxTCJasKLYI
 

=================================

1) - Was the CKEditor software updated somewhere between 4.0.1 and 4.11.2  ?
 

----------------------


2) - I tried a "copy and paste" the code from my former installation found within the CKEditor folder where the "Default JS file" is . . .

/vendors/ckeditor/plugins/templates/templates/

NOTE : Usually we could see our custom HTML template when you go to  "Account Actions" - - > "Email Client" - - > from within your Admin panel


RESULT : That step no longer seems to work .

----------------------

 

3) - I tried following the same instructions found at https://github.com/ckeditor/ckeditor4/blob/master/plugins/templates/templates/default.js

Within the default JS file found at...

/vendors/ckeditor/plugins/templates/templates/default.js

RESULT : That step no longer seems to work . I saw no changes as far as an additional template within the WYSIWYG area of the 

----------------------

 

4) - I even tried completely replacing the "CKEditor" folder with files I had in my former Blesta install.

Found at . . .
/vendors/ckeditor/

RESULT : Replacing the folder from my former install did not have any affect .

NOTE : The only thing I have not been able to try is to "clear the cache"  in Blesta .

I do not know how to .

----------------------

 

5) - Finally, because I was NOT seeing ANY NOTICEABLE changes , I tried completely deleting the "CKEditor" folder altogether via SFTP.

Found at . . .
/vendors/ckeditor/


RESULT : When I logged into the Admin area and then went to the page where the CK Editor would be, to my surprise the WYSIWYG interface was STILL there .

It's  as  if  I never deleted any of the "CK Editor" files or folder at all .

QUESTION : So where amongst the files in Blesta  is the CK Editor WYSIWYG editor getting it's functionality from ?

 

===================

Look forward to your reply.

Thanks in advance.

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Based on #5 . . .


I searched for the file that is adding the CK Editor WYSIWYG to the interface .

The file  is . . .  "  admin_clients_email.pdt  "

At  LINES  72 - 79    it says,

 

<?php
$this->Javascript->setInline("
$(document).ready(function() {
    $('#html').ckeditor(function() {}, {language: '" . substr(Configure::get('Blesta.language'), 0, 2) . "'});
    $('div.tab_content').blestaTabbedContent();
});
");
?>



1) - Where amongst the Blesta files and folders is this code pulling the actual CK Editor ?

2) - Or is this code pulling the CK Editor from an " off-site " source ?

--------------------------

I am asking this because I physically removed the " CKEditor " folder altogether via SFTP.

Found at . . .
/vendors/ckeditor/

And when I logged into the Admin area, and then went to the page where the CK Editor would be,
to my surprise the WYSIWYG interface was STILL there .

It's  as  if  I never deleted any of the "CK Editor" files or folder at all ;
as if the code mentioned earlier is displaying the CK Editor from an " off-site " source .

 

 

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...