Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic open popup instead of default editor (Read 1656 times)
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
open popup instead of default editor
Sep 16th, 2019 at 6:42am
Print Post  
Hi, I want to open a pop up instead a editor while editing link or link text. Is it possible?
Please let me know. This time I tried to open a popup on linkeditevent or linktexteditevent it opens pop up but with pop up it is opening default editor, which I do not want to show.
Thanks in advance
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3380
Joined: Oct 19th, 2005
Re: open popup instead of default editor
Reply #1 - Sep 16th, 2019 at 7:44am
Print Post  
You could set your own DOM element as editor by handling the createEditControl event, e.g. some sample code here -
https://mindfusion.eu/Forum/YaBB.pl?num=1513914707/1#1

Alternatively call Diagram.setAllowInplaceEdit(false) and it will stop opening the built-in editor.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
liza
Full Member
***
Offline


I Love MindFusion!

Posts: 132
Joined: Apr 25th, 2019
Re: open popup instead of default editor
Reply #2 - Sep 16th, 2019 at 11:04am
Print Post  
Thanks, but by  Diagram.setAllowInplaceEdit(false)  it will also not allow user to do ediion (change any name) . I want to give this functionality but only in case of link I want to open a pop up and hide the default editor also I need this editor at the nodes double click which is coming this time. Only need change on linktextedition (want to open a pop up). Please help
  
Back to top
AIM  
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3380
Joined: Oct 19th, 2005
Re: open popup instead of default editor
Reply #3 - Sep 17th, 2019 at 6:03am
Print Post  
Then try handling the createEditControl event, creating your custom editor and calling args.setControl only when the edited item is a link.
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint