palio.modules
Class Editor

java.lang.Object
  extended by palio.modules.core.Module
      extended by palio.modules.Editor
All Implemented Interfaces:
palio.modules.core.CurrentModuleDataKeys

public class Editor
extends palio.modules.core.Module

Moduł Editor służy do integracji jPalio z edytorem TinyMCE.
Dokumentacja edytora znajduje się na stronie http://wiki.moxiecode.com/index.php/TinyMCE:Index.
Date: 2005-12-04 Time: 00:44:51

Author:
Krzysztof Madyniak (kmadyniak@torn.com.pl)

Field Summary
 
Fields inherited from interface palio.modules.core.CurrentModuleDataKeys
DESIGNER_ACTIONS_BUFFER, HTML_FORM_BUILDER, HTML_MAP_BUILDER, HTML_MENU_BUILDER, HTML_TOOLTIPS_BUFFER, ITEXT_DOCUMENT, MAIL_MESSAGE, XLS_DOCUMENT, XML_DOCUMENT
 
Constructor Summary
Editor(palio.Instance instance)
           
 
Method Summary
static java.lang.String getEditorScriptUrl()
          Returns URL to TinyMCE editor script included in jPalioEditor.jar
 java.lang.String getVersion()
          Returns the module version
 void init(palio.compiler.PalioCode configCode)
          Inicjalizuje edytor.
 
Methods inherited from class palio.modules.core.Module
getConfigParam, getDescription, getModuleTranslation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Editor

public Editor(palio.Instance instance)
Method Detail

getVersion

public java.lang.String getVersion()
Description copied from class: palio.modules.core.Module
Returns the module version

Specified by:
getVersion in class palio.modules.core.Module

init

public final void init(palio.compiler.PalioCode configCode)
                throws palio.PalioException
Inicjalizuje edytor. Metodę należy wywoływać w sekcji <HEAD> dokumentu HTML. W kodzie konfiguracyjnym należy umieścić wpisy zgodne ze specyfikacją konfiguracji edytora TinyMCE.
Przykładowe wywołanie:
 $editor.init({
  mode : "textareas",
  theme : "advanced",
  force_br_newlines : true,
  force_p_newlines : false,
  plugins : "save,print,inlinepopups",
  theme_advanced_toolbar_location : "top",
  theme_advanced_toolbar_align : "left",
  theme_advanced_buttons1_add_before : "save,print,separator",
  theme_advanced_buttons1_add : "separator,forecolor,backcolor"
 })
 

Parameters:
configCode - kod konfiguracyjny
Throws:
palio.PalioException

getEditorScriptUrl

public static java.lang.String getEditorScriptUrl()
Returns URL to TinyMCE editor script included in jPalioEditor.jar

Returns:
URL to TinyMCE editor script