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

Go down

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

Post by ahmed1198 on 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
avatar
ahmed1198
New Member

Posts : 3
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 on October 14th 2018, 8:59 am

avatar
skouliki
Manager
Manager

Female Posts : 4673
Reputation : 773
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 on 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
avatar
ahmed1198
New Member

Posts : 3
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 on 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
avatar
skouliki
Manager
Manager

Female Posts : 4673
Reputation : 773
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 on October 14th 2018, 4:43 pm

Thank you very much!
avatar
ahmed1198
New Member

Posts : 3
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 on October 14th 2018, 5:49 pm

you are welcome
avatar
skouliki
Manager
Manager

Female Posts : 4673
Reputation : 773
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 on 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.



Rules of the forum - Frequently Asked Questions - Have you lost your password?
Please mark the "solved" button if your problem/doubt has been solved.
avatar
mpelmmc
Support Moderator
Support Moderator

Male Posts : 845
Reputation : 130
Language : English and Spanish

https://help.forumotion.com/

Back to top Go down

Back to top


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