Page 1 of 1

Call methods for menu options

PostPosted: 22 Dec 2016 01:24
by zsleo
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

Re: Call methods for menu options

PostPosted: 22 Dec 2016 10:14
by Alexander Bulei
Hi zsleo,

Just set the text via Content property:

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


Best Regards.

Re: Call methods for menu options

PostPosted: 22 Dec 2016 12:36
by zsleo
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

Re: Call methods for menu options

PostPosted: 22 Dec 2016 12:39
by Alexander Bulei
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.

Re: Call methods for menu options

PostPosted: 22 Dec 2016 19:18
by zsleo
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.

Re: Call methods for menu options

PostPosted: 22 Dec 2016 19:25
by Alexander Bulei
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.

Re: Call methods for menu options

PostPosted: 23 Dec 2016 03:47
by zsleo
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

Re: Call methods for menu options

PostPosted: 23 Dec 2016 17:11
by Alexander Bulei
Hi,

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


Best Regards.

Re: Call methods for menu options

PostPosted: 23 Dec 2016 20:34
by zsleo
Thank you