summaryrefslogtreecommitdiff
path: root/objectapp/templates/admin/objectapp/gbobject/wymeditor.js
diff options
context:
space:
mode:
Diffstat (limited to 'objectapp/templates/admin/objectapp/gbobject/wymeditor.js')
-rw-r--r--objectapp/templates/admin/objectapp/gbobject/wymeditor.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/objectapp/templates/admin/objectapp/gbobject/wymeditor.js b/objectapp/templates/admin/objectapp/gbobject/wymeditor.js
new file mode 100644
index 0000000..f67218c
--- /dev/null
+++ b/objectapp/templates/admin/objectapp/gbobject/wymeditor.js
@@ -0,0 +1,10 @@
+$(document).ready(function() {
+ $("#id_content").wymeditor({
+ skin: "django", lang: "{{ LANGUAGE_CODE }}",
+ stylesheet: "{{ STATIC_URL }}objectapp/css/wymeditor_styles.css",
+ updateSelector: "input:submit", updateEvent: "click",
+ postInit: function(wym) {
+ wym.hovertools();
+ }
+ });
+ });