PDA

View Full Version : RichTextBox 2.5 - How do you edit .xml format file?


sampson
11-19-2005, 06:45 AM
Discountasp has a RichTextBox component, which is a .Net wysiwyg editor for text input inside a form tag.

Does anyone have experience editing the format settings of the RichTextBox component at discountasp?

In a full version of this control the developer has access to a .xml file that controls the width of the control on the page. The default setting is width="100%", which is way too large for many input fields on a form!

At discountasp the .xml files are not accessible from the control panel. Has anyone found a way to modify the settings in the .xml file?

R.




Post Edited (sampson) : 11/19/2005 8:14:41 PM GMT

bruce
11-21-2005, 08:23 AM
which xml file are you referring to?

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

sampson
11-21-2005, 09:24 AM
The RTB download includes the file -RichTextBox.xml - in the bin folder on the web root.


This is the .xml file with the width and other html settings.


How do you change these settings when using the RTB component at dasp?


Richard

bruce
11-21-2005, 10:55 AM
there's no centralized copy of this file.

You can just upload your own version into the bin directory.

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)

sampson
11-21-2005, 11:45 AM
thanks for your message.


Tried changing width to 70% and uploading revised .xml file to bin folder at root and also in sub web.


Files in these bin folders don't seem to have any effect on the width of the control onthe page.


According to RTB the .xml file resides in the samebin folderas RichTextBox.dll


Are there any other bin folders that i should try?


Thanks again.


Richard





BTW ... here is a fragment of RichTextBox.xml with code for width is below:


<member name="P:RichTextBoxControl.RichTextBox.Width">


<summary>


Specifies the width of the RichTextBox control on the page.


</summary>


<example>


<code>myRichTextBox.Width = new Unit("70%");</code>


</example>


<seealso cref="P:RichTextBoxControl.RichTextBox.Height"/>


</member>

bruce
11-24-2005, 01:27 AM
hmm.. i am not really sure. I have not tested this myself.

I suggest you try post this question to richercomponent's forum at http://www.richercomponents.com/Forums/

Bruce

DiscountASP.NET
www.DiscountASP.NET (http://www.DiscountASP.NET)