vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Design and Graphics Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=168)
-   -   Preventing the WYSIWYG editer from automatically converting to bbCode (https://vborg.vbsupport.ru/showthread.php?t=186365)

sparklywater 07-25-2008 07:22 PM

Preventing the WYSIWYG editer from automatically converting to bbCode
 
I need to prevent the WYSIWYG editer from automatically converting the HTML code formatting into bbCode (HTML has been enabled on my forum). I need it so that next time when the post is edited the WYSIWYG editer will retain the HTML formatting that was applied. Currently what happens is that the HTML code is first applied correctly upon submitting the post, but when returning to edit this post the editer converts the entire post / HTML tags back into bbCode format (as much as possible), which means that all HTML formatting would have to be done all over again. Please let me know if there is a way to prevent the WYSIWYG editor from automatically converting HTML code into bbCode in this way.

--------------- Added [DATE]1217031566[/DATE] at [TIME]1217031566[/TIME] ---------------

EDIT: I've just noticed that this problem only accurs with the Advanced WYSIWYG editor but not the Standard editor, so switching to the standard version solves the problem.

CoffeeToki 07-26-2008 02:18 AM

I'm glad you solved the problem, But I think it's dangerous to allow users or guests to input HTML into their posts. There are some vulnerabilities that can be breached with malicious javascripts or other codes that can steal information (ex: login / passwords).

It's probably fine if the administrator is allowed to input html into their posts though. :)

sparklywater 07-26-2008 11:23 AM

Thanks for the word of caution, I will ensure that guests / users are not allowed HTML in posts :)


All times are GMT. The time now is 07:51 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.01066 seconds
  • Memory Usage 1,709KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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