Kayako Logo
Developers & Code Interested in customizing your Kayako products? Discuss modifications and develop your own mods with the community.

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  (#16) Old
sws Offline
Member
 
Posts: 42
Join Date: Aug 2006

12-02-2007, 10:13 PM

P.S The mod above is for staff replies only, as this is all I required.

I see no point in developing further as there where only 2 of you who actually seemed to want it, altough the forum was widespread with requests for html edittor to be re-added to kayako.

I only contribute when its worthwhile, and appreciated, otherwise, I may aswell keep my hard work to myself (rather selfish really)
   
Reply With Quote
  (#17) Old
elrafei Offline
New Member
 
Posts: 20
Join Date: Nov 2006

19-02-2007, 12:40 AM

i use this Version: 3.04.10

thanx for ur efforts
   
Reply With Quote
  (#18) Old
sws Offline
Member
 
Posts: 42
Join Date: Aug 2006

05-03-2007, 06:28 PM

I realise its been a while, will post a fix for you soon
   
Reply With Quote
  (#19) Old
sws Offline
Member
 
Posts: 42
Join Date: Aug 2006

05-03-2007, 06:41 PM

Ok, I have now tested this on later release also 3.10.00 and it works fine

The initial error (which I have editted from the top of the forum)
was the inclusion of an additional <script> tag..


for reference I have not enclosed the following code in a code wrapper due to scroll bars, however ensure in themes/admin_default/cpheader.tpl the following matches



<{if $spellcheck eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/Spellcheck/spellChecker.js"></script>
<{/if}>
<{if $jscachefile neq ""}>
<script type="text/javascript" src="<{$swiftpath}>files/<{$jscachefile}>"></script>
<{/if}>

//error was here with another <script line as below
<script type="text/javascript">
<{if $htmlarea eq true || $htmlarea2 eq true }>
var _editor_lang = "en";
var _editor_url = "<{$swiftpath}>includes/htmlArea/";
var editor = null;
<{if $htmlareanotable eq true}>var loadTablePlugin = false;<{else}>var loadTablePlugin = true;<{/if}>
<{/if}>
</script>

<{if $htmlarea eq true || $htmlarea2 eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/htmlArea/htmlarea.js"></script>
<{/if}>

<{processCPMenu area=$area}>
<script language="Javascript">
//HTMLArea.loadPlugin("TableOperations");
function loadAllData() { preloadMenuImages();

<{if $htmlarea eq true}>
editor = new HTMLArea("contents");
// editor.registerPlugin(TableOperations);
editor.generate();
<{/if}>


<{if $prvmsgshow eq true}> var x = confirm("<{$language[newprvmsgconfirm]}>"); if (x) {window.open('index.php?_m=core&_a=privatemessages &popupshow=1');}<{/if}>
<{if $refreshtime != 0}>setTimeout("refreshPage();",<{$refreshtime}>000 );<{/if}>
var irsField = browserObject("staffirs");
if (irsField)
{
window.$IRS = globalirs = new IRSAutoComplete(document.getElementById('staffirs' ));
}
}
</script>


<script language="Javascript">
function EDITORON(){
editor = new HTMLArea("replycontents");
// editor.registerPlugin(TableOperations);
editor.generate();
}
</script>

</head>
   
Reply With Quote
  (#20) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
12-05-2007, 11:41 PM

Does this work when trying to instert KB article into a new ticket/reply?
   
Reply With Quote
  (#21) Old
sws Offline
Member
 
Posts: 42
Join Date: Aug 2006

13-05-2007, 01:07 AM

Yes however, you have to be in "view source" mode in the wysiwyg edittor for it to work. But thats only a click of a <> button
   
Reply With Quote
  (#22) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
13-05-2007, 01:16 AM

So is the code at the top of this thread up to date or do I have to use the code in red from above?

So would I enter "view source" mode then go to Knowledgebase-->select article and then it should appear in the ticket the same way it was formatted when it was created?
   
Reply With Quote
  (#23) Old
sws Offline
Member
 
Posts: 42
Join Date: Aug 2006

13-05-2007, 10:43 AM

Quote:
Originally Posted by Siora View Post
So is the code at the top of this thread up to date or do I have to use the code in red from above?

So would I enter "view source" mode then go to Knowledgebase-->select article and then it should appear in the ticket the same way it was formatted when it was created?
Top code is the fixed code yes,

and yes when you go into view source mode and insert the kb article
it will insert as html i.e

my email <br/>
<a href="abc.php">test</a>

Uncheck the src button and it will be displayed & sent exactly as originally created.

No need to untick the src button to send it, unless you want to add content.

Ive been using it since the date of the first post, without any problems
   
Reply With Quote
  (#24) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
13-05-2007, 02:09 PM

Sweet, I'm gonna give this a shot. Thanks alot.
   
Reply With Quote
  (#25) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
14-05-2007, 06:00 PM

Quote:
Originally Posted by Siora View Post
Sweet, I'm gonna give this a shot. Thanks alot.
I just tried this and it does NOT work. The editor exists but if I copy and past or insert KB articles that were formatted using the WYSIWYG editor, the contents do not copy or insert in the same format.

Any ideas or suggestions?

I first enter editor mode, I then click on "<>", I then insert the KB article but I get nada. It appears the same way as if the editor was not there.
   
Reply With Quote
  (#26) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
14-05-2007, 07:33 PM

In addition to the above, I get the attached error. Also, when I use liveresponse to view tickets I get a run-time error.

I have now reverted back to the old files as I don't see this working anyhow.
   
Reply With Quote
  (#27) Old
sws Offline
Member
 
Posts: 42
Join Date: Aug 2006

15-05-2007, 05:29 PM

This was a quick solution which is working perfectly for me,

Basically Kayako said NO, so I did it.

I dont use liveresponce so cant help on that im afraid.

However, when I click <> "source mode" I insert the KB article which appears as html code, then I re-click <> "back to html mode" and it works fine.

I use it to send properly formed invoices out and to date have had no problems, I upgraded to the latest version and re-installed exactly how its shown in post 1.

Unfortunatly Im unable to support this because it was for my own personal use and since Kayako have basically said they will not be including such a feature, I had to find a workaround.

Maybe somebody with livesupport could expand on this and find the problems, that is if they want to use wysiwyg ?? but for me it works perfectly.
   
Reply With Quote
  (#28) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
15-05-2007, 06:15 PM

Quote:
Originally Posted by sws View Post
This was a quick solution which is working perfectly for me,

Basically Kayako said NO, so I did it.

I dont use liveresponce so cant help on that im afraid.

However, when I click <> "source mode" I insert the KB article which appears as html code, then I re-click <> "back to html mode" and it works fine.

I use it to send properly formed invoices out and to date have had no problems, I upgraded to the latest version and re-installed exactly how its shown in post 1.

Unfortunatly Im unable to support this because it was for my own personal use and since Kayako have basically said they will not be including such a feature, I had to find a workaround.

Maybe somebody with livesupport could expand on this and find the problems, that is if they want to use wysiwyg ?? but for me it works perfectly.
Okay cool. Thanks.
   
Reply With Quote
  (#29) Old
Sheep Offline
Member
 
Sheep's Avatar
 
Posts: 326
Join Date: Feb 2007
Location: Lyon, France

SupportSuite
Owned License
03-08-2007, 01:33 PM

Mod tested with 3.11, works fine.

Here is a fix for the "quote KB only in code edit mode" bug
in themes/admin_default/main.js
find
PHP Code:
fetchData("kb"kbarticleid); 
add after
PHP Code:
xmlhttp.onreadystatechange  = function()
        { 
         if(
xmlhttp.readyState  == 4)
         {
              if(
xmlhttp.status  == 200
                 
editor.setHTML(editor.getHTML()+xmlhttp.responseText);
         }
        }; 
do the same thing for the two other ones
PHP Code:
fetchData("pr"predefinedreplyid);
fetchData("tp"ticketpostid); 
You should also use
Code -> strip_tags is such a pain
in the same time.


Antoine "Sheep" BERMON
-- I left kayako's community: do NOT contact me for job offers, thx --

Last edited by Sheep : 03-08-2007 at 01:39 PM.
   
Reply With Quote
  (#30) Old
Siora Offline
Member
 
Siora's Avatar
 
Posts: 1,238
Join Date: Apr 2007
Location: Toronto Canada

SupportSuite
Owned License
03-08-2007, 02:36 PM

When I tried this mod on 3.10.02 it still was not working proberly for me when trying to insert a KB article into a ticket I was trying to create...the formatting was completely off (even though it would send correctly in the email) within the ticket.

Sheep...did you test this out? Does your fix address this issue?


Mehul
Siora Solutions Inc.
www.sioraIT.com
   
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Outgoing HTML Emails Need Staff To Code HTML in Tickets? Elite SupportSuite, eSupport and LiveResponse 7 08-01-2008 07:51 PM



Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0

Kayako provides online help desk software and support solutions; enabling companies to improve their support and reduce costs.

Our three main products include: SupportSuite, eSupport and LiveResponse



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46