Few basic questions about the new RTE

Last post 09-17-2012, 4:29 PM by Adam. 2 replies.
Sort Posts: Previous Next
  •  09-17-2012, 9:40 AM 74661

    Few basic questions about the new RTE

    Just beginning to work with the new RTE and have a few questions as there seems to be a lack of documentation.

     

    1) How do I set the max file upload to be different for Image and Files?

    2) How do you set the old 'EditorWysiwygModeCss' so that I can apply a CSS sheet to the text that you are editing

    3) How do I change the default directory 'richtexteditor'

    4) How to you set MaintainAspectRatioWhenDraggingImage

    5) What now happening with the 'EmptyAlternateText'

     

    Great work on the software much improved.

  •  09-17-2012, 2:08 PM 74665 in reply to 74661

    Re: Few basic questions about the new RTE

    Hi Daniel,

     

    1) How do I set the max file upload to be different for Image and Files?

     

    Please open file "richtexteditor\config\default.config", you can set the "MaxFileSize" for the special "dialog" under its own section.

     

    <category for="Document">
    <security name="MaxFileSize">2048</security><!-- This setting applies "Document
    " dialog only.-->
    
    </category>
    
    <category for="Gallery,Image">
    <security name="MaxFileSize">300</security><!-- This setting applies "Gallery","Image" dialogs only.-->
    
    </category>

    2) How do you set the old 'EditorWysiwygModeCss' so that I can appy a CSS sheet to the text that you are editing 

     

    Use new property "ContentCss"

     

     <RTE:Editor ID="Editor1" runat="server" ContentCss="~/example.css"/>


    3) How do I change the default directory 'richtexteditor'

     

    Please set it like the code below. This property has a small problem in the control target, so please set it at code-behind.

     

      protected override void OnInit(EventArgs e)
        {
            Editor1.ClientFolder = Editor1.ProcessWebPath("~/myfolder/");
            base.OnInit(e);
        }


    4) How to you set MaintainAspectRatioWhenDraggingImage

     

    The new version has not this property for now,we will add it soon.


    5) What now happening with the 'EmptyAlternateText'
     

    The new version has not this property for now,we will add it soon.

     

    Regards,

     

    Ken 

  •  09-17-2012, 4:29 PM 74669 in reply to 74661

    Re: Few basic questions about the new RTE

    >>5) What now happening with the 'EmptyAlternateText'

     

    The property is removed in the new version.

     

    By default, an empty alt is added automatically when inserting an image without specifying alt attribute.

     

    If you want to change this behavior, please open the following page:

     

    richtexteditor\dialogs\insertimage.xml

     

    And remove the following code: 

     

    1. if(option.targetnode.GetAttribute("alt")==null)  
    2.      option.targetnode.SetAttribute("alt","");  
     


    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

View as RSS news feed in XML