Permalink
Browse files

fix #68

  • Loading branch information...
1 parent a05069a commit 04e23f7a077169178c1eb9efe281e7d56b8c09cf @brunosardinepi committed Jan 7, 2017
@@ -81,6 +81,9 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
@@ -81,6 +81,9 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
@@ -81,6 +81,9 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
@@ -92,7 +95,7 @@
} else if (item.type == 'location') {
var url = "{% url 'locations:location_detail' location_pk=999999999999 %}".replace(999999999999, item.id);
} else {
- var url = "http://dungeonomics.com/characters/" + item.type + "/" + item.id + "/";
+ var url = "{% url 'characters:monster_detail' monster_pk=999999999999 %}".replace(999999999999, item.id).replace(/monster/g, item.type);
}
return "<a href=" + url + ">" + item.name + "</a>";
}
@@ -81,6 +81,9 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
@@ -92,7 +95,7 @@
} else if (item.type == 'location') {
var url = "{% url 'locations:location_detail' location_pk=999999999999 %}".replace(999999999999, item.id);
} else {
- var url = "http://dungeonomics.com/characters/" + item.type + "/" + item.id + "/";
+ var url = "{% url 'characters:monster_detail' monster_pk=999999999999 %}".replace(999999999999, item.id).replace(/monster/g, item.type);
}
return "<a href=" + url + ">" + item.name + "</a>";
}
@@ -97,7 +97,7 @@
} else {
var url = "{% url 'characters:monster_detail' monster_pk=999999999999 %}".replace(999999999999, item.id).replace(/monster/g, item.type);
}
- return "<a href='" + url + "'>" + item.name + "</a>";
+ return "<a href=" + url + ">" + item.name + "</a>";
}
}
});
@@ -81,6 +81,9 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
@@ -81,16 +81,19 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
insert: function(item) {
if (item.type == 'item') {
var url = "{% url 'items:item_detail' item_pk=999999999999 %}".replace(999999999999, item.id);
} else if (item.type == 'world') {
- var url = "http://dungeonomics.com/locations/world/" + item.id + "/";
+ var url = "{% url 'locations:location_detail' world_pk=999999999999 %}".replace(999999999999, item.id);
} else if (item.type == 'location') {
- var url = "http://dungeonomics.com/locations/location/" + item.id + "/";
+ var url = "{% url 'locations:location_detail' location_pk=999999999999 %}".replace(999999999999, item.id);
} else {
var url = "{% url 'characters:monster_detail' monster_pk=999999999999 %}".replace(999999999999, item.id).replace(/monster/g, item.type);
}
@@ -81,16 +81,19 @@
browser_spellcheck: true,
paste_as_text: true,
fontsize_formats: "8pt 10pt 12pt 14pt 18pt 24pt 36pt",
+ relative_urls : false,
+ remove_script_host : false,
+ convert_urls : true,
mentions: {
source: taggable,
delay: 0,
insert: function(item) {
if (item.type == 'item') {
var url = "{% url 'items:item_detail' item_pk=999999999999 %}".replace(999999999999, item.id);
} else if (item.type == 'world') {
- var url = "http://dungeonomics.com/locations/world/" + item.id + "/";
+ var url = "{% url 'locations:location_detail' world_pk=999999999999 %}".replace(999999999999, item.id);
} else if (item.type == 'location') {
- var url = "http://dungeonomics.com/locations/location/" + item.id + "/";
+ var url = "{% url 'locations:location_detail' location_pk=999999999999 %}".replace(999999999999, item.id);
} else {
var url = "{% url 'characters:monster_detail' monster_pk=999999999999 %}".replace(999999999999, item.id).replace(/monster/g, item.type);
}

0 comments on commit 04e23f7

Please sign in to comment.