summaryrefslogtreecommitdiff
path: root/public/editor/editor.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/editor/editor.js')
-rw-r--r--public/editor/editor.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/public/editor/editor.js b/public/editor/editor.js
index 526a444..f0e9519 100644
--- a/public/editor/editor.js
+++ b/public/editor/editor.js
@@ -89,6 +89,18 @@ $(function() {
});
});
+ $("#micropub-html-btn").click(function(){
+ $.post('/settings/html-content', {
+ html: 1
+ }, function(data){
+ });
+ });
+
+ $.getJSON('/settings/html-content', function(data){
+ if(data.html == '0') {
+ $('.micropub-html-warning').show();
+ }
+ });
});
function reset_page() {