vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   VBEditor - Possible to use more than once in the same form? (https://vborg.vbsupport.ru/showthread.php?t=91222)

amykhar 06-28-2005 02:03 AM

VBEditor - Possible to use more than once in the same form?
 
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

Quote:

Originally Posted by Davidinh
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

Quote:

Originally Posted by Davidinh
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,


All times are GMT. The time now is 08:55 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01057 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete