1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Xenplaza – Select ALL & Clipboard: CODE, PHP, HTML [Deleted]

Discussion in 'Add-on Releases' started by X_Plaza, Aug 29, 2012.

  1. X_Plaza

    X_Plaza Active Member

    X_Plaza submitted a new resource:

    Xenplaza – Select ALL & Clipboard: CODE, PHP, HTML (version 1.0.0) - Select ALL & Clipboard content in CODE, PHP, HTML BBCode

    Read more about this resource...
     
  2. DRE

    DRE Well-Known Member

    Super convenient! Thank you.
     
  3. Arkshine

    Arkshine Active Member

    Wondering why it's not even implemented by default. :p

    By the way, where I can translate : "Copied text to clipboard" ?

    EDIT: Your script breaks the spoiler bbcode included in BBCode Manager addon. I've a quote inside a spoiler, and nothing happens when you click on the button.
     
  4. X_Plaza

    X_Plaza Active Member

    You can open js file, search and translate by your way.
     
  5. Arkshine

    Arkshine Active Member

    Ah, yes, you're right, did not see it it was on the first [long] line.

    What about my EDIT ?
     
  6. luutruong

    luutruong Active Member

    bottom js
     
  7. Arkshine

    Arkshine Active Member

    Could you explain more ? The js is already at the very bottom.
     
  8. luutruong

    luutruong Active Member

    PHP:
     
    $(document).ready(function() {
    $select '<a href="javascript:;"  class="alo" onclick="Xenplaza_selectCode(this); return false;" >(Click here to copy code to clipboard)</a>';
    $(
    '.bbCodeBlock .type').append($select);
    $(
    'a.alo').each(function(){
    $text =  $(this).parent().parent().children('pre').text();
    if(!
    $text){
    $text =  $(this).parent().parent().children('.code').text();
    }
    //alert($text);
    $(this).zclip({
    path:'js/Xenplaza/copy.swf',
    copy:$text
    });
    });
    });
    [
    did you see that?
     
  9. Arkshine

    Arkshine Active Member

    Not sure what you're talking about. I'm talking about my previous EDIT :

     
  10. luutruong

    luutruong Active Member

    :( sorry...
     
  11. Arkshine

    Arkshine Active Member

    @X_Plaza : did you look at the problem ?
     
  12. X_Plaza

    X_Plaza Active Member

    Yah. Thanks for your report. I will fix that in next version :)
     
    Arkshine likes this.
  13. X_Plaza

    X_Plaza Active Member

  14. Arkshine

    Arkshine Active Member

    Thanks for the update. I confirm spoiler bbcode is not more broken, but the link to copy the text doesn't work (we are always in the situation where code bbcode is used inside a spoiler).
     
  15. Arkshine

    Arkshine Active Member

    Any news ?

    Another issue : it replaces spaces by &nbsp; ; it's problematic. I use mainly this feature to copy-paste code and compiler doesn't like such non-breaking spaces. Can you do something, please ?
     

Share This Page