Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 4 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
how to set default font on vbulletin 4.1.4 (new editor)
Maroufi's Avatar
Maroufi
Join Date: Apr 2011
Posts: 10

 

Tehran
Show Printable Version Email this Page Subscription
Maroufi Maroufi is offline 06-25-2011, 10:00 PM

To Do This Simply Follow These Instructions:
1.Go To Admincp
2.Styles & Templates
3.Search In Templates
4.Search ' editor_contents.css '
Here You Can Change Font , Background's Color And The Default Size On The New Editor.

Example Edited Code: (Tahoma Font , Light Blue Background's Color)
Code:
body
{
	/* Font */
	font-family: Tahoma;
	font-size: 12px;

	/* Text color */
	color: #222;

	/* Remove the background color to make it transparent */
	background-color: #e8f5ff;
}

html
{
	/* #3658: [IE6] Editor document has horizontal scrollbar on long lines
	To prevent this misbehavior, we show the scrollbar always */
	_overflow-y: scroll
}

img:-moz-broken
{
	-moz-force-broken-image-icon : 1;
	width : 24px;
	height : 24px;
}
img, input, textarea
{
	cursor: default;
}

img.previewthumb {
	max-width:150px;
	max-height:150px;
	height:auto !important;
	width:auto !important;
	width:150px;
	height:150px;
	margin:1px;
}

img.size_thumbnail {
	max-height:{vb:stylevar image_thumbnail_max};
	max-width:{vb:stylevar image_thumbnail_max};
}

img.size_medium {
	max-height:{vb:stylevar image_small_max};
	max-width:{vb:stylevar image_small_max};
}

img.size_large {
	max-height:{vb:stylevar image_large_max};
	max-width:{vb:stylevar image_large_max};
}

img.size_fullsize {
	max-width:100%;
	max-height:100%;
	overflow:hidden;
}

img.align_left {
	float:left; /* dont use stylevar for this */
	margin: 1em;
	margin-left: 0;
}

img.align_center {
	margin: 0 auto;
	display:block;
}

img.align_right {
	float:right; /* dont use stylevar for this */
	margin: 1em;
	margin-right: 0;
}

/* Table tag */
table {
	width: auto;
}
table.wysiwyg_dashes {
	border-collapse: collapse;
}

td.wysiwyg_dashes_td {
	border: {vb:stylevar editor_wysiwyg_table_borderSize} dotted {vb:stylevar editor_wysiwyg_table_borderColor};
	padding: 3px;
}

/* paragraph tag */
p {
	margin: 0px;
	padding: 0px;
}

/* preview break tag */
hr.previewbreak {
    background-color:red !important;
    border:medium none !important;
    color:red !important;
    height:6px !important;
}

/* pagebreak tag */
h3.wysiwyg_pagebreak {
	border: 1px dashed #cccccc;
	border-top: 3px double black;
	padding: 4px;
}
Regards,
Reply With Quote
  #2  
Old 06-26-2011, 08:42 PM
VBIran VBIran is offline
 
Join Date: Nov 2010
Location: Iran
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very helpful article .

Thank you man.
Reply With Quote
  #3  
Old 07-05-2011, 09:50 PM
strudinox's Avatar
strudinox strudinox is offline
 
Join Date: Mar 2010
Location: California
Posts: 147
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great info, thanks a lot!
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 02:12 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.09148 seconds
  • Memory Usage 2,208KB
  • Queries Executed 16 (?)
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)bbcode_code
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (3)post_thanks_box
  • (2)post_thanks_box_bit
  • (3)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (3)post_thanks_postbit_info
  • (2)postbit
  • (3)postbit_onlinestatus
  • (3)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_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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • 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