vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   New Posting Features - Chrome Browser Notice (For Quick Reply Editor) - How to fix non-working space bar (https://vborg.vbsupport.ru/showthread.php?t=323807)

tpearl5 01-25-2017 11:33 AM

Quote:

Originally Posted by Kane@airrifle (Post 2579296)
I take no credit, this kludge was posted elsewhere by man1c.

To get it to work in PMs and Quick reply add this to the bottom of editor_contents.css.

Code:

/*-- Temporary Chrome Spacebar Fix --*/
@supports (-webkit-appearance:none) {
body.forum {white-space: pre-wrap;}
body.content {white-space: pre-wrap;}
}


Thanks for this! Is it just putting the cursor before the quote tag, or am I missing something?

sticky 01-30-2017 01:52 AM

Anyone know if the latest chrome update resolves this?

Kane@airrifle 02-01-2017 04:09 AM

Quote:

Originally Posted by tpearl5 (Post 2581320)
Thanks for this! Is it just putting the cursor before the quote tag, or am I missing something?

Other than occasionally testing I never use the WYSIWYG editor myself so I do not really know what the usual cursor position is for it.

After complaints about the massive amount of whitespace the above css kludge adds to quoted contents while editing, particularly irksome when the post is long, I went another route in the end.

I removed the css from editor_contents.css and kept Quick Edit turned off. In New Posting Templates/newpost_quote I simply added 3 blank lines below:
Code:

{QUOTE={vb:raw originalposter}]{vb:raw pagetext}[/QUOTE}
It has the same effect as the css kludge without the aggravation of the white space in the quoted content. Users imply move the cursor to the 1st, 2nd or 3rd line below the quote and reply. If you can live an under quote you can put the blank lines above the code.

Quote:

Originally Posted by sticky (Post 2581520)
Anyone know if the latest chrome update resolves this?

BirdOPrey5's mod is still relevant with the latest version of Chrome ( 56.0.2924.76 ). I don't think Google will fix it. I don't think the baked in CKEditor needs a complete overhaul either, as far as I know only two files need updating, ckeditor.js and the enhancedsourcearea plugin.

tpearl5 02-01-2017 11:37 AM

Quote:

Originally Posted by Kane@airrifle (Post 2581633)
Other than occasionally testing I never use the WYSIWYG editor myself so I do not really know what the usual cursor position is for it.

After complaints about the massive amount of whitespace the above css kludge adds to quoted contents while editing, particularly irksome when the post is long, I went another route in the end.

I removed the css from editor_contents.css and kept Quick Edit turned off. In New Posting Templates/newpost_quote I simply added 3 blank lines below:
Code:

{QUOTE={vb:raw originalposter}]{vb:raw pagetext}[/QUOTE}
It has the same effect as the css kludge without the aggravation of the white space in the quoted content. Users imply move the cursor to the 1st, 2nd or 3rd line below the quote and reply. If you can live an under quote you can put the blank lines above the code.



BirdOPrey5's mod is still relevant with the latest version of Chrome ( 56.0.2924.76 ). I don't think Google will fix it. I don't think the baked in CKEditor needs a complete overhaul either, as far as I know only two files need updating, ckeditor.js and the enhancedsourcearea plugin.

Yes, I noticed the extra line breaks too.

I'm going to do some testing with the updated ckeditor rar (v3.6.6) file posted here: http://www.vbulletin-ressources.com/...10-et-ckeditor

and see if it makes a difference.

tpearl5 02-01-2017 01:36 PM

Okay, yeah, that rar isn't going to work without modifying things further. It looks like they just merged the vbulletin plugin with the latest ckeditor code, but by default vbulletin doesn't use the core directory.

Quote:

Originally Posted by Kane@airrifle (Post 2581633)
I don't think the baked in CKEditor needs a complete overhaul either, as far as I know only two files need updating, ckeditor.js and the enhancedsourcearea plugin.

In ckeditor.js there's actually a function to insert the enter key
Code:

(function () {n.add('enterkey', {
If that were to be used after clicking reply with quote that would probably solve the issue. Unfortunately I don't know enough JavaScript to modify things myself.

Flipfloptrader 03-27-2017 11:31 AM

Installed and working, exactly what I was after, thank you.

War Machine 04-01-2017 02:48 PM

I can't translate the whole phrase. Everytime i try it my site crash in white page. Any solutions?

sticky 04-01-2017 03:27 PM

Quote:

Originally Posted by tpearl5 (Post 2581640)
Okay, yeah, that rar isn't going to work without modifying things further. It looks like they just merged the vbulletin plugin with the latest ckeditor code, but by default vbulletin doesn't use the core directory.



In ckeditor.js there's actually a function to insert the enter key
Code:

(function () {n.add('enterkey', {
If that were to be used after clicking reply with quote that would probably solve the issue. Unfortunately I don't know enough JavaScript to modify things myself.

Any update or solution?

BirdOPrey5 04-02-2017 08:48 AM

Quote:

Originally Posted by War Machine (Post 2584583)
I can't translate the whole phrase. Everytime i try it my site crash in white page. Any solutions?

Check your PHP error log right after you get a white screen. It will be one of the most recent errors listed in the log. That will help figure out the issue. My guess, perhaps, out of memory, but wild guess without actual error.

creative-friend 05-01-2017 02:40 PM

Now space bar working fine on WYSIWYG mode

BirdOPrey5 05-05-2017 03:35 PM

I haven't tested it but someone claims to have a working work-around here: https://theadminzone.com/threads/php...7#post-1090166


All times are GMT. The time now is 01:26 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.01103 seconds
  • Memory Usage 1,750KB
  • 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
  • (5)bbcode_code_printable
  • (7)bbcode_quote_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
  • (11)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