Any integration with RichtextEditor?

6 posts, 0 answers
  1. Edward
    Edward avatar
    83 posts
    Member since:
    Feb 2011

    Posted 29 Aug 2012 Link to this post

    I am just wondering if this can be integrated with richtexteditor?  
  2. Zarko
    Admin
    Zarko avatar
    755 posts

    Posted 31 Aug 2012 Link to this post

    Hello Edward,
    Could you pleas e clarify what exactly do you mean by "integrated with richtexteditor" ? Do you want to place a RadRIchTextBox inside a RadDiagramShape or the other way around ?
    Either way you should not have problems to do it with something like this:
    <telerik:RadRichTextBox>
        <telerik:RadDocument>
            <telerik:Section>
                <telerik:Paragraph>
                    <telerik:InlineUIContainer>
                        <telerik:RadDiagram Width="1000" Height="600">
                            <telerik:RadDiagramShape Geometry="{telerik:ArrowShape ShapeType=DoubleArrow4}" Position="100 100" />
                            <telerik:RadDiagramShape Geometry="{telerik:CommonShape ShapeType=TriangleShape}" Position="300 100" />
                        </telerik:RadDiagram>
                    </telerik:InlineUIContainer>
                </telerik:Paragraph>
            </telerik:Section>
        </telerik:RadDocument>
    </telerik:RadRichTextBox>
    Or something like this for RRTB inside a RadDiagramShape
    <telerik:RadDiagram>
        <telerik:RadDiagramShape Geometry="{telerik:CommonShape ShapeType=OctagonShape}" Position="100 100">
            <telerik:RadRichTextBox>
                <telerik:RadDocument>
                    <telerik:Section>
                        <telerik:Paragraph>
                            <telerik:Span Text="This is some sample text"></telerik:Span>
                        </telerik:Paragraph>
                    </telerik:Section>
                </telerik:RadDocument>
            </telerik:RadRichTextBox>
        </telerik:RadDiagramShape>
        <telerik:RadDiagramShape Geometry="{telerik:CommonShape ShapeType=TriangleShape}" Position="300 100" />
    </telerik:RadDiagram>
    If you have further questions please feel free to ask.

    Regards,
    Zarko
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. DevCraft banner
  4. Jaypee
    Jaypee avatar
    13 posts
    Member since:
    Jun 2013

    Posted 13 Jun 2013 Link to this post

    Is it possible to have functionality like Insert > RadDiagram

    -a rad diagram object appears in the rich text box.

    -the user can edit the diagram inside the rich text box.

    -the user can save the rich text with the diagram. open it in ms word should be ok.
  5. Boby
    Admin
    Boby avatar
    595 posts

    Posted 13 Jun 2013 Link to this post

    Hello Jaypee,

    RadDiagram integration with RadRichTextBox is in our to-do list, but it has not been scheduled yet, and as of now we are not sure if and when this will be implemented.

    You have two options for inserting RadDiagram in RadDocument, but we are not sure is they would satisfy your requirements:
    • insert as Image - you may come with solution that converts the RadDiagram object to image and insert it in the RadDocument with the InsertImage method of RadRichTextBox/RadDocumentEditor. You won't be able to edit the inserted diagram tough.
    • insert the RadDiagram object as InlineUIContainer. This way RadDiagram will be inserted as is, preserving the object interactivity, but you won't be able to preserve document structure - e.g. saving and then loading the document will not succeed, or will convert the InlineUIContainer to image, depending on the format and export settings.


    Regards,
    Boby
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  6. Jaypee
    Jaypee avatar
    13 posts
    Member since:
    Jun 2013

    Posted 17 Jun 2013 Link to this post

    radrichtext box does not have insert shapes?
  7. Boby
    Admin
    Boby avatar
    595 posts

    Posted 19 Jun 2013 Link to this post

    Hello Jaypee,
    RadDocument's model doesn't support shapes natively. You can read more about the available DocumentElements here, but as I mentioned, the options in your scenario are to use ImageInlines or InlineUIContainers.

    Regards,
    Boby
    Telerik

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
DevCraft banner