How do I add a button in the Reply Editor to open a popup window Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
2 posters

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

    ahmed1198
    ahmed1198
    New Member


    Posts : 6
    Reputation : 1
    Language : arabic

    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
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15322
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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


    ahmed1198
    ahmed1198
    New Member


    Posts : 6
    Reputation : 1
    Language : arabic

    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
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15322
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    ahmed1198
    ahmed1198
    New Member


    Posts : 6
    Reputation : 1
    Language : arabic

    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!
    skouliki
    skouliki
    Manager
    Manager


    Female Posts : 15322
    Reputation : 1705
    Language : English,Greek
    Location : Greece

    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

    avatar
    Guest
    Guest


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

    Post by Guest 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.