vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB4 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=251)
-   -   Add 'Format' to CKEditor (https://vborg.vbsupport.ru/showthread.php?t=276481)

Amit86 01-05-2012 02:16 PM

Add 'Format' to CKEditor
 
1 Attachment(s)
Hi all,

I am using VB 4.1.x and im trying to add formart and style to my CKEditor
tried using google, looking at the website itself, couldnt find the way to add those 'already included' plugins to CKEditor
Ive added a picture of CKEditors demo (from their website) of the 2 features im looking for


https://vborg.vbsupport.ru/attachmen...1&d=1325776595

Could anyone help out?

Thanks,
Amit

Amit86 01-07-2012 12:39 AM

a clue would be nice :(

Lynne 01-07-2012 04:07 PM

Adding the buttons is the easy part:
hook location - editor_toolbar_filter
PHP Code:

$toolbar[] = array('Styles','Format'); 

Getting them to actual work is going to take some effort. If you get it working, it would be nice if you would post what you did.

Amit86 01-08-2012 05:37 AM

CKEditor has been public for a while, Are you sure there is no available guide on how to enable all\part of its available plugins?

kh99 01-08-2012 02:58 PM

Like Lynne said above, the problem is not enabling the features but integrating them with vb. I think the issue is that the CKEditor style and format features produce HTML, but vb saves posts as plain text with bbcode. So you can enable the style and format drop-down menus in the editor, but when you submit it the formatting will have to be converted to bbcode or else discarded.

Amit86 01-09-2012 05:42 AM

what if HTML was enabled in the thread/article
would that do the trick?

kh99 01-09-2012 12:26 PM

Well, I tried that and it still has problems, although I did get part of the colored text to post. So maybe what I posted above isn't the main problem, but I believe it has something to do with WYSIWYG to BBcode conversion.

Amit86 01-09-2012 01:23 PM

Is it possible to use true CKEditor with vbulletin and disable the one vb offers?

on that note, you might assist me on another matter,
if i copy code that has tabs (or indents) WYS stips them, do you know a way to disable that strip?

kh99 01-09-2012 01:31 PM

I tried it and I see what you mean about tabs, but I don't know. I do know that in html all strings of white space get condensed to a single space, so I don't think there's any easy way to represent tabs, except maybe a string of $nbsp;? It's not really my area, I'm more of a programmer.

Amit86 01-09-2012 01:50 PM

but as you said vB uses plain text and should strip tabs as html does
in fact, it doesnt even add a space it just strips the tabs


All times are GMT. The time now is 09:18 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.01105 seconds
  • Memory Usage 1,728KB
  • 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)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete