Changeset 967 for trunk/engine/modules/text/Text.class.php
- Timestamp:
- 07/10/10 11:21:51 (19 months ago)
- Files:
-
- 1 modified
-
trunk/engine/modules/text/Text.class.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/engine/modules/text/Text.class.php
r952 r967 57 57 // Разрешённые параметры тегов 58 58 $this->oJevix->cfgAllowTagParams('img', array('src', 'alt' => '#text', 'title', 'align' => array('right', 'left', 'center'), 'width' => '#int', 'height' => '#int', 'hspace' => '#int', 'vspace' => '#int')); 59 $this->oJevix->cfgAllowTagParams('a', array('title', 'href', 'rel' ));59 $this->oJevix->cfgAllowTagParams('a', array('title', 'href', 'rel' => '#text', 'name' => '#text')); 60 60 $this->oJevix->cfgAllowTagParams('cut', array('name')); 61 61 $this->oJevix->cfgAllowTagParams('object', array('width' => '#int', 'height' => '#int', 'data' => '#link', 'type' => '#text')); … … 64 64 // Параметры тегов являющиеся обязательными 65 65 $this->oJevix->cfgSetTagParamsRequired('img', 'src'); 66 $this->oJevix->cfgSetTagParamsRequired('a', 'href');66 //$this->oJevix->cfgSetTagParamsRequired('a', 'href'); 67 67 // Теги которые необходимо вырезать из текста вместе с контентом 68 68 $this->oJevix->cfgSetTagCutWithContent(array('script', 'iframe', 'style')); … … 73 73 $this->oJevix->cfgSetTagChilds('object', 'embed', false, false); 74 74 // Если нужно оставлять пустые не короткие теги 75 $this->oJevix->cfgSetTagIsEmpty(array('param','embed' ));75 $this->oJevix->cfgSetTagIsEmpty(array('param','embed','a')); 76 76 // Не нужна авто-расстановка <br> 77 77 $this->oJevix->cfgSetTagNoAutoBr(array('ul','ol','object')); … … 205 205 $aMatch[3]=str_replace('[<n>]',"\r\n",$aMatch[3]); 206 206 $sTextShort=$aMatch[1]; 207 $sTextNew=$aMatch[1].' '.$aMatch[3];207 $sTextNew=$aMatch[1].' <a name="cut"></a> '.$aMatch[3]; 208 208 if (preg_match('/^\s*name\s*=\s*"(.+)"\s*\/?$/Ui',$aMatch[2],$aMatchCut)) { 209 209 $sTextCut=trim($aMatchCut[1]);
