Make a simple table with the inline or wysiwyg editor. Open table properties and set “Headers” to “First Row” and save. Go to edit mode again (inline or wysiwyg) and look for the table properties. “Headers” is shown as "None. The same behaviour when set “Both”. After saving and editing you will see “First Column”.
And something more: if I set “First Row”, save, edit again, see “None”, change “Border size” then the first row will stay a header. So my first setting of “Headers” isn’t changed. One the one hand that’s good. On the other hand isn’t done what I have looked onto.
I faced this issue with xwiki 13.10.6, 13.10.10 and 14.10.11-node1 (playground.xwiki.org). Can you confirm this as an issue? Should I open up a ticket? Would CKEDITOR the right project?
I think this is related to XWIKI-18931: Table header are not put in <thead>.
When you save, you leave the editor, and there’s no wiki syntax for <thead>, so at the moment this information about horizontal header is lost. When you come back, it cannot find what it’s expecting (ie, a <thead> node) and sets the field as ‘None’. Same for ‘Both’, it cannot detect the <thead> node that marks horizontal headers with CKEditors, but finds the marks for the vertical headers (they don’t rely on thead, but something else, and it seems to work well), so it sets the field as a ‘First Column’.
It’s been a while I looked at XWIKI-18931, but I can’t understand why this happens. :S
I tried to reproduce it and can’t find the point about changing ‘Border size’. Visually, the first row is still marked as a header AFAIK even without changing border size (semantically things change and that’s why CKEditor reacts poorly).
Maybe it’d be interesting to open an issue for xwiki-platofrm → CKEditor for this second point