Exemple #1
0
 * http://tinymce.moxiecode.com/wiki.php/Configuration
 */
elgg.tinymce.init = function() {

	$('.tinymce-toggle-editor').live('click', elgg.tinymce.toggleEditor);

	$('.elgg-input-longtext').parents('form').submit(function() {
		tinyMCE.triggerSave();
	});

	tinyMCE.init({
		mode : "specific_textareas",
		editor_selector : "elgg-input-longtext",
		theme : "advanced",
		language : "<?php 
echo tinymce_get_site_language();
?>
",
                plugins : "jbimages,autolink,lists,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,wordcount,advlist,autosave",
		
		relative_urls : false,
		remove_script_host : false,
		document_base_url : elgg.config.wwwroot,
		 theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,|,justifyfull,formatselect,fontselect,fontsizeselect",
                 theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,|,undo,redo,|,link,unlink,anchor",
                 theme_advanced_buttons3 : "jbimages,|,insertlayer,moveforward,movebackward,absolute,|,styleprops,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,template",
		theme_advanced_buttons4 : "",
                theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
Exemple #2
0
<?php

/**
 * Prompt the user to install a tinymce language after activating
 */
if (elgg_get_config('language') != tinymce_get_site_language()) {
    $message = elgg_echo('tinymce:lang_notice', array(elgg_echo(elgg_get_config('language')), "http://www.tinymce.com/i18n/index.php?ctrl=lang&act=download", elgg_get_plugins_path() . "tinymce/vendor/tinymce/jscripts/tiny_mce/", elgg_add_action_tokens_to_url(elgg_normalize_url('action/admin/site/flush_cache'))));
    elgg_add_admin_notice('tinymce_admin_notice_no_lang', $message);
}