Class TinyMCESettings

  • All Implemented Interfaces:
    Serializable

    public class TinyMCESettings
    extends Object
    implements Serializable
    Settings class for TinyMCE editor. User can add/remove buttons, enable/disable resizing, change positions, orientation, alignment and much more.
    Author:
    Iulian-Corneliu Costan (iulian.costan@gmail.com), Frank Bille Jensen (fbille@avaleo.net)
    See Also:
    Plugin, Button, Serialized Form
    • Method Detail

      • getDocumentBaseUrl

        public String getDocumentBaseUrl()
      • getCustomSettings

        public String[] getCustomSettings()
      • getBlockFormats

        public String getBlockFormats()
      • isReadOnly

        public boolean isReadOnly()
      • getResizing

        public Boolean getResizing()
      • setConvertUrls

        public TinyMCESettings setConvertUrls​(boolean convertUrls)
        This option enables you to control if TinyMCE is to be clever and restore urls to their original values. URLs are auto converted/messed up by default since the built in browser logic works this way, there is no way to get the real URL unless you store it away. If you set this option to false it will try to keep these URLs intact. This option is set to true by default that means URLs will be forced absolute or relative depending on the state of relative_urls.
        Parameters:
        convertUrls -
      • getConvertUrls

        public Boolean getConvertUrls()
      • setRemoveScriptHost

        public TinyMCESettings setRemoveScriptHost​(Boolean removeScriptHost)
        If this option is enabled the protocol and host part of the URLs returned from the MCFileManager will be removed. This option is only used if the relative_urls option is set to false. This option is set to true by default. URL:s will be returned in this format: "/somedir/somefile.htm" instead of the default mode: "http://www.somesite.com/somedir/somefile.htm".
        Parameters:
        removeScriptHost -
      • getRemoveScriptHost

        public Boolean getRemoveScriptHost()
      • setRelativeUrls

        public TinyMCESettings setRelativeUrls​(Boolean relativeUrls)
        If this option is set to true, all URLs returned from the MCFileManager will be relative from the specified document_base_url. If it's set to false all URLs will be converted to absolute URLs. This option is set to true by default.
        Parameters:
        relativeUrls -
      • getRelativeUrls

        public Boolean getRelativeUrls()
      • toJavaScript

        public String toJavaScript()
      • getMenuBar

        public Boolean getMenuBar()
      • appendSingleConfigElement

        public static void appendSingleConfigElement​(StringBuffer buffer,
                                                     String name,
                                                     String value)
      • appendSingleConfigElement

        public static void appendSingleConfigElement​(StringBuffer buffer,
                                                     String name,
                                                     String value,
                                                     boolean wrapValueWithQuotes)
      • getInLine

        public Boolean getInLine()