- Edited
Hello,
I am searching for FCKeditor or any other HTML editor working with OSticket but did not found any specific solution yet. is any one implemented it before it this possible with OS ticket any suggestion will appropriate
Thanks
Hello,
I am searching for FCKeditor or any other HTML editor working with OSticket but did not found any specific solution yet. is any one implemented it before it this possible with OS ticket any suggestion will appropriate
Thanks
expert please comment it
Expert please help on this.. Any one know this is possible or not with OSticket
Thanks
+1 on this please.
Integrate CKEditor 3.X
This method applies to CKEditor 3.X only. (as far as I know)
in your include/staff/header.inc.php
Find this code...
<link rel="stylesheet" href="css/autosuggest_inquisitor.css" type="text/css" media="screen" charset="utf-8" />
Directly beneath it add this code...
<script type="text/javascript" src="../ckeditor/ckeditor.js"></script>
Your src will be wherever you put your ckeditor folder.
Then in include/staff/viewticket.inc.php
Find this line of code...
<textarea name="response" id="response" cols="90" rows="9" wrap="soft" style="width%" class="response"><?=$info?></textarea>
Directly below that add this code...
<script type="text/javascript">
CKEDITOR.replace( 'response' );
</script>
The replace script can be reused later on down the page with each text area. Just replace CKEDITOR.replace( 'response') with whatever your textarea name is.
Apply this method to client include files for client ckeditor inputs.
If you have that editor, do the replies if sent back to the end users also keep the changes?
I.e if make something bold or underlined.
Thanks. I assume I copy the Editor directory to the root of the folders?
I installed the editor and modified the codes. All works fine except that the reply that goes out is in text format with bunch of HTML codes.
please post a screenshot or codeblock of the output please.
Please see the image of the Email that came through with HTML codes. Of course, you can see my reply as well.
Im unsure if I can help with the email, but I can (kinda) guide you in the right direction..
open up include/staff/viewticket.inc.php
find this code...
<?=Format:($resp_row)?>
replace it with this code...
<?php
$doc = new DOMDocument();
$doc->loadHTML(($resp_row));
echo $doc->saveHTML();
?>
Now you have the CKEditor HTML output being parsed by PHP's DOMDocument(). There is probably a way to make this work system wide. +1 for who ever figures it out.
BTW, I had to add the and tags to the database entry myself, the editor did NOT enter the HTML into the database. I'm looking to figure this one out now.....
Ok php was stripping out the tags and not inserting them into the db.
in class.ticket.php
Find this code...
$sql= 'INSERT INTO '.TICKET_RESPONSE_TABLE.' SET created=NOW() '.
',ticket_id='.db_input($this->getId()).
',msg_id='.db_input($msgid).
',response='.db_input(Format:($response)).
',staff_id='.db_input($thisuser->getId()).
',staff_name='.db_input($thisuser->getName()).
',ip_address='.db_input($thisuser->getIP());
$resp_id=0;
replace the "response" line with...
',response='.db_input($response).
Booyah. I would be VERY careful about allowing this into your client front end...DomDocument parses whatever you (or your client) throws at it. : You have been warned. :
The issue of sending and receiving HTML Emails has already been discussed here...
(http://osticket.com/forums/showthread.php?p=18162#post18162)
It works!
CKEditor + HTML Email =
FCK editor installation create problem
HI Teryakisan,
I do all changes given the above line below.
"The replace script can be reused later on down the page with each text area. Just replace CKEDITOR.replace( 'response') with whatever your textarea name is".
But A minor doubt is where we do changes with the place of CKEDITOR.replace( 'response') and where is the textarea name is defiened ?give me file name and path where the textarea name is defined.
Please help me its urgent dear.
dear?
Each textareas name is defined by name="whatever". Response is the name of the textarea for the given example. Apply the example to each textarea with its name.
Hi teryakisan
"textarea name " issue is resolved..
Issue is when we post response to the staff ...msg is send to this format
please find the snapshot---
87);">loadHTML(($resp_row));
echo $doc->saveHTML();
?>
this php code is not found in class.ticket.php
<?=Format:($resp_row)?>
where is it?plz help
Each textareas name is defined by name="whatever". Response is the name of the textarea for the given example. Apply the example to each textarea with its name.
Ckeditor issue.
Hi teryakisan ,
Do rply plzzzz
Its urgents
First, that code is nowhere to be found in class.ticket.php anyway. Second, if your page is returning HTML code instead of formatted text, then you do not have DomDocument doing its thing. Look here...
http://osticket.com/forums/showpost.php?p=22581&postcount=10(http://osticket.com/forums/showpost.php?p=22581&postcount=10)
messgae send in html font...
hiiii ter,
Plz help me i am requesting to ..plzzz send me the solution...
this php code is not found in class.ticket.php
<?=Format:($resp_row)?>
where is it?plz help
That code DOES NOT EXIST in class.ticket.php Furthermore, it DOES NOT go there. It goes in include/staff/viewticket.inc.php. It cannot possibly be any clearer.
(http://osticket.com/forums/showpost....1&postcount=10)
Using RC5 - Canned Message not showing up
HI - am using RC5 and i have implemented the CKeditor which shows up on the reply panel but when you select a pre made message nothing happens - Please help as this has got me stuck:)