Skip to content
Snippets Groups Projects
Commit 3d5aeec1 authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #63 from greezybacon/issue/redactor-placeholder-in-draft


Remove placeholder text if found in the draft save

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents 0d229710 2a9b8fcc
No related branches found
No related tags found
No related merge requests found
......@@ -122,6 +122,9 @@ $(function() {
.attr('height',img.clientHeight);
html = html.replace(before, img.outerHTML);
});
// Drop the placeholder text if found in the box
// DELME: When this is fixed upstream in Redactor
html = html.replace(/<span class="redactor_placeholder[^<]+<\/span>/, '');
return html;
},
redact = function(el) {
......
......@@ -127,7 +127,9 @@ class Deployment extends Unpacker {
// Clean everything but include folder first
$this->clean($root, $this->destination, -1,
array($include, "setup/"));
$this->clean("$root/include", $include, -1);
$this->clean("$root/include", $include, -1,
array("ost-config.php","settings.php","plugins/",
"*/.htaccess"));
}
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment