diff options
-rw-r--r-- | askbot/media/js/tinymce/plugins/askbot_attachment/editor_plugin.js | 2 | ||||
-rw-r--r-- | askbot/startup_procedures.py | 5 | ||||
-rw-r--r-- | askbot/views/writers.py | 3 |
3 files changed, 7 insertions, 3 deletions
diff --git a/askbot/media/js/tinymce/plugins/askbot_attachment/editor_plugin.js b/askbot/media/js/tinymce/plugins/askbot_attachment/editor_plugin.js index 717a4716..d1ef13b4 100644 --- a/askbot/media/js/tinymce/plugins/askbot_attachment/editor_plugin.js +++ b/askbot/media/js/tinymce/plugins/askbot_attachment/editor_plugin.js @@ -14,7 +14,7 @@ if (description) {
content = content + '" title="' + description;
}
- content = content + '"/>';
+ content = content + '">file attached</a>';
tinyMCE.activeEditor.focus();
if (document.selection) {
diff --git a/askbot/startup_procedures.py b/askbot/startup_procedures.py index 105500b8..087fc957 100644 --- a/askbot/startup_procedures.py +++ b/askbot/startup_procedures.py @@ -607,7 +607,8 @@ def test_tinymce(): # 'django.views.static.serve', # {'document_root': static_root} # ), - #3) disable `compressor_on` check above + #3) set `TINYMCE_COMPRESSOR = False` + #4) set DEBUG = False #then - tinymce compressing will be disabled and it will #be possible to debug custom tinymce plugins that are used with askbot @@ -685,7 +686,7 @@ def run_startup_tests(): test_middleware() test_celery() #test_csrf_cookie_domain() - test_tinymce() + #test_tinymce() test_staticfiles() test_new_skins() test_longerusername() diff --git a/askbot/views/writers.py b/askbot/views/writers.py index 4024b4b0..844a3ead 100644 --- a/askbot/views/writers.py +++ b/askbot/views/writers.py @@ -212,6 +212,9 @@ def ask(request):#view used to ask a new question must login/register in order for the question go be shown """ form = forms.AskForm(request.REQUEST) + print '=====================================' + print request.REQUEST.get('text', '') + print '=====================================' if request.method == 'POST': if form.is_valid(): timestamp = datetime.datetime.now() |