/    Sign up×
Community /Pin to ProfileBookmark

Return text from popup

How can I make a popup/alert write to a iframe?? (where the cursor is)

It is a WYSIWYG editor, and I want one button to insert a sections of text.
Anybody?

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@UltimaterMay 10.2005 — These forums use that technique, you should view their source.

In the Quick-Reply box the textarea is given an id of "qr_message" and a name of "message".

The FORM that contains the textarea is named "vbform".

When you click the BOLD button the following action is taken:

onclick="return vbcode('B', '')"

The source for the vbcode function can be found in this JS file:

[color=royalblue]http://www.webdeveloper.com/forum/clientscript/vbulletin_stdedit.js[/color]
×

Success!

Help @Kulvis spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.20,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...