- Edited
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