HTML and Preview modes shrink

Last post 02-23-2006, 9:59 AM by bobjohnson. 4 replies.
Sort Posts: Previous Next
  •  02-21-2006, 7:59 PM 16252

    HTML and Preview modes shrink

    I've got CuteEditor 5.0 running on DNN 3.22 using all default settings so I can get comfortable with how everything works.  So far so good.
     
    Normal mode - no problems
    HTML mode - the screen gets shrunk to a third of its normal size
    Preview mode - the screen gets shrunk to a third of its normal size
     
    This happens when logged in as portal Administrator or as a portal Registered User.
     
    Is there a setting to ensure that the HTML and Preview modes stay maximum width and not shrink?
  •  02-22-2006, 11:03 AM 16285 in reply to 16252

    Re: HTML and Preview modes shrink

    Update...
     
    If I change the UseDNNDefaultWidth="true" setting to false within web.config, the HTML and Preview modes do not shrink. 
     
    However, what happens now is that the CEHtmlEditor window expands beyond the border of the skin (using the DNN default skins). 
     
    When the setting is true, the source code width=100% and height=700
     
    When the setting is false, the source code width=762px and height=700
     
    762 is too wide for my use.  Where is CE getting this setting from and how do I set it?
  •  02-22-2006, 5:12 PM 16304 in reply to 16285

    Re: HTML and Preview modes shrink

    If you change UseDNNDefaultWidth="true" setting to false, CE will use the default width which is 762.
     
    Please open the CEHtmlEditorProvider.vb and change the following code:
     
         Public Overrides Property Width() As System.Web.UI.WebControls.Unit
                Get
                    Width = cntlCE.Width
                End Get
                Set(ByVal Value As System.Web.UI.WebControls.Unit)
                    If _UseDNNDefaultWidth = True Then
                        cntlCE.Width = Value
                    End If
                End Set
            End Property


     
         Public Overrides Property Width() As System.Web.UI.WebControls.Unit
                Get
                    Width = cntlCE.Width
                End Get
                Set(ByVal Value As System.Web.UI.WebControls.Unit)
                    If _UseDNNDefaultWidth = True Then
                        cntlCE.Width = Value
                    Else
                        cntlCE.Width = 500

                    End If
                End Set
            End Property

    Then recompile the provider project.

    Hope it helps.
     
    Let me know if you have any further questions.
     

     

    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

  •  02-22-2006, 8:05 PM 16316 in reply to 16304

    Re: HTML and Preview modes shrink

    Thanks for the tip.  Unfortunately it did not work.  The text editor is expanding super wide.

    However, not all is lost.  It turns out the problem is not with all of the modules.  Most modules that call for the text editor works just fine.  I've isolated the issue with a particular module that is a non-core module (didn't come with the original DNN install package).
     
    I'll post an update later.
  •  02-23-2006, 9:59 AM 16330 in reply to 16316

    Re: HTML and Preview modes shrink

    Turns out the vendor's module has a resizing setting that seems to have taken care of the mishap.
View as RSS news feed in XML