WebArtz - The Web Design Forum
Welcome to WebArtz, Guest!

WebArtz is a nice place for discussions related to web designing and coding. We help our members to code their own website templates with HTML and CSS. We give them advice on various issues.

To know more about WebArtz Forum, visit the About Us page.

At the moment, you are viewing the forum as a guest. As a guest you can't make post and participate in discussions. You need to register and become a member of the forum. Click the register link below and become a part of this forum.

Thank You


You are not connected. Please login or register

View previous topic View next topic Go down  Message [Page 1 of 1]

Matti

avatar
Registered Member
Registered Member
Hey guys,

I'm looking for a JavaScript or jQuery code so i can add a text in the Quick reply box.

http://csshelp.forumotion.net/

Matti

avatar
Registered Member
Registered Member
Can anyone give me a code for this?

http://csshelp.forumotion.net/

Matti

avatar
Registered Member
Registered Member
any one Shocked

http://csshelp.forumotion.net/

Mr.Joker

avatar
Mr. WebArtz
Mr. WebArtz
What you want excatly? I mean when you say i want javascript to add a text in reply box its funny. You can simply type in Smile . Explain.

RSguideMaker

avatar
Registered Member
Registered Member
This code works for all versions and WYSIWYG editor must be turned off in order for you to see the default text.

All Versions:
1. Go to Admin Panel -> Modules -> JavaScript Codes Management -> Make sure it's on! -> Create a new JavaScript -> Title it whatever you want -> Select "In all Pages" (For every reply box) or select "In the topics" (For the quick reply box only) -> Paste:
Code:
$(document).ready(function(){
document.getElementById('text_editor_textarea').placeholder = "Your Text Here";
});

Replace "Your Text Here" with whatever you want, but you must keep the quotation marks. Wink

For example:
Code:
$(document).ready(function(){
document.getElementById('text_editor_textarea').placeholder = "Write your message here...";
});

2. Hit save and you're done! Wink

Please could you make it more detailed as to what you were asking in future. I will try to help more.



Last edited by RSguideMaker on Fri Apr 20, 2012 1:57 am; edited 1 time in total

magicm00n

avatar
Registered Member
Registered Member
Hi, what if I don't want to turn off WYSIWYG. Can you make a code that will work with WYSIWYG enabled?

RSguideMaker

avatar
Registered Member
Registered Member
Sorry, but this answer isn't mine. I used it from another site to answer the question, but I forgot to give credit on my answer post.

The original is here, so sorry that I can't write the code for you.

Sorry, and sorry admins if I can't use someone else's code. I'll bear that in mind for the future if I can't use other people's code for answering someone's question.

Matti

avatar
Registered Member
Registered Member
Admins or Mods can lock this.

http://csshelp.forumotion.net/

ankillien

avatar
Administrator
Administrator
Solved | Locked

Sponsored content


View previous topic View next topic Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum