You are here: Foswiki>Tasks Web>Item11493 (11 Feb 2015, GeorgeClark)Edit Attach

Item11493: Trouble with table function in TinyMCE

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: patch
Applies To: Extension
Component: TinyMCEPlugin
Branches:
Reported By: KlausMann
Waiting For:
Last Change By: GeorgeClark
The table feature in TinyMCE works very badly. Formatting of cells, merge, or split, etc. Colors, Borders be implemented only rarely and often destroyed. (TablePlugin installed.)

-- KlausMann - 01 Feb 2012

Hello Klaus, thanks for your bug report!

  1. Which version of TinyMCEPlugin are you using? Check at the bottom of your System.TinyMCEPlugin.
  2. Which version of WysiwygPlugin are you using? Check at the bottom of your System.WysiwygPlugin.
  3. Which web browser, and what version of it are you using?
  4. Split/merge cells are working just fine for me. Can you please give more detail? Such as a copy of the topic you're having trouble with, and a list of instructions we can follow to reproduce the problem.
  5. Are these the same problems you mentioned in Item11469? Did you try my suggestion there?

As I already stated in Item11469, Foswiki's TML syntax only supports very basic tables without any formatting/styles. As I already stated in Item11469, if you want full-featured HTML tables, please follow the advice in Support.Faq43.

I need more detail from you before I can do anything with this task.

-- PaulHarvey - 02 Feb 2012

  1. TinyMCEPlugin-Version: 13315 (2011-12-06)
  2. WYSIWYGPlugin-Version: 13315 (2011-12-06)
  3. Firefox: 9.0.1
  4. No, item11469 was only the problem with the colorpicker
  5. copy of topic makes no sense because in wikitext there is after all only this:
   
   
after my testing. insert a table with tinymce-table-button > marking one row >merge/split button not atic! > then trying backroundcolor with table-button(existing table is still marked) > Advanced > Backroundcolor > Palette > chousing color > klick "insert" > no effect on the existing table but all textouitside is gon away!!! more information needed?

-- KlausMann - 02 Feb 2012

You say "No, item11469 was only the problem with the colorpicker" - and then you say "then trying backroundcolor with table-button..."

Please, for the 3rd time... this will not work! As I already said in Item11469, Foswiki TML currently cannot express background-colours in table cells.

I will briefly explain that TinyMCE does not understand Foswiki TML/WikiSyntax. It only understands XHTML. So you when you make a table in TinyMCE, WysiwygPlugin is converting that XHTML which TinyMCE returns, i.e.
<table><tr><td>a</td><td>b</td></tr></table>
into plain old vanilla Foswiki TML WikiSyntax tables, i.e.
| a | b |
.

It is in that conversion process, that these formatting styles are being lost, because WikiText tables have no way of specifying custom border/colour/etc. attributes.

So, if you want:
  • Adjustable table borders
  • Adjustable cell borders
  • Table/cell background-colours

... it cannot be done with "vanilla" WikiText syntax.

But, you CAN tell WysiwygPlugin to leave XHTML tables as XHTML. Follow the instructions in Support.Faq43 to do that.

I really do want to help, and I'm sorry our TinyMCE editor gives you formatting/style options which are discarded by Foswiki, but this is a limitation of WikiSyntax which can be overcome if you follow the advice of Support.Faq43 and allow your tables to be saved as XHTML.

Finally, for the merge/split cell problem, I just cannot reproduce it. I believe I have followed your instructions, with Firefox 9, but it's working fine for me.

I am now recording a screencast to show you what I am doing, and you can tell me if you're doing something different.

-- PaulHarvey - 02 Feb 2012

Okay, when I went to record the video using the version of TinyMCEPlugin in 1.1.4 (same as yours), I did observe:
  • Cannot select table background colour at all (always sets to black).
  • If you create a table, then highlight a row, you can merge/split cells just fine. But if you try the same on a table that already existed after a save & continue, the buttons do not become active. This seems to only happen on empty tables.

None of these problems are present in the newer TinyMCEPlugin.

If you are feeling adventurous, you may wish to install Extensions/Testing.TinyMCEPlugin. You will also need the accompanying Extensions/Testing.WysiwygPlugin.

I will try to release a new official version of TinyMCEPlugin & WysiwygPlugin in the next week or two.

Setting to confirmed.

-- PaulHarvey - 03 Feb 2012

Thank you and please excuse my misunderstanding of "Foswiki TML currently cannot express background-colours in table cells". i will have a closer look to Faq43 and yes, it happens with empty cells, if not empty, merge/split working fine here! Thank you!

-- KlausMann - 03 Feb 2012

Changing this to No Action. Foswiki 1.2 will release with updated TMCE, and the new release of TMCE has been separately uploaded to foswiki.org

-- GeorgeClark - 11 Feb 2015
 

ItemTemplate edit

Summary Trouble with table function in TinyMCE
ReportedBy KlausMann
Codebase 1.1.4, trunk
SVN Range
AppliesTo Extension
Component TinyMCEPlugin
Priority Normal
CurrentState No Action Required
WaitingFor
Checkins
TargetRelease patch
ReleasedIn n/a
CheckinsOnBranches
trunkCheckins
masterCheckins
ItemBranchCheckins
Release01x01Checkins
Topic revision: r6 - 11 Feb 2015, GeorgeClark
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy