dekel
09-29-2004, 03:01 PM
i'm looking for a way to add a function to the WYSIWYG editor that will add text to the WYSIWYG area.
if i want to just add a picture i can user this function:
(i add this function at the eng of vbulletin_wysiwyg.js)
function add_image(imgurl)
{
do_format("insertimage", false, imgurl);
}
but i'm looking for some way to just insert test, for example:
<a href="#" onclick="add_text('this is the text i want to add');">click to add text</a>
the above function will not work.
maby i need to change the "insertimage" to something else... ?
well, i need to insert only images and links (maby it helps someone...), but i also tried the "creatlink" and i had to select some text in the WYSIWYG edit for that to work.
Thanks, Dekel
if i want to just add a picture i can user this function:
(i add this function at the eng of vbulletin_wysiwyg.js)
function add_image(imgurl)
{
do_format("insertimage", false, imgurl);
}
but i'm looking for some way to just insert test, for example:
<a href="#" onclick="add_text('this is the text i want to add');">click to add text</a>
the above function will not work.
maby i need to change the "insertimage" to something else... ?
well, i need to insert only images and links (maby it helps someone...), but i also tried the "creatlink" and i had to select some text in the WYSIWYG edit for that to work.
Thanks, Dekel