Skip to content

Commit cfb2009

Browse files
committed
fixed JSON.parse
1 parent 186b822 commit cfb2009

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

draceditor/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
22

3-
__VERSION__ = '1.1.0'
3+
__VERSION__ = '1.1.1'
44
__AUTHOR__ = 'Agus Makmun (Summon Agus)'
55
__AUTHOR_EMAIL__ = '[email protected]'

draceditor/static/js/draceditor.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Name : DracEditor v1.1.0
2+
* Name : DracEditor v1.1.1
33
* Created by : Agus Makmun (Summon Agus)
44
* Release date : 5-Jan-2017
55
* Official : https://dracos-linux.org
@@ -600,7 +600,7 @@
600600
// Custom decission for toolbar buttons.
601601
var btnMention = $('.markdown-direct-mention'); // To Direct Mention
602602
var btnUpload = $('.markdown-image-upload'); // To Upload Image
603-
var configs = draceditor.data('enable-configs');
603+
var configs = JSON.parse(draceditor.data('enable-configs').replace(/'/g, '"'));
604604
if (configs.mention === 'true') {
605605
btnMention.click(function(){
606606
markdownToMention();

0 commit comments

Comments
 (0)