<?php echo $this->form;

$D = $this->row->getDomain();

///$D = Zend_Registry::get('APP_DOMAIN');
$tplName = $D->template;

Zend_Debug::dump($tplName,'TEST');

$Tinymce_content_css = $this->baseUrl('/resources/layouts/plublic/css/screen.css');
$Tinymce_content_css.= ','.$this->baseUrl('/resources/layouts/plublic/css/tinymce.css');

if($tplpaths = Alfred_Hod::options('params/content/tinymce/templatepath/'.$tplName)){
    $Tinymce_content_css = $this->baseUrl( $tplpaths .'css/screen.css' );
    $Tinymce_content_css.= ','.$this->baseUrl($tplpaths .'css/tinymce.css');
    
        
}elseif($tplpaths = Alfred_Hod::options('params/content/tinymce/templatepath/default')){
    $Tinymce_content_css = $this->baseUrl( $tplpaths.'css/screen.css' );
    $Tinymce_content_css.= ','.$this->baseUrl($tplpaths .'css/tinymce.css');
   
}

$sciptVars =  "var previewUrl ='". $this->url(array('action'=>'preview'),'content-admin-pages',true) ."';";
            //.'var Tinymce_content_css = "'. $Tinymce_content_css .'";' . PHP_EOL;

$this->Tinymce_content_css = $Tinymce_content_css;

$this->inlineScript()
	->appendFile('/resources/application/modules/content/pages-crud.js')
	//->appendScript( $sciptVars )
	;
$this->headScript()
	->appendScript( $sciptVars );
