diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8311786 --- /dev/null +++ b/.gitignore @@ -0,0 +1,15 @@ +# FILES IGNORED BY GIT + +# OS generated files +.DS_Store +.DS_Store? +._* +.Spotlight-V100 +.Trashes +ehthumbs.db +Thumbs.db + +# PHPStorm files +.idea/ +# Cache files +cms/cache/* diff --git a/cms/templates/admin/main.tpl b/cms/templates/admin/main.tpl index 7d8085f..b6b5ae8 100644 --- a/cms/templates/admin/main.tpl +++ b/cms/templates/admin/main.tpl @@ -49,7 +49,40 @@ - + + + + + + + + + + diff --git a/cms/templates/admin/subtemplates/edit.inc.tpl b/cms/templates/admin/subtemplates/edit.inc.tpl index 9686e83..cf20cbd 100644 --- a/cms/templates/admin/subtemplates/edit.inc.tpl +++ b/cms/templates/admin/subtemplates/edit.inc.tpl @@ -88,15 +88,15 @@
diff --git a/static/js/admin_backend.js b/static/js/admin_backend.js index d46eb1d..33cb656 100644 --- a/static/js/admin_backend.js +++ b/static/js/admin_backend.js @@ -1,16 +1,6 @@ $.fn.extend({ insertAtCaret: function(myValue){ -var obj; -if( typeof this[0].name !='undefined' ) obj = this[0]; -else obj = this; -var startPos = obj.selectionStart; -var endPos = obj.selectionEnd; -var scrollTop = obj.scrollTop; -obj.value = obj.value.substring(0, startPos)+myValue+obj.value.substring(endPos,obj.value.length); -obj.focus(); -obj.selectionStart = startPos + myValue.length; -obj.selectionEnd = startPos + myValue.length; -obj.scrollTop = scrollTop; +editor.insert(myValue); } });