From: Brion Vibber Date: Tue, 10 Aug 2010 22:48:02 +0000 (-0700) Subject: TinyMCE: workaround for save trigger aborting our AJAX form submission. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=e54d441af044689cc37b1b58104e1b404f55b9db;p=quix0rs-gnu-social.git TinyMCE: workaround for save trigger aborting our AJAX form submission. --- 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 = <<