From 2a9b8fcc1d19a6c3769e34978b06d7514b2ce5e7 Mon Sep 17 00:00:00 2001 From: Jared Hancock <jared@osticket.com> Date: Thu, 31 Oct 2013 18:12:55 +0000 Subject: [PATCH] Remove placeholder text if found in the draft save The issue has been filed with Imperavi, but no ticket number or other tracking information was returned. --- js/redactor-osticket.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/js/redactor-osticket.js b/js/redactor-osticket.js index 486cadd72..3e5f3fc06 100644 --- a/js/redactor-osticket.js +++ b/js/redactor-osticket.js @@ -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) { -- GitLab