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 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

Sam7
Forumember

Posts : 40
Reputation : 0
Language : English

Back to top Go down

Re: can I make new text editor ?

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



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


SLGray
Administrator
Administrator

Male Posts : 35629
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

Re: can I make new text editor ?

Post by Sam7 on 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 ?

Sam7
Forumember

Posts : 40
Reputation : 0
Language : English

Back to top Go down

Re: can I make new text editor ?

Post by LGforum on 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.

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: can I make new text editor ?

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

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

LGforum
Hyperactive

Male Posts : 2254
Reputation : 254
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

Re: can I make new text editor ?

Post by Sam7 on 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://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