The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

How do I add a button in the Reply Editor to open a popup window

3 posters

Go down

In progress How do I add a button in the Reply Editor to open a popup window

Post by ahmed1198 October 13th 2018, 11:36 am

Technical Details


Forum version : #phpBB3
Position : Administrator
Concerned browser(s) : Google Chrome
Who the problem concerns : All members
Forum link : http://egy-tech.forumegypt.net/

Description of problem

Welcome guys

I use the following code to add a button to the Reply Box Editor

Code:
// JavaScript Document
$(function() {
  if (!$.sceditor) return;
 
  $.sceditor.command.set('ButtonLink', {
    exec : function() {
      this.insertText('some text');
    },
 
    txtExec : function() {
      this.insertText('some text');
    },
 
    tooltip : 'uplaod file'
  });
 
  toolbar = toolbar.replace(/link/, 'ButtonLink,link');
});

But this button adds some text in the reply box .... instead I want to open a pop-up window .... Like the button "Upload images" currently in the editor's bar

thank you in advance
ahmed1198
ahmed1198
New Member

Posts : 6
Reputation : 1
Language : arabic

http://egy-tech.forumegypt.net/

Back to top Go down

In progress Re: How do I add a button in the Reply Editor to open a popup window

Post by skouliki October 14th 2018, 8:59 am

skouliki
skouliki
Manager
Manager

Female Posts : 15061
Reputation : 1690
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

In progress Re: How do I add a button in the Reply Editor to open a popup window

Post by ahmed1198 October 14th 2018, 9:20 am

Thank you for your Reply

No .... I want to open the window "Download Center as a popup window ...

For example: button "host an image">>>>> as in the following picture:





Last edited by ahmed1198 on October 14th 2018, 4:32 pm; edited 1 time in total
ahmed1198
ahmed1198
New Member

Posts : 6
Reputation : 1
Language : arabic

http://egy-tech.forumegypt.net/

Back to top Go down

In progress Re: How do I add a button in the Reply Editor to open a popup window

Post by skouliki October 14th 2018, 9:23 am

Please don't use bold or color and keep to the default text. This is reserved for the staff for moderation.  
Thank you.

see this thread is the Youtube button https://help.forumotion.com/t144564-new-button-on-sceditor?highlight=add+button+to+editor
with the url pop up 
i dont know any codes for the host image button
skouliki
skouliki
Manager
Manager

Female Posts : 15061
Reputation : 1690
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

In progress Re: How do I add a button in the Reply Editor to open a popup window

Post by ahmed1198 October 14th 2018, 4:43 pm

Thank you very much!
ahmed1198
ahmed1198
New Member

Posts : 6
Reputation : 1
Language : arabic

http://egy-tech.forumegypt.net/

Back to top Go down

In progress Re: How do I add a button in the Reply Editor to open a popup window

Post by skouliki October 14th 2018, 5:49 pm

you are welcome
skouliki
skouliki
Manager
Manager

Female Posts : 15061
Reputation : 1690
Language : English,Greek
Location : Greece

http://iconskouliki.forumgreek.com

Back to top Go down

In progress Re: How do I add a button in the Reply Editor to open a popup window

Post by mpelmmc October 19th 2018, 11:44 am

Is this solved @ahmed1198?

If so, please don't forget to click the "Mark solved" button at the beginning of this very topic! Smile

Best regards.
mpelmmc
mpelmmc
Helper
Helper

Male Posts : 1092
Reputation : 170
Language : English and Spanish

https://help.forumotion.com/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum