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

Kayako develops robust helpdesk software, live chat and real-time visitor monitoring software.
Kayako is trusted by more than 30,000 organizations, including a number of Fortune 500 companies and government institutions.
Reply
 
LinkBack (1) Thread Tools Search this Thread Rate Thread Display Modes
  1 links from elsewhere to this Post. Click to view. (#1) Old
jamesM Offline
Member
 
Posts: 35
Join Date: Jun 2006
How to: Replace the current WYSIWYG editor with InnovaStudio WYSIWYG Editor - 13-07-2006, 03:33 AM

I did not like the old and outdated WYSIWYG editor that came with kayako and I own a licence for InnovaStudio WYSIWYG's editor and I have to say it is one of the better editors so I thought I would install it.

Created a folder in includes eg includes\wysiwyg and uploaded the Innovastudio editor

Edit cpheader.tpl and have a look for <{if $htmlarea eq true}> and make these changes



Code:
</script>
<{if $htmlarea eq true}>
<script type="text/javascript" src="<{$swiftpath}>includes/WYSIWYG/scripts/innovaeditor.js"></script>
<{/if}>
<{processCPMenu area=$area}>
<script language="Javascript">

<{/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}>
</script>

</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" background="<{$themepath}>bgblocks.gif">

I had to remove this line I was not sure that it was doing (if any one knows llet me know)

Code:
window.$IRS = globalirs = new IRSAutoComplete(document.getElementById('staffirs'))
You also need to make some changes to functions_html.php



PHP Code:
Prints a WYSIWYG htmlarea area row
*/
function 
printhtmlAreaRow($name$title$value ""$numlines "20"$iscontenthtml 1) {
    global 
$_SWIFT;
    if (empty(
$name)) {
        return 
false;
    }

    
$data = array();
    
$data[0]["value"] = '<table border="0" cellpading="0" cellspacing="0" width="98%"><tr><td align="left"><textarea class="swifttextarea" name="'$name .'" id="'$name .'" style="WIDTH:100%;" cols="80" rows="'$numlines .'">'htmlspecialchars($value) .'</textarea><script>var oEdit1 = new InnovaEditor("oEdit1"); oEdit1.width="100%"; oEdit1.height=200; oEdit1.cmdAssetManager="modalDialogShow(\'/includes/wysiwyg/assetmanager/assetmanager.php\',640,445);";  oEdit1.REPLACE("'$name .'");</script> </td></tr></table>'.SWIFT_CRLF;
    
$data[0]["align"] = "left";
    
$data[0]["colspan"] = "2";

    
addHiddenField("iscontenthtml"$iscontenthtml);
    
printDescRow($title);
    
printDataRow($data);
}

/** 
Thats it there are a lot of options you can pass to the editor through javascript (you might see I have added the asset manager) looks a little bit messy so will have to see if that can be cleaned up
   
Reply With Quote
  (#2) Old
AKL-MFCU Offline
Member
 
Posts: 98
Join Date: Feb 2006
Location: Lakeland, Florida - USA
i like it - 13-07-2006, 06:24 PM

i like your documentation on this, by the way the line:
window.$IRS = globalirs = new IRSAutoComplete(document.getElementById('staffirs' ))

is the instant response stsystem being pulled by the staff side when they type in a reply in their ticket it would pull up relevant knowledgebase articles as well. I didn't think it used the wysiwyg editor.
   
Reply With Quote
  (#3) Old
IanWild Offline
Member
 
Posts: 30
Join Date: Jun 2005
13-07-2006, 09:49 PM

It's the wrong place to ask... But does anyone know whether there is a WYSIWYG editor that allows you to paste images in and have them automatically uploaded to the server and linked to within the document - That would make the job of importing all the word based documentation I have so much easier :-)

Even if I had to manually upload them, rather than FTP them seperately and then insert links, that would be better though.

Or has anyone found another easy way to do this?

Ian
   
Reply With Quote
  (#4) Old
jamesM Offline
Member
 
Posts: 35
Join Date: Jun 2006
13-07-2006, 11:50 PM

I need to find a better way of passing all the different InnovaStudio parameters to the editor at the moment they are past in the $data[0]["value"] array in just a javascript tag but there are heaps more to add to be able to customise the editor the problem is you have to include them right after the textarea tag and having them in just one lone line makes it very hard to read and debug. I don't know php that well so will have to do some reading up on it.

IanWild I used InnovaStudio because of that fact I have lots of PDF and word files that I need to publish InnovaStudio and it has a paste from word option. But I have not heard of an editor where you can drag and drop images and auto upload. InnovaStudio has a nice asset manager and that was one of the reasons I used it.
   
Reply With Quote
  (#5) Old
kaviar Offline
Member
 
Posts: 69
Join Date: Dec 2005
Location: Brisbane, Australia
30-07-2006, 10:25 PM

I'm also interested in finding a way to upload images to knowledgebase articles instead of linking them. As Ian said, it will save a lot of time in adding articles to the knowledgebase.

Cheers

Kav
   
Reply With Quote
  (#6) Old
Xolphin Offline
New Member
 
Posts: 14
Join Date: Feb 2006
19-09-2007, 05:14 PM

Kaviar, you can integrate image uploading by using http://tinymce.moxiecode.com/paypal/...ilemanager.php. I am using it with very succesfull results in Kayako (you only need to edit themes/admin_default/cpheader.tpl to make it work).

(this is kinda of a double post, so other people can find this article when they search for knowledgebase file uploads in Google, like I did, sorry about the multiple messages with the same links)
   
Reply With Quote
  (#7) Old
kev Offline
New Member
 
Posts: 1
Join Date: Mar 2008
InnovaStudio - 19-03-2008, 03:41 PM

I have recently had to fix a website which has the Innova Studio package linked to the site. The problem that i am having is that i am able to edit the text from the pages within the site. I then need the text on the pages to be updated with the new edited text.

I dont even no if it is capable of this or it is just used for editing and formatting the text on a page.

i have looked for help files on this and found out that they need to be paid for which is no good.

Can anybody who knows more about this package please help.
   
Reply With Quote
Reply

Tags
current, editor, innovastudio, replace, wysiwyg

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

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


LinkBacks (?)
LinkBack to this Thread: http://forums.kayako.com/f48/how-replace-current-wysiwyg-editor-innovastudio-wysiwyg-editor-8258/
Posted By For Type Date
change the default vb editor with another one - Admin Zone Forums This thread Refback 24-05-2008 11:35 PM

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tickets - WYSIWYG editor elephant Think Tank 67 12-10-2009 11:20 PM



Powered by vBulletin® Version 3.8.3
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2


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 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78