diff src/bbcode/bbcode.js @ 53:cac477dd1f82

convert image and video urls
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 24 Nov 2022 22:54:43 -0700
parents 9f8ebc757814
children 8b5b1bce7d6b
line wrap: on
line diff
--- a/src/bbcode/bbcode.js	Wed Nov 23 23:29:16 2022 -0700
+++ b/src/bbcode/bbcode.js	Thu Nov 24 22:54:43 2022 -0700
@@ -169,8 +169,8 @@
 			}
 			textarea.style.display = 'none';
 			divPreview.style.display = 'block';
-			let url = '/bbcode/preview.js?text=' + encodeURIComponent(textarea.value) + '&convert_urls=' + convertUrls;
-			ajax( url, null, {preview: contextPreview} );
+			let postData = 'text=' + encodeURIComponent(textarea.value) + '&convert_urls=' + convertUrls;
+			ajax( '/bbcode/preview.js', postData, {preview: contextPreview} );
 		} else {
 			for( let b of buttons ) {
 					b.disabled = false;