Support forums

Make the 'Template' property public

Last post 10-04-2003, 2:58 PM by risedev. 2 replies.
Sort Posts: Previous Next
  •  10-03-2003, 10:39 PM 8

    Make the 'Template' property public

    It appears that the "Template" property is a Write Only property.  I would like to do something like:

    editor = new CuteEditor
    editor.AutoConfigure = "Default"
    editor.Template = editor.Template & ",StyleDropDown"


  •  10-04-2003, 1:05 PM 10 in reply to 8

    Re: Make the 'Template' property public

    I will think about that.

    The way it works now is :

    When the Editor class initializes, I check the Template property is empty or not.

    If empty,  Editor will create the ToolBars based on several predefined sets of buttons (Check AutoConfigure property).

    If not empty,  Editor will create the ToolBars based on template value.

    So you can't use both property at the same time.



    Web Messenger: wysiwyg editor:
    asp wysiwyg html editor: Image Gallery:
    Live Support:

  •  10-04-2003, 2:58 PM 11 in reply to 10

    Re: Make the 'Template' property public

    I see...  So setting the AutoConfigure property does nothing UNTIL the class is initialized (I am assuming you mean when the Draw() method is called).

    I visualized that all the "AutoConfigure" property was doing was auto-populating the Template property with the pre-defined tool bars/buttons.

    For instance, setting:
    editor.AutoConfigure = "Minimal"
    was identical to setting:
    editor.Template = "Bold,Italic,Underline,Separator,JustifyLeft,JustifyCenter,JustifyRight"

    So, in the above example, if you wanted those options PLUS the StyleDropDown, you could say:
    editor.AutoConfigure = "Minimal"
    editor.Template = editor.Template & ",StyleDropDown"

    However, in the end - the feature doesn't really matter that much - it was supposed to save me from typing all the options (or cutting & pasting) all the options for the "Default" AutoConfigure option!

    (yes, I'm too lazy to even cut & paste!) 


View as RSS news feed in XML
Powered by Community Server (Commercial Edition), by Telligent Systems