Module: Goldberg::ContentPagesHelper

Defined in:
lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/content_pages_helper.rb

Instance Method Summary collapse

Instance Method Details

#fckeditor_text_area(replace_id) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# File 'lib/six-updater-web/vendor/plugins/goldberg/app/helpers/goldberg/content_pages_helper.rb', line 3

def fckeditor_text_area(replace_id)
return <<-END
#{ javascript_include_tag '/fckeditor/fckeditor.js' }
<script type="text/javascript">
window.onload = function() 
{
  var oFCKeditor = new FCKeditor('#{ replace_id }') ;
  oFCKeditor.Width = '100%' ;
  oFCKeditor.Height = 400 ;
  oFCKeditor.Config['LinkBrowserURL'] = '/fckeditor/editor/filemanager/browser/default/browser.html?Connector=/goldberg/content_pages/fck_filemanager' ;
  oFCKeditor.Config['ImageBrowserURL'] = '/fckeditor/editor/filemanager/browser/default/browser.html?Type=Image&Connector=/goldberg/content_pages/fck_filemanager' ;
  oFCKeditor.Config['FlashBrowserURL'] = '/fckeditor/editor/filemanager/browser/default/browser.html?Type=Flash&Connector=/goldberg/content_pages/fck_filemanager' ;
  oFCKeditor.Config['SpellChecker'] = 'SpellerPages' ;
  oFCKeditor.Config['SpellerPagesServerScript'] = '/goldberg/content_pages/fck_speller_pages' ;
  oFCKeditor.ReplaceTextarea() ;
}
</script>
END
end