Skip to content
Browse files

re-enabled mistakenly turned off tinymce startup tests

  • Loading branch information...
1 parent a238550 commit 9eacc32fd06839d7bc9ec7052cfc12b01e8d260a @evgenyfadeev evgenyfadeev committed Oct 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 askbot/startup_procedures.py
View
2 askbot/startup_procedures.py
@@ -686,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()

3 comments on commit 9eacc32

@jancespivo

it is not functional

@evgenyfadeev
ASKBOT member

What do you mean, could you be more specific, please?

@jancespivo

there are some old tests, which dont correspond with default settings from setup_templates, so it fails:

************************
*                      *
*   Askbot self-test   *
*                      *
************************

Please add the tynymce editor configuration to your settings.py file.
Please attend to the following:

1) add 'tinymce', to the INSTALLED_APPS

2) add to TINYMCE_DEFAULT_CONFIG
'convert_urls': False,

3) add line: TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, 'default/media/js/tinymce/')
Note: we have moved files from "common" into "default"

4) add line: TINYMCE_URL = STATIC_URL + 'default/media/js/tinymce/'
Note: we have moved files from "common" into "default"

You might want to use this sample configuration as template:

TINYMCE_COMPRESSOR = True
TINYMCE_SPELLCHECKER = False
TINYMCE_JS_ROOT = os.path.join(STATIC_ROOT, 'default/media/js/tinymce/')
TINYMCE_URL = STATIC_URL + 'default/media/js/tinymce/'
TINYMCE_DEFAULT_CONFIG = {
    'convert_urls': False,
    'plugins': 'askbot_imageuploader,askbot_attachment',
    'theme': 'advanced',
    'content_css': STATIC_URL + 'default/media/style/tinymce/content.css',
    'force_br_newlines': True,
    'force_p_newlines': False,
    'forced_root_block': '',
    'mode' : 'textareas',
    'oninit': "function(){ tinyMCE.activeEditor.setContent(askbot['data']['editorContent'] || ''); }",
    'plugins': 'askbot_imageuploader,askbot_attachment',
    'theme_advanced_toolbar_location' : 'top',
    'theme_advanced_toolbar_align': 'left',
    'theme_advanced_buttons1': 'bold,italic,underline,|,bullist,numlist,|,undo,redo,|,link,unlink,askbot_imageuploader,askbot_attachment',
    'theme_advanced_buttons2': '',
    'theme_advanced_buttons3' : '',
    'theme_advanced_path': False,
    'theme_advanced_resizing': True,
    'theme_advanced_resize_horizontal': False,
    'theme_advanced_statusbar_location': 'bottom',
    'width': '723',
    'height': '250'
}
Please sign in to comment.
Something went wrong with that request. Please try again.