Go Back   vb.org Archive > vBulletin 3 Discussion > vB3 General Discussions
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #1  
Old 06-28-2005, 02:03 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default 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
Reply With Quote
  #2  
Old 06-28-2005, 02:33 AM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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...
Reply With Quote
  #3  
Old 10-18-2005, 10:19 PM
Davidinh Davidinh is offline
 
Join Date: Apr 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #4  
Old 10-18-2005, 10:40 PM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #5  
Old 10-19-2005, 12:59 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #6  
Old 10-19-2005, 02:18 AM
Davidinh Davidinh is offline
 
Join Date: Apr 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #7  
Old 10-19-2005, 05:27 AM
tamarian tamarian is offline
 
Join Date: Oct 2001
Location: Canada
Posts: 1,205
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #8  
Old 10-19-2005, 02:05 PM
Davidinh Davidinh is offline
 
Join Date: Apr 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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,
Reply With Quote
  #9  
Old 10-20-2005, 11:55 PM
Davidinh Davidinh is offline
 
Join Date: Apr 2005
Posts: 47
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

or some basic function (object, array) of the vbulletin_textedit.js it'll ok too,
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:38 PM.


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.03803 seconds
  • Memory Usage 2,236KB
  • Queries Executed 13 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (1)ad_showthread_firstpost
  • (1)ad_showthread_firstpost_sig
  • (1)ad_showthread_firstpost_start
  • (2)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)navbar
  • (3)navbar_link
  • (120)option
  • (9)post_thanks_box
  • (9)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (9)post_thanks_postbit_info
  • (9)postbit
  • (9)postbit_onlinestatus
  • (9)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete