org.olat.core.commons.editor.htmleditor
Class HTMLEditorControllerWithoutFile

java.lang.Object
  extended by org.olat.core.gui.control.DefaultController
      extended by org.olat.core.gui.control.controller.BasicController
          extended by org.olat.core.gui.components.form.flexible.impl.FormBasicController
              extended by org.olat.core.commons.editor.htmleditor.HTMLEditorControllerWithoutFile
All Implemented Interfaces:
Controller, ControllerEventListener, Disposable

public class HTMLEditorControllerWithoutFile
extends FormBasicController

Description:
special case of HTMLEditorController without file this handles html content directly

Use the WYSIWYGFactory to create an instance

Initial Date: 28.05.2009

Author:
Roman Haag, roman@frentix.com, www.frentix.com

Field Summary
 
Fields inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
LAYOUT_CUSTOM, LAYOUT_DEFAULT, LAYOUT_HORIZONTAL, LAYOUT_VERTICAL
 
Method Summary
 java.lang.String getHTMLContent()
          returns actual value of textarea
 RichTextConfiguration getRichTextConfiguration()
          Get the rich text config object.
 void setCancelButtonEnabled(boolean buttonEnabled)
          Optional configuration option to display the cancel button below the HTML editor form.
 void setSaveButtonEnabled(boolean buttonEnabled)
          Optional configuration option to display the save button below the HTML editor form.
 
Methods inherited from class org.olat.core.gui.components.form.flexible.impl.FormBasicController
dispose, event
 
Methods inherited from class org.olat.core.gui.control.DefaultController
addControllerListener, addLoggingResourceable, dispatchEvent, dispatchEvent, getControllerCount, getInitialComponent, getUserActivityLogger, getWindowControlForDebug, isDisposed, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

setSaveButtonEnabled

public void setSaveButtonEnabled(boolean buttonEnabled)
Optional configuration option to display the save button below the HTML editor form. This will not disable the save button in the tinyMCE bar (if available). Default: true

Parameters:
buttonEnabled - true: show save button; false: hide save button

setCancelButtonEnabled

public void setCancelButtonEnabled(boolean buttonEnabled)
Optional configuration option to display the cancel button below the HTML editor form. This will not disable the cancel button in the tinyMCE bar (if available). Default: true

Parameters:
buttonEnabled - true: show cancel button; false: hide cancel button

getHTMLContent

public java.lang.String getHTMLContent()
returns actual value of textarea


getRichTextConfiguration

public RichTextConfiguration getRichTextConfiguration()
Get the rich text config object. This can be used to fine-tune the editor features, e.g. to enable additional buttons or to remove available buttons

Returns: