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.

can I make new text editor ?

View previous topic View next topic Go down

can I make new text editor ?

Post by Sam7 on Sat Apr 07, 2012 9:43 pm

Hallo guys..

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


Last edited by Sam7 on Mon Apr 09, 2012 3:31 am; edited 1 time in total

Sam7
Forumember

Posts : 40
Reputation : 0
Language : English

Back to top Go down

Re: can I make new text editor ?

Post by SLGray on Sat Apr 07, 2012 9:54 pm



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


SLGray
Administrator
Administrator

Male Posts : 37299
Reputation : 2506
Language : English
Location : United States

http://ztwds.forumotion.com/

Back to top Go down

Re: can I make new text editor ?

Post by Sam7 on Sun Apr 08, 2012 12: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 ?

Sam7
Forumember

Posts : 40
Reputation : 0
Language : English

Back to top Go down

Re: can I make new text editor ?

Post by LGforum on Sun Apr 08, 2012 8:38 am

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

LGforum
Hyperactive

Male Posts : 2262
Reputation : 259
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: can I make new text editor ?

Post by Sam7 on Sun Apr 08, 2012 9:15 am

still do not work :|

Sam7
Forumember

Posts : 40
Reputation : 0
Language : English

Back to top Go down

Re: can I make new text editor ?

Post by LGforum on Sun Apr 08, 2012 9:44 am

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().

LGforum
Hyperactive

Male Posts : 2262
Reputation : 259
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: can I make new text editor ?

Post by Sam7 on Mon Apr 09, 2012 3: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://illiweb.com/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

Sam7
Forumember

Posts : 40
Reputation : 0
Language : English

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