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.

i want add this code in sceditor

3 posters

Go down

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

View user profile http://x-gaming.forumakers.com/

Back to top Go down

Solved Re: i want add this code in sceditor

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

anybody can help me please ??
coolkool
coolkool
Forumember

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

View user profile http://x-gaming.forumakers.com/

Back to top Go down

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.
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13244
Reputation : 2991
Language : English & 日本語
Location : Pennsylvania

View user profile https://fmdesign.forumotion.com

Back to top Go down

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
coolkool
coolkool
Forumember

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

View user profile http://x-gaming.forumakers.com/

Back to top Go down

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.
SLGray
SLGray
Administrator
Administrator

Male Posts : 50441
Reputation : 3478
Language : English
Location : United States

View user profile https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

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