can I make new text editor ? Hitskin_logo Hitskin.com

This is a Hitskin.com skin preview
Install the skinReturn to the skin page

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.
3 posters

    can I make new text editor ?

    avatar
    Sam7
    Forumember


    Posts : 40
    Reputation : 0
    Language : English

    can I make new text editor ? Empty can I make new text editor ?

    Post by Sam7 April 8th 2012, 4:43 am

    Hallo guys..

    can I make one of this ?
    Spoiler:
    to add some script code that I want


    Last edited by Sam7 on April 9th 2012, 10:31 am; edited 1 time in total
    SLGray
    SLGray
    Administrator
    Administrator


    Male Posts : 51553
    Reputation : 3519
    Language : English
    Location : United States

    can I make new text editor ? Empty Re: can I make new text editor ?

    Post by SLGray April 8th 2012, 4:54 am




    can I make new text editor ? Slgray10

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


    Posts : 40
    Reputation : 0
    Language : English

    can I make new text editor ? Empty Re: can I make new text editor ?

    Post by Sam7 April 8th 2012, 7:13 am

    Thank you

    That's worked, but when I change the text and input this
    Code:
    [table style="background: url('http://i43.servimg.com/u/f43/16/93/80/74/lock10.png') no-repeat left center #d7e2b7; border: 1px solid #b7c19a; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #626f3d; border-radius: 3px;"][tr][td]Case Solved & Locked[/td][/tr][/table]
    Into "input(\'here\')
    it's doesn't work
    what is wrong ?
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    can I make new text editor ? Empty Re: can I make new text editor ?

    Post by LGforum April 8th 2012, 3:38 pm

    That's because your input has single quote marks in. Put a back slash before single quotes in your input.
    avatar
    Sam7
    Forumember


    Posts : 40
    Reputation : 0
    Language : English

    can I make new text editor ? Empty Re: can I make new text editor ?

    Post by Sam7 April 8th 2012, 4:15 pm

    still do not work :|
    LGforum
    LGforum
    Hyperactive


    Male Posts : 2265
    Reputation : 264
    Language : English
    Location : UK

    can I make new text editor ? Empty Re: can I make new text editor ?

    Post by LGforum April 8th 2012, 4:44 pm

    It should be this:
    Code:

    input(\'[table style="background: url(http://i43.servimg.com/u/f43/16/93/80/74/lock10.png) no-repeat left center #d7e2b7; border: 1px solid #b7c19a; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #626f3d; border-radius: 3px;"][tr][td]Case Solved & Locked[/td][/tr][/table]\')
    You don't even need single quotes for CSS url().
    avatar
    Sam7
    Forumember


    Posts : 40
    Reputation : 0
    Language : English

    can I make new text editor ? Empty Re: can I make new text editor ?

    Post by Sam7 April 9th 2012, 10:29 am

    well, now. when I click the button that I have make..
    it doesn't appears

    this my j.script code
    Code:
    $(document).ready(function(){
    $('input[value="Others"]').after(' <img src="http://2img.net/i/fa/wysiwyg/separator.png" alt="|"> <input class="button2" value="Bump" onclick="input(\'[table style="background: url(http://i43.servimg.com/u/f43/16/93/80/74/lock10.png) no-repeat left center #d7e2b7; border: 1px solid #b7c19a; padding: 5px 5px 5px 30px; width: 97%; font-weight: bold; color: #626f3d; border-radius: 3px;"][tr][td]Case Solved & Locked[/td][/tr][/table]\')" type="button"> ');
    });

    function input(text) {
    document.getElementById('text_editor_textarea').value+=text;
    }

    Sorry bother you :| I dont understand about java script