1. Bogdan Savluk
  2. yii-elFinder
  3. Issues
Issue #2 resolved

No text on buttons in dialog (file upload example)

Ruslan Fadeev
created an issue

See screenshot HTML code of buttons: <button type="button" text="Cancel"></button> <button type="button" text="Ok"></button>

yii 1.1.11, php 5.2, php 5.3 latest chrome

upd: bug happens when using jquery 1.8

Comments (9)

  1. Ruslan Fadeev reporter

    No errors in JS console What configuration to send? Various servers with php 5.2 and php 5.3, all browsers. Language: ru My configs:

    		'clientScript' => array(
    			#'coreScriptPosition' => CClientScript::POS_END,
    			'packages' => array(
    				'jquery' => array(
    					'baseUrl' => '//ajax.googleapis.com/ajax/libs/jquery/1/',
    					'js' => array('jquery.min.js'),
    				),
    				'jquery.ui' => array(
    					'baseUrl' => '//ajax.googleapis.com/ajax/libs/jqueryui/1/',
    					'js' => array('jquery-ui.min.js'),
    				),
    			),
    		),
    		'widgetFactory' => array(
    			'widgets' => array(
    				'TinyMce' => array(
    					'language' => 'ru',
    					'fileManager' => array(
    						'class' => 'ext.elFinder.TinyMceElFinder',
    						'connectorRoute' => 'elfinder/connector',
    					),
    					'compressorRoute' => 'tinyMce/compressor',
    					//'spellcheckerRoute' => 'tinyMce/spellchecker',
    					'settings' => array(
    						'doctype'=> '<!DOCTYPE html>',
    						'body_class' => 'container',
    						'width'	 => '100%',
    						'plugins' => 'autolink,lists,pagebreak,layer,table,save,advhr,advimage,advlink,inlinepopups,insertdatetime,preview,media,searchreplace,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,advlist',
    						'theme_advanced_buttons1' => "save,|,|,undo,redo,|,|,pastetext,pasteword,|,|,attribs,styleprops,charmap,|,|,removeformat,visualaid,|,|,|,hr,advhr,|,|,fullscreen,code,|",
    						'theme_advanced_buttons2' => "styleselect,formatselect,fontselect,fontsizeselect,|,tablecontrols,|",
    						'theme_advanced_buttons3' => "bold,italic,underline,strikethrough,|,sub,sup,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,outdent,indent,blockquote,|,link,unlink,anchor,image,cleanup,|,media,|,forecolor,backcolor,|,insertdate,inserttime,|,preview,|,spellchecker",
    						'theme_advanced_buttons4' => '',
    						//'theme_advanced_buttons4' => "insertlayer,moveforward,movebackward,absolute,|,cite,abbr,acronym,del,ins|,visualchars,nonbreaking,template,pagebreak",
    						'theme_advanced_toolbar_location' => "top",
    						'theme_advanced_toolbar_align' => "left",
    						'external_link_list_url' => '/page/MceListUrl',
    						'relative_urls' => true,
    					),
    				),
    				'CJuiDatePicker' => array( // where <WidgetName> is the name of the JUI Widget (Tabs, DatePicker, etc.). Each CJuiWidget used must be declared
    					'scriptUrl' => '//ajax.googleapis.com/ajax/libs/jqueryui/1',
    					'i18nScriptFile' => 'i18n/jquery-ui-i18n.min.js',
    					#'theme' => JUI-THEME,
    					'themeUrl' => '//ajax.googleapis.com/ajax/libs/jqueryui/1/themes',
    				),
    			),
    		),
    

    PS: is it possible to write in Russian here? :)

  2. Ruslan Fadeev reporter

    A think right is:

    <button type="button">Cancel</button> <button type="button">Ok</button>
    

    not

    <button type="button" text="Cancel"></button> <button type="button" text="Ok"></button>
    
  3. Bogdan Savluk repo owner

    да, можно и на русском. насчет jquery 1.8 - пока-что у меня небыло времени посмотреть на изменения в этой версии, поетому я все еще остаюсь на 1.7.1 (что идет в поставке с Yii) и пока не очень спешу обновляться так-как довольно много кода надо будет проверить на совместимость.

  4. Log in to comment