CGDevTools Forum

Welcome to the Official CGDevTools Support Community Forums.

Call methods for menu options

by zsleo » 22 Dec 2016 01:24

Is it possible and if so how to programmatically call methods for TinyMCE menu options?

For example, I set TinyMCE to read only but I want to be able to print the Content by clicking a CGD button.

TIA
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 22 Dec 2016 10:14

Hi zsleo,

Just set the text via Content property:

delphi code
IWCGJQTinyMCE1.Content.Text:= 'TEST';


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 22 Dec 2016 12:36

Sorry. I don't understand.

I want to know if it is possible to programmatically call (for example) the method behind the print menu option of TinyMCE.

If it is possible then please advise how to do it
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 22 Dec 2016 12:39

Hi zsleo,

You don't understand, because of your question, look at your initial question:

Is it possible and if so how to programmatically call methods for TinyMCE menu options?

For example, I set TinyMCE to read only but I want to be able to print the Content by clicking a CGD button.


And you got the answer :)

Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 22 Dec 2016 19:18

Alexander
I do not want to rant but this is ridiculous!

Being pedantic, I know what I meant but I accept that I may not have explained it so that you can understand what I meant - my bad communication.

However, this is a technology help forum! I fail to understand how "IWCGJQTinyMCE1.Content.Text:= 'TEST';" comes even close to answering "I want to know if it is possible to programmatically call (for example) the method behind the print menu option of TinyMCE."

Your responses wastes both your time and mine.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 22 Dec 2016 19:25

Hi zsleo,

Your responses wastes both your time and mine.


Extacly, your non-concrete questions, waste our time...
if you explore and provide us more details about the your objective/question, would be much helpful to us understand and provide you the way/answer...

So, I ask you again, please make your question clearer, containing information what, where and when.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 23 Dec 2016 03:47

In the image below, how do I call the process/procedure that "1" is pointing to by clicking the button that "2" is pointing to?

If this is not clear enough please explain what you do not understand or, in other words, what I have not explained concisely enough.

2016-12-23 13_39_11-127.0.0.1_8888_$_.png


OR

if that is not possible then how can I make the Content part of the TineyMCE read only and leave the menu enabled and not read only?

TIA
You do not have the required permissions to view the files attached to this post.
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33

by Alexander Bulei » 23 Dec 2016 17:11

Hi,

delphi code
IWCGJQTinyMCE1.TinyMCEOptions.ExecCommand('mcePrint');


Best Regards.
Group: Developers | Support Team

  • info [at] cgdevtools.com - General information
  • sales [at] cgdevtools.com - Sales department
  • support [at] cgdevtools.com - Product and Technical Support
User avatar
Alexander Bulei
Site Admin
 
Posts: 3635
Joined: 15 May 2012 08:52
Location: Mealhada, Portugal

by zsleo » 23 Dec 2016 20:34

Thank you
zsleo
 
Posts: 776
Joined: 03 Feb 2013 03:33


Return to CGTinyMCE

cron

Who is online

Users browsing this forum: No registered users and 2 guests

Contact Us.