Hey guys,First off, I am running 1.11 early release (see system info below) and am SO impressed with this early release and would understand the lack of support but I figured I was give a shot. Now that threads can be edited in this new rev, I noticed the pop-up editor doesn't have a 'Insert Image' button like the reply editor. I did my due diligent's and searched for a possible answer regarding this issue and only came across the big improvement with this new release in the draft system and images. Although I do understand PHP basics, I wasn't able to figure out the missing code, except to show the button, but when clicked the proper dialogue box pops up, the upload button allows to browse and choose a file, shows the upload bar at the top but no file is inserted, but when I use a image from the 'choose' tab, it inserts the image.Again, I totally understand I am using a early release but hope this is something simple.Here is how I added the button;thread-entry-edit.tmpl.php<textarea style="display: block; width: 100%; height: auto; min-height: 150px;"<?php if ($poster && $this->entry->type == 'R') {    $signature_type = $poster->getDefaultSignatureType();    $signature = '';    if (($T = $this->entry->getThread()->getObject()))        $dept = $T->getDept();    switch ($poster->getDefaultSignatureType()) {    case 'dept':        if ($dept && $dept->canAppendSignature())           $signature = $dept->getSignature();       break;    case 'mine':        $signature = $poster->getSignature();        $signature_type = 'theirs';        break;    } ?>    data-dept-id="<?php echo $dept ? $dept->getId() : 0; ?>"    data-poster-id="<?php echo $this->entry->staff_id; ?>"    data-signature-field="signature"    data-signature="<?php echo Format:(Format:($signature)); ?>"<?php } ?>    name="body"    class="large <?php        if ($cfg->isRichTextEnabled() && $this->entry->format == 'html')            echo 'richtext';    ?> draft draft-delete"><?php echo htmlspecialchars(Format:($this->entry->body));?><?php echo $_POST ? $info : $draft;                ?></textarea>ticket-view.inc.php<textarea name="response" id="response" cols="50"                        data-signature-field="signature" data-dept-id="<?php echo $dept->getId(); ?>"                        data-signature="<?php                            echo Format:(Format:($signature)); ?>"                        placeholder="<?php echo __(                        'Write Report Here.'                        ); ?>"                        rows="9" wrap="soft"                        class="<?php if ($cfg->isRichTextEnabled()) echo 'richtext';                            ?> draft draft-delete" <?php    list($draft, $attrs) = Draft:('ticket.response', $ticket->getId(), $info);    echo $attrs; ?>><?php echo $_POST ? $info : $draft;                    ?></textarea>Thank you in advanced!- James

osticket_server_info_1.11.png

osticket_server_info_1.11.png

I ran outta space to write and I don't see any attachments I added. My sysytem info;osTicket Version 1.8-git (?) — 9ae093d is availableWeb Server Software ApacheMySQL Version 5.5.51PHP Version 5.5.37PHP Extensionsgdlib Used for image manipulation and PDF printingimap Used for email fetchingxml XML APIxml-dom Used for HTML email processingjson Improves performance creating and processing JSONmbstring Highly recommended for non western european language contentphar Highly recommended for plugins and language packsintl Highly recommended for non western european language contentfileinfo Used to detect file types for uploadsAPCu Improves overall performanceZend Opcache Improves overall performancePHP Settingscgi.fix_pathinfo "1" is recommended if AJAX is not workingdate.timezone America/Chicago

You're going to want to post on github for support on the beta.  We generally do not support unreleased versions here.

I understand, not familiar with GitHub and discussions but I'll check it out. Please close.Thanks!

Write a Reply...