<{if $moduleConfig.wysiwyg_editor && $currentUser.user_perm.allow_html}>
  <{if $moduleConfig.wysiwyg_editor eq 1 }>
<{* FCK editor *}>
		<{if $common_fck_installed}>
			
		<{else}>
			<{if $entry.dohtml == "1" && $entry.doxcode!="1" && $entry.dobr!="1" }>
				<{php}>
					$_makescript = & xoops_getmodulehandler('makescript','myckeditor', true);
					$params = array('id'=>'contents','editor'=>'html','myckeditor'=>true);
					if (@is_object( $_makescript )){
						$this->assign( 'common_myck_installed' , true ) ;
						$_makescript->makeheader($params);
					}
				<{/php}>
				
			<{else}>
				<{php}>
					$_makescript = & xoops_getmodulehandler('makescript','myckeditor', true);
					$params = array('id'=>'contents','editor'=>'bbcode','myckeditor'=>true);
					if (@is_object( $_makescript )){
						$this->assign( 'common_myck_installed' , true ) ;
						$_makescript->makeheader($params);
					}
				<{/php}>
				
				
				<{xoopsdhtmltarea name=contents cols=65 rows=20 value=$entry.contents4edit pre_style="display:none;" post_style="display:none;"}>
			<{/if}>
		<{/if}>
  <{else}>
  <{* QuickTag *}>
  <{/if}>
<{else}>
<{xoopsdhtmltarea name=contents cols=65 rows=10 value=$entry.contents4edit pre_style="display:none;" post_style="display:none;"}>
<{/if}>
<{*   seperator   *}>