Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function() {
- var sep = document.createElement('span');
- sep.innerHTML = '<img alt="|" style="vertical-align: middle;" src="http://illiweb.com/fa/wysiwyg/separator.png" title="|"> ';
- document.getElementById('text_edit').appendChild(sep);
- var flash = document.createElement('button');
- flash.setAttribute('class','button2');
- flash.title = "Flash";
- flash.type = "button";
- flash.setAttribute('onmouseover','helpline("fl")');
- flash.setAttribute('onclick','selectWysiwyg(this,"flash")');
- flash.innerHTML = '<img alt="Flash" src="http://illiweb.com/fa/wysiwyg/page_white_flash.png" title="Flash" />';
- document.getElementById('text_edit').appendChild(flash);
- var flashItems = document.createElement('div');
- flashItems.innerHTML = '<div id="flash" class="select" style="visibility: hidden; width: auto;"><p><img style="vertical-align:middle" title="Width" alt="Width" src="http://illiweb.com/fa/wysiwyg/width.png"> <input type="text" onkeypress="if(event.keyCode==13){constructBBcode(\'flash\',new Array(\'flash_width\',\'flash_height\'),\'flash_url\');selectWysiwyg(this,\'flash\');return false}" title="Width" id="flash_width" style="width:25px" class="inputbox" autocomplete="off"> x <img style="vertical-align:middle" title="Height" alt="Height" src="http://illiweb.com/fa/wysiwyg/height.png"> <input type="text" onkeypress="if(event.keyCode==13){constructBBcode(\'flash\',new Array(\'flash_width\',\'flash_height\'),\'flash_url\');selectWysiwyg(this,\'flash\');return false}" title="Height" id="flash_height" style="width:25px" class="inputbox" autocomplete="off"> px</p><p><img style="vertical-align:middle" title="URL" alt="URL" src="http://illiweb.com/fa/wysiwyg/link.png"> <input type="text" onkeypress="if(event.keyCode==13){constructBBcode(\'flash\',new Array(\'flash_width\',\'flash_height\'),\'flash_url\');selectWysiwyg(this,\'flash\');return false}" title="URL" id="flash_url" style="width:150px" class="inputbox" autocomplete="off"></p><p style="text-align:center"><input type="button" value="Ok" onclick="constructBBcode(\'flash\',new Array(\'flash_width\',\'flash_height\'),\'flash_url\');selectWysiwyg(this,\'flash\')" class="button2"></p></div>';
- document.getElementById('text_editor_select_controls').appendChild(flashItems);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement