Log in

View Full Version : VBEditor - Possible to use more than once in the same form?


amykhar
06-28-2005, 02:03 AM
I have a feeling the answer to this is no :( But, if it's yes, can somebody tell me how?

I have a form that will have three textareas for input. I want to be able to use the VBeditor to make life easier for my users.

Is it possible to use it, or will I be stuck with the generic textarea for two of the fields?

Amy

tamarian
06-28-2005, 02:33 AM
I'm just guessing here, since I gave up on tracking each beta editor changes :)

If all these text areas have identical properties, I'd assume you can initialize several instances of the editor object, editor1, editor2, editor3. And within templates, you can access the paramaters for smilies options or WYSIWYG mode by checking for editor1, since they'd have the same properties.

Hope this helps...

Davidinh
10-18-2005, 10:19 PM
what you mean "they'd have the same properties" tamarian
do you have some how to about vbulletin_textedit.js
i want to add some external function into that file (for WYSIWYG) but almost i got error
regard,

tamarian
10-18-2005, 10:40 PM
what you mean "they'd have the same properties" tamarian
do you have some how to about vbulletin_textedit.js
i want to add some external function into that file (for WYSIWYG) but almost i got error
regard,

I meant identical text forms, like the quick edit in showthread. Note that this thread was during beta releases, so the editor has changed a lot. I don't have a how-to :)

amykhar
10-19-2005, 12:59 AM
When I posted the thread, the name of the textarea was hardcoded to message. I haven't checked to see if it's still the same. I couldn't see how three textareas on the same form could all have the same name - hence my question.

Davidinh
10-19-2005, 02:18 AM
all you guy know
how to create a new vB_Text_ in side of that file (textedit.js)
or the way to do that

i alway got that message "vB_Text_Editor" is undefined

but i have no clue to solve that

regard,

tamarian
10-19-2005, 05:27 AM
all you guy know
how to create a new vB_Text_ in side of that file (textedit.js)
or the way to do that

i alway got that message "vB_Text_Editor" is undefined

It's best created outside the file. Check the templates to see how it's done, like in newreply.

Davidinh
10-19-2005, 02:05 PM
yeah i do
these file i used to integrate is external js
but it work anywhere except editor box (wysiwyg) and that why i try to add some function from my file JS into textedit.js

i did well at vb 3.0.9 but with 3.5 i .... going to dump
i hope some body here will release how to about that file (i'm not good for js)

if you have some result comparing between wysiwyg.js (3.0.X) and textedit.js (3.5) it will be a big help and appreciated

regard,

Davidinh
10-20-2005, 11:55 PM
or some basic function (object, array) of the vbulletin_textedit.js it'll ok too,