We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Document Editor with mention (template of text)

Thread ID:

Created:

Updated:

Platform:

Replies:

149445 Nov 26,2019 05:44 PM UTC Dec 2,2019 01:04 PM UTC Vue 4
loading
Tags: DocumentEditor
Marcelo Ribeiro
Asked On November 26, 2019 05:44 PM UTC

Hi,

I am interested in using "DocumentEditor", but one of the main features of my project is the possibility of displaying a template in the body of the document.

Imagine I already have a text template already saved, so anywhere in the body of the document I can type the letter @ so a list of template names is displayed and when I select the desired template it adds at the cursor position the text of this template.

The link below may further demonstrate the need:


Is this possible in the DocumentEditor component?


Thank you!
Marcelo

Kesavan D [Syncfusion]
Replied On November 27, 2019 11:22 AM UTC

Hi Marcelo, 

Greetings from Syncfusion software. 

Currently Mentions feature is not available in DocumentEditor. As a work around of your requirement can be achieved in the sample level using the “insetText()” API to insert a text at the current cursor position. 

  
Regards, 
Kesavan. 


Marcelo Ribeiro
Replied On November 27, 2019 12:02 PM UTC

Hello Kesavan,

Thanks for the response, against this backdrop:
- Can I insert the body of one document at the cursor position in another document?

Example:
- Document "A" has its full body text formatted and saved in the database.
- Now I create a new document, write something and position the course at the position I want to insert the text from another document, then I click a button that opens a popup displaying my saved documents, I choose the desired text and click insert, it inserts the body of this desired document at the cursor position of the "new" document that has not yet been saved.

Thank you!
Marcelo

Harini Chellappa [Syncfusion]
Replied On November 28, 2019 04:46 PM UTC

Hi Marcelo, 

Thank you for the update. We will check this and update you more details by Dec 2, 2019. 

Regards, 
Harini C 


Harini Chellappa [Syncfusion]
Replied On December 2, 2019 01:04 PM UTC

Hi Marcelo,

 

You can use paste(sfdt) in editor module which will allow you to insert a document (extract the document and insert contains paragraph and table) at current cursor position.

 

You can pass server Sfdt string in this method.

 

Sample Code snippet:

container.documentEditor.editor.paste(sfdt:string)

 

Regards,

 

Harini C


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon