Copy Table Row in CKEditor

Hello again

On my journey with XWiki I stumbled up on CKEditor and tables …

One handy function would be to be able copy table rows. But I was unsuccessful with that. When copying a row and inserting it on the next one, the table cells are inserted into the first cell of the target row (all cells from the source row).

Is there a way to achieve this? I read that this was often a challenge with CKE in general …

Best regards

Beat

The CKEditor integration in XWiki doesn’t do any significant customization to the table editing features, so if the standard CKEditor doesn’t support table row copy & paste then XWiki won’t have it either. I’ve no idea if there is a third party plugin or any other way to achieve this.

Hope this helps,
Marius

Marius

Thank you for the update. In various forums on the internet, issues were reported with the fore mentioned functionality. Most of them were addressed mean while. I tested it with:

http://nightly.ckeditor.com/17-10-30-07-04/standard/samples/

and it works well in the nightly build. Didn’t find out easily what version of CKEditor is bundled with the 1.14 version of the extension …

I just realized that the 8.4.5 track of XWiki installs the compatible version of extensions - which is fine - but most of them are not the latest version of the extension (somehow logical).

This begs the question if I would be better off with the 9.x track in the intranet I intend to build? This would provide updated extensions and patches in case of issues …

Best regards

Beat

CKEditor Integration v1.14 uses CKEditor 4.6.2 https://github.com/xwiki-contrib/application-ckeditor/blob/application-ckeditor-1.14/pom.xml#L62
CKEditor Integration v1.18 (latest) uses CKEditor 4.7.3 (latest) https://github.com/xwiki-contrib/application-ckeditor/blob/master/pom.xml#L50
The nightly build you tested is v4.8.0 which is not yet released AFAICS. I don’t know if the feature you’re looking for was fixed between 4.6.2 and 4.7.3 or after.

If you have XWiki 8.4.5 then you can upgrade the CKEditor Integration extension to its latest version, from the Wiki Administration.

Hope this helps,
Marius

Marius

Thank you for the detailed answer. I can confirm that v1.18 did resolve the copy table row issue and it now works as expected.

BTW: is there a check during the installation/upgrade of an Extension if it will work with an older Wiki version? Or in other words is it “safe” to always upgrade to the latest version?

Best regards

Beat

Each XWiki extension specifies the minimum XWiki version it works with. For instance, CKEditor Integration v1.18 has XWIki 6.2.5 as minimum version (you can get this info from the extension page http://extensions.xwiki.org/xwiki/bin/view/Extension/CKEditor+Integration ). The Extension Manager won’t allow you to install CKEditor v1.18 on an older XWiki instance.

So to answer your question, if you can install an extension with the Extension Manager then it should work. If it’s not the case then it’s a bug. It’s hard to say whether it’s safe or not. Obviously upgrading to a major version (e.g. 2.3 to 3.1) is more dangerous than upgrading to a minor (bug fix) version (e.g. 2.3 to 2.5). I any case, you can downgrade from the Extension Manager if you notice problems after the upgrade.

Hope this helps,
Marius

Marius

Thank you very much for the detailed answer and patience.

OK, I see (again lazy me - didn’t notice the “+” on the compatibility string). Great to know that there is a “safeguard” to avoid incompatible extensions.

Best regards

Beat