Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add option previewParserAjaxType

The option previewParserAjaxType allows the user to specify the
HTTP verb when calling the preview parser via Ajax.
The default is POST
  • Loading branch information...
commit f8c1405b47a1fa12f6873e650649213ed0c15c1f 1 parent 19069af
@rhelms rhelms authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  markitup/jquery.markitup.js
View
3  markitup/jquery.markitup.js
@@ -45,6 +45,7 @@
previewParser: false,
previewParserPath: '',
previewParserVar: 'data',
+ previewParserAjaxType: 'POST',
resizeHandle: true,
beforeInsert: '',
afterInsert: '',
@@ -544,7 +545,7 @@
writeInPreview(localize(data, 1) );
} else if (options.previewParserPath !== '') {
$.ajax({
- type: 'POST',
+ type: options.previewParserAjaxType,
dataType: 'text',
global: false,
url: options.previewParserPath,
Please sign in to comment.
Something went wrong with that request. Please try again.