The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

i want add this code in sceditor

View previous topic View next topic Go down

Solved i want add this code in sceditor

Post by coolkool on 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://illiweb.com/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
Forumember

Posts : 116
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

Solved Re: i want add this code in sceditor

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

anybody can help me please ??

coolkool
Forumember

Posts : 116
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

Solved Re: i want add this code in sceditor

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: i want add this code in sceditor

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

thank you thank you thank you
it's work

coolkool
Forumember

Posts : 116
Reputation : 3
Language : arabic

http://x-gaming.lforum.biz

Back to top Go down

Solved Re: i want add this code in sceditor

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

Topic solved and archived


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


SLGray
Administrator
Administrator

Male Posts : 36682
Reputation : 2445
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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