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.
The forum of the forums
3 posters

    i want add this code in sceditor

    coolkool
    coolkool
    Forumember


    Male Posts : 140
    Reputation : 3
    Language : Arabic
    Location : SA

    Solved i want add this code in sceditor

    Post by coolkool September 14th 2015, 3:37 pm

    Technical Details


    Forum version : #phpBB2
    Position : Administrator
    Concerned browser(s) : Google Chrome
    Who the problem concerns : Yourself
    Forum link : http://x-gaming.lforum.biz

    Description of problem


    hi i need add this code in my sceditor

    Code:

     <div><span class="gensmall">
    <a href="javascript:showhide(document.getElementById('plus_menu'))"><img src="http://2img.net/i/fa/i/smiles/icon_king.png" ></a><br><div id="plus_menu" style="position: absolute; margin-top: 8px; z-index: 1; Right:
    1051px; display: none;"><table class="forumline" border="0" cellpadding="3" cellspacing="0"
    width="200"><tbody><tr>
    <td class="row1" nowrap="nowrap"><iframe src="http://x-gaming.lforum.biz/h28-page" width="200" height="250" scrolling="no"></iframe></td></tr></tbody></table></div>
    </span></div>

    thanks

    coolkool
    coolkool
    Forumember


    Male Posts : 140
    Reputation : 3
    Language : Arabic
    Location : SA

    Solved Re: i want add this code in sceditor

    Post by coolkool September 15th 2015, 1:01 pm

    anybody can help me please ??
    Ange Tuteur
    Ange Tuteur
    Forumaster


    Male Posts : 13207
    Reputation : 3000
    Language : English & 日本語
    Location : Pennsylvania

    Solved Re: i want add this code in sceditor

    Post by Ange Tuteur September 15th 2015, 9:48 pm

    Hi @coolkool,

    I'm not sure what you want this to do, but here's a script.

    Placement : All pages
    Code:
    $(function() {
      if (!$.sceditor) return;
     
      $.sceditor.command.set('calculator', {
        dropDown : function(editor, caller, callback) {
          var d = document.createElement('DIV');
       
          d.innerHTML = '<iframe src="http://x-gaming.lforum.biz/h28-page" width="200" height="250" scrolling="no"></iframe>';
         
          editor.createDropDown(caller, 'calculator', d);
        },
     
        exec : function(c) {
          var e = this;
          $.sceditor.command.get('calculator').dropDown(e, c, function(content) {
            e.insertText(content);
          });
        },
     
        txtExec : function(c) {
          var e = this;
          $.sceditor.command.get('calculator').dropDown(e, c, function(content) {
            e.insertText(content);
          });
        }
      });
     
      toolbar += ',calculator'
    });

    To change the button image use this CSS :
    Code:
    .sceditor-button-calculator div {
      background-image:url(IMAGE_URL);
    }

    Replace IMAGE_URL by the URL of your image.
    coolkool
    coolkool
    Forumember


    Male Posts : 140
    Reputation : 3
    Language : Arabic
    Location : SA

    Solved Re: i want add this code in sceditor

    Post by coolkool September 15th 2015, 10:15 pm

    thank you thank you thank you
    it's work
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51498
    Reputation : 3523
    Language : English
    Location : United States

    Solved Re: i want add this code in sceditor

    Post by SLGray September 16th 2015, 2:41 am

    Topic solved and archived



    i want add this code in sceditor Slgray10

    When your topic has been solved, ensure you mark the topic solved.
    Never post your email in public.

      Current date/time is September 23rd 2024, 3:27 am