PHP 클래스 Prado\Web\UI\WebControls\THtmlArea

THtmlArea wraps the visual editting functionalities provided by the TinyMCE project {@link http://tinymce.moxiecode.com/}. THtmlArea displays a WYSIWYG text area on the Web page for user input in the HTML format. The text displayed in the THtmlArea component is specified or determined by using the Text property. To enable the visual editting on the client side, set the property EnableVisualEdit to true (which is default value). To set the size of the editor when the visual editting is enabled, set the Width and Height properties instead of Columns and Rows because the latter has no meaning under the situation. The default editor gives only the basic tool bar. To change or add additional tool bars, use the {@link setOptions Options} property to add additional editor options with each options on a new line. See http://tinymce.moxiecode.com/tinymce/docs/index.html for a list of options. The options can be change/added as shown in the following example. plugins : "contextmenu,paste" language : "zh_cn"
부터: 3.0
상속: extends TTextBox
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__construct ( ) Constructor.
getAutoPostBack ( ) : boolean
getAvailablePlugins ( ) : array Returns a list of plugins to be loaded.
getAvailableThemes ( ) : array
getCulture ( ) : string Gets the current culture.
getCustomPluginPath ( ) : string
getEnableCompression ( ) : boolean
getEnableVisualEdit ( ) : boolean
getOptions ( ) : string Gets the list of options for the WYSIWYG (TinyMCE) editor
getTextMode ( ) : string Overrides the parent implementation.
setCulture ( $value ) Sets the culture/language for the html area
setCustomPluginPath ( $value )
setEnableCompression ( $value )
setEnableVisualEdit ( $value ) Sets whether to show WYSIWYG text editor.
setOptions ( $value ) Sets the list of options for the WYSIWYG (TinyMCE) editor
setTextMode ( $value ) Overrides the parent implementation.

보호된 메소드들

메소드 설명
addAttributesToRender ( $writer ) Adds attribute name-value pairs to renderer.
copyCustomPlugins ( $url )
getClientClassName ( ) : string Gets the name of the javascript class responsible for performing postback for this control.
getEditorOptions ( ) : array Default editor options gives basic tool bar only.
getLanguageSuffix ( $culture ) : string
getScriptDeploymentPath ( ) : string Gets the editor script base URL by publishing the tarred source via TTarAssetManager.
getScriptUrl ( ) : string
loadJavascriptLibrary ( )
parseEditorOptions ( $string ) : array Parse additional options set in the Options property.
registerEditorClientScript ( $writer ) Registers the editor javascript file and code to initialize the editor.

메소드 상세

__construct() 공개 메소드

Sets default width and height.
public __construct ( )

addAttributesToRender() 보호된 메소드

This method overrides the parent implementation by registering additional javacript code.
protected addAttributesToRender ( $writer )

copyCustomPlugins() 보호된 메소드

protected copyCustomPlugins ( $url )

getAutoPostBack() 공개 메소드

public getAutoPostBack ( ) : boolean
리턴 boolean whether change of the content should cause postback. Return false if EnableVisualEdit is true.

getAvailablePlugins() 공개 메소드

Override this method to customize.
public getAvailablePlugins ( ) : array
리턴 array list of plugins to be loaded

getAvailableThemes() 공개 메소드

public getAvailableThemes ( ) : array
리턴 array list of available themese

getClientClassName() 보호된 메소드

This method overrides the parent implementation.
protected getClientClassName ( ) : string
리턴 string the javascript class name

getCulture() 공개 메소드

Gets the current culture.
public getCulture ( ) : string
리턴 string current culture, e.g. en_AU.

getCustomPluginPath() 공개 메소드

public getCustomPluginPath ( ) : string
리턴 string path to custom plugins to be copied.

getEditorOptions() 보호된 메소드

Default editor options gives basic tool bar only.
protected getEditorOptions ( ) : array
리턴 array editor initialization options.

getEnableCompression() 공개 메소드

사용 중단: since 4.0
public getEnableCompression ( ) : boolean
리턴 boolean enable compression of the javascript files, default is false.

getEnableVisualEdit() 공개 메소드

public getEnableVisualEdit ( ) : boolean
리턴 boolean whether to show WYSIWYG text editor. Defaults to true.

getLanguageSuffix() 보호된 메소드

protected getLanguageSuffix ( $culture ) : string
리턴 string localized editor interface language extension.

getOptions() 공개 메소드

Gets the list of options for the WYSIWYG (TinyMCE) editor
또한 보기: http://tinymce.moxiecode.com/tinymce/docs/index.html
public getOptions ( ) : string
리턴 string options

getScriptDeploymentPath() 보호된 메소드

Gets the editor script base URL by publishing the tarred source via TTarAssetManager.
protected getScriptDeploymentPath ( ) : string
리턴 string URL base path to the published editor script

getScriptUrl() 보호된 메소드

protected getScriptUrl ( ) : string
리턴 string editor script URL.

getTextMode() 공개 메소드

TextMode for THtmlArea control is always 'MultiLine'
public getTextMode ( ) : string
리턴 string the behavior mode of the THtmlArea component.

loadJavascriptLibrary() 보호된 메소드

protected loadJavascriptLibrary ( )

parseEditorOptions() 보호된 메소드

Parse additional options set in the Options property.
protected parseEditorOptions ( $string ) : array
리턴 array additional custom options

registerEditorClientScript() 보호된 메소드

Registers the editor javascript file and code to initialize the editor.
protected registerEditorClientScript ( $writer )

setCulture() 공개 메소드

Sets the culture/language for the html area
public setCulture ( $value )

setCustomPluginPath() 공개 메소드

public setCustomPluginPath ( $value )

setEnableCompression() 공개 메소드

사용 중단: since 4.0
public setEnableCompression ( $value )

setEnableVisualEdit() 공개 메소드

Sets whether to show WYSIWYG text editor.
public setEnableVisualEdit ( $value )

setOptions() 공개 메소드

Sets the list of options for the WYSIWYG (TinyMCE) editor
또한 보기: http://tinymce.moxiecode.com/tinymce/docs/index.html
public setOptions ( $value )

setTextMode() 공개 메소드

TextMode for THtmlArea is always 'MultiLine' and cannot be changed to others.
public setTextMode ( $value )