From e54d441af044689cc37b1b58104e1b404f55b9db Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 10 Aug 2010 15:48:02 -0700 Subject: [PATCH] TinyMCE: workaround for save trigger aborting our AJAX form submission. --- plugins/TinyMCE/TinyMCEPlugin.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/plugins/TinyMCE/TinyMCEPlugin.php b/plugins/TinyMCE/TinyMCEPlugin.php index f8d85c1ba0..3a7656d32c 100644 --- a/plugins/TinyMCE/TinyMCEPlugin.php +++ b/plugins/TinyMCE/TinyMCEPlugin.php @@ -115,12 +115,20 @@ class TinyMCEPlugin extends Plugin { $path = common_path('plugins/TinyMCE/js/tiny_mce.js'); + // Note: the normal on-submit triggering to save data from + // the HTML editor into the textarea doesn't play well with + // our AJAX form submission. Manually moving it to trigger + // on our send button click. $scr = <<