Select all in [code] and [php]
#21
Well needed thanks.
Reply
#22
Worked as a charm for me. I use plugin version with language edits and no issues whatsoever. Thanks! Smile
Reply
#23
hope you enjoin it Big Grin
Reply
#24
lol Toungue thanks for joey for the idea Toungue
<signature too big>
Reply
#25
(2009-10-24, 03:05 AM)Joshee Wrote: I have an issue.
http://iphorums.net/thread-33-post-116.html
Reply
#26
I can't enter your page

@AndrewPH: did you publish the plugin yet?
Reply
#27
(2009-11-08, 02:05 AM)Joey_Pham423 Wrote: I can't enter your page

@AndrewPH: did you publish the plugin yet?

Yea sorry the site was down for a while today. It should be up now.
Reply
#28
ok, I'll wait
Reply
#29
let me check my code.. ill fix the plugin in a few days this week kinda busy in real life.. thanks for the bug report
@joshee

can you post your code and php language file via admin cp here? thanks
<signature too big>
Reply
#30
Javascript code:
<script type="text/javascript">
function selectCode(a)
{
   var e = a.parentNode.parentNode.getElementsByTagName('CODE')[0];
   if (window.getSelection)
   {
      var s = window.getSelection();
       if (s.setBaseAndExtent)
      {
         s.setBaseAndExtent(e, 0, e, e.innerText.length - 1);
      }
      else
      {
         var r = document.createRange();
         r.selectNodeContents(e);
         s.removeAllRanges();
         s.addRange(r);
      }
   }
   else if (document.getSelection)
   {
      var s = document.getSelection();
      var r = document.createRange();
      r.selectNodeContents(e);
      s.removeAllRanges();
      s.addRange(r);
   }
   else if (document.selection)
   {
      var r = document.body.createTextRange();
      r.moveToElementText(e);
      r.select();
   }
}
</script> 

And I have
Code: <a href="#" onclick="selectCode(this); return false;">[Select all]</a>
And
PHP Code: <a href="#" onclick="selectCode(this); return false;">[Select all]</a>
In the languages.
Reply


Forum Jump:


Users browsing this thread: 7 Guest(s)