This is a migrated thread and some comments may be shown as answers.

Generating HTML snippets rather than entire documents

3 Answers 99 Views
RichTextBox (obsolete as of Q3 2014 SP1)
This is a migrated thread and some comments may be shown as answers.
Martin
Top achievements
Rank 1
Martin asked on 16 Nov 2011, 03:40 PM
Hi,

We're looking at using the RichTextBox control to generate HTML elements that will appear within a page (for example, to specify a rich text product specification that will appear as part of a product information page).

When HTML is exported from the control, it is exported with large quantities of header markup and additional tags that are unnecessary for our purposes.  Unfortunately, since the styles are contained within the header section, simply stripping out this superfluous content is not possible without losing the text formatting.

Is it possible to configure the HTML provider to generate in-line styles so the formatting will remain consistent when used as part of any HTML document?  Additionally, is it possible to avoid additional markup (such as the classing of paragraphs and spans) when no modifications are being made to the styles in order to avoid the quantity of text generated?

I have the feeling the control is simply unsuitable for our needs, but please let me know if anyone has a solution to this.

Thanks.

3 Answers, 1 is accepted

Sort by
0
Jack
Telerik team
answered on 21 Nov 2011, 10:42 AM
Hello Martin Clark,

Thank you for contacting us. Currently, it is not possible to control the HTML generated when exporting RadRichTextBox. However, this feature seems powerful and I added it in our issue tracking system. We will consider implementing it in a future version. We will increase its priority when more people request the same. I updated your Telerik points accordingly.

Should you have any other questions, do not hesitate to ask.
 
All the best,
Jack
the Telerik team

Q2’11 SP1 of RadControls for WinForms is available for download (see what's new); also available is the Q3'11 Roadmap for Telerik Windows Forms controls.

0
Mydatafactory
Top achievements
Rank 1
answered on 11 Jan 2012, 12:46 PM
Hi,

I would like to request the same. In our case we also want to let the user edit HTML snippets, rather than complete documents. Also no additional markup should be added\applied to the snippet. As it is now, the control cannot be used by us.

Thanks,
Jeroen.
0
Jack
Telerik team
answered on 13 Jan 2012, 02:11 PM
Hello A. Bennen,

Thank you for your feedback. Currently, this feature is not scheduled and I cannot give you time frame when it will be implemented. However, if more customers request the same, we may raise its priority. You can vote for this feature by following this link.
 
Kind regards,
Jack
the Telerik team

SP1 of Q3’11 of RadControls for WinForms is available for download (see what's new).

Tags
RichTextBox (obsolete as of Q3 2014 SP1)
Asked by
Martin
Top achievements
Rank 1
Answers by
Jack
Telerik team
Mydatafactory
Top achievements
Rank 1
Share this question
or