• Register
    • Help

    striker  0 Items
    Currently Supporting
    • Home
    • News
    • Forum
    • Wiki
    • Support
      • Manage Subscriptions
      • FAQ
      • Support For
        • VaultWiki 4.x Series
        • VaultWiki.org Site
    • What's New?
    • Buy Now
    • Manual
    • 
    • Support
    • VaultWiki 3.x Series
    • Bug
    • Table issues - pasting from word in CKEditor

    1. Welcome to VaultWiki.org, home of the wiki add-on for vBulletin and XenForo!

      VaultWiki allows your existing forum users to collaborate on creating and managing a site's content pages. VaultWiki is a fully-featured and fully-supported wiki solution for vBulletin and XenForo.

      The VaultWiki Team encourages you to join our community of forum administrators and check out VaultWiki for yourself.

    Issue: Table issues - pasting from word in CKEditor

    • Issue Tools
      • View Changes
    1. issueid=2463 September 26, 2011 1:48 PM
      tagman tagman is offline
      Junior Member
      Table issues - pasting from word in CKEditor

      I tried pasting something from a word document that happens to contain a table into a CMS article. When I save it I get the error below at the top of the page.
      Code:
      Warning: Invalid argument supplied for foreach() in [path]/vault/class/bbcode/ckeditor.php on line 195
      The article looks ok except for where the table is. I get a whole bunch of
      Code:
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD]
      Where the cells don't format properly. Any ideas? Is the error related to the table not formating properly or is that a CKEditor issue? I tried turning off the wiki and saving it that way but I get the same error.

      I'm running VW 3.0.13 and VB 4.1.5.
    Issue Details
    Issue Number 2463
    Issue Type Bug
    Project VaultWiki 3.x Series
    Category Text Editor (WYSIWYG, etc)
    Status Fixed
    Priority 5 - Minor Bugs / Small Tweaks
    Affected Version 3.0.13
    Fixed Version 3.0.14
    Milestone (none)
    Software DependencyAny
    Users able to reproduce bug 0
    Users unable to reproduce bug 0
    Attachments 0
    Assigned Users (none)
    Tags cke editor, Table




    1. September 26, 2011 2:06 PM
      pegasus pegasus is offline
      VaultWiki Team
      Please upgrade to 3.0.14. This issue was fixed in that version.
      Reply Reply  
    2. September 26, 2011 2:27 PM
      tagman tagman is offline
      Junior Member
      OK, I'll do that tonight when I get home from work, thanks.
      Reply Reply  
    3. October 10, 2011 4:34 PM
      tagman tagman is offline
      Junior Member
      Finally got around to upgrading to 3.0.14. Unfortunately I also upgraded vb to 4.1.7 beforehand. Now when I try pasting into a CMS article from Word I get the following error.

      Code:
      Fatal error: Non-static method vB_BbCodeParser::vB_BbcodeParser() cannot be called statically, assuming $this from incompatible context in /home/content/83/5107083/html/vault/class/bbcode/ckeditor.php on line 198
      Reply Reply  
    4. October 10, 2011 5:57 PM
      pegasus pegasus is offline
      VaultWiki Team
      In vault/class/bbcode/ckeditor.php, find:
      Code:
      vB_BbCodeParser::vB_BbCodeParser
      Replace with:
      Code:
      new vB_BbCodeParser
      Reply Reply  
    5. October 11, 2011 11:32 AM
      tagman tagman is offline
      Junior Member
      Thanks Pegasus, that got rid of the error but I'm still getting
      Code:
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD]
      after saving. The word doc has a table embedded in it.

      Here is the whole table data that is displayed after saving.
      Code:
      [TABLE="width: 671"][TR][TD]Beginning Balance
      [/TD][TD] 
      [/TD][TD] $*,****.** 
      [/TD][TD] 
      [/TD][/TR][TR][TD] Deposit Dues 7/27/11
      [/TD][TD] 
      [/TD][TD] $40.00 
      [/TD][TD] 
      [/TD][/TR][TR][TD] Deposit Dues 7/27/11
      [/TD][TD] 
      [/TD][TD] $25.00 
      [/TD][TD] 
      [/TD][/TR][TR][TD] Deposit Dues 8/11/11
      [/TD][TD] 
      [/TD][TD] $125.00 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] $*,****.** 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD]#2809 Emily G
      [/TD][TD]-335.63
      [/TD][TD] 
      [/TD][TD]Picnic
      [/TD][/TR][TR][TD]#2811 Paul G
      [/TD][TD]-24.26
      [/TD][TD] 
      [/TD][TD]Picnic
      [/TD][/TR][TR][TD]Ending Balance
      [/TD][TD] 
      [/TD][TD] $*,****.**
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD]Checks Written not on Statement
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD]#2810 Greg M
      [/TD][TD]-154.00
      [/TD][TD] 
      [/TD][TD]Picnic
      [/TD][/TR][TR][TD]#2813 Doug S
      [/TD][TD]-200.50
      [/TD][TD] 
      [/TD][TD]July & Aug Newsletters
      [/TD][/TR][TR][TD]#2815 Doug S
      [/TD][TD]-100.25
      [/TD][TD] 
      [/TD][TD]September Newsletter
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD]Deposits made, not on Statement
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] None
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] Current Checkbook Balance
      [/TD][TD] 
      [/TD][TD] $*,****.** 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD]Respectfully submitted,
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][TR][TD]Venita G
      [/TD][TD] 
      [/TD][TD] 
      [/TD][TD] 
      [/TD][/TR][/TABLE]
      Reply Reply  
    6. October 11, 2011 11:52 AM
      pegasus pegasus is offline
      VaultWiki Team
      Your VaultWiki table code is turned off, so it would not be affecting this. The table code you posted belongs to vBulletin, so if it's not parsing, I don't know. I noticed some flaws in their parser a few versions back, which may or may not be fixed in vB 4.1.7.
      Reply Reply  
    7. October 11, 2011 2:41 PM
      tagman tagman is offline
      Junior Member
      I just renamed the VaultWiki Table bb code to tbl (I didn't want to delete it). I then tried to paste from Word into a CMS article and it posted just fine. My table looks great just like it is supposed to. Now when I go back into my WIKI, all my tables are gone. I tried to rename the VaultWiki code back to table but VB is saying "There is already a BB code tag named 'table'. You may not create duplicate names." Seems like there is a big conflict between table codes here. Is there any way I can get my VW tables back?
      Reply Reply  
    8. October 11, 2011 5:01 PM
      pegasus pegasus is offline
      VaultWiki Team
      If you renamed the table BB-Code, VaultWiki doesn't know what its version of the code is anymore and can't handle it correctly. This is the BB-Code equivalent of varnames that you modified. The VaultWiki BB-Codes in the regular BB-Code manager are only placeholders (mainly for button icons, and Wiki Code Manager settings) and actually don't affect how the BB-Code is used internally. If you don't want to use VaultWiki's table code, disable it using the Wiki Code Manager.

      There is no way to use both. In order to get it back now, you'll need to manually edit the database table bbcode and change the "tbl" entries to "table" that way. By the way, the syntax for tables are different between vBulletin and VaultWiki. If you want [tr][td], use vBulletin's instead. If you were using the VaultWiki table since before 4.1.4, you should continue using that.

      Also, when you paste from Word, there is hidden garbage code mixed in with the table. Make sure to use vBulletin's Paste from Word button to insert your table this way. This will clean up the code and prevent weird things from happening every time you save.
      Reply Reply  
    + Reply

    Assigned Users
    Loading Please Wait
    Tags
    Loading Please Wait
    • Contact Us
    • License Agreement
    • Privacy
    • Terms
    • Top
    All times are GMT -4. The time now is 4:48 AM.
    This site uses cookies to help personalize content, to tailor your experience, and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Learn more… Accept Remind me later
  • striker
    Powered by vBulletin® Version 4.2.5 Beta 2
    Copyright © 2025 vBulletin Solutions Inc. All rights reserved.
    Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
    Copyright © 2008 - 2024 VaultWiki Team, Cracked Egg Studios, LLC.