# Copy Table Row in CKEditor

**URL:** <https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802>\
**Category:** Help / Discuss\
**Tags:** ckeditor, tables\
**Created:** [October 29, 2017, 10:42pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802 "2017-10-29T22:42:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beat\_Burgener](https://forum.xwiki.org/user_avatar/forum.xwiki.org/beat_burgener/32/413_2.png) [@Beat\_Burgener](https://forum.xwiki.org/u/Beat_Burgener)\
**Post date:** [October 29, 2017, 10:42pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/1 "2017-10-29T22:42:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [October 30, 2017, 10:32am UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/2 "2017-10-30T10:32:13Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Beat\_Burgener](https://forum.xwiki.org/user_avatar/forum.xwiki.org/beat_burgener/32/413_2.png) [@Beat\_Burgener](https://forum.xwiki.org/u/Beat_Burgener)\
**Post date:** [October 30, 2017, 8:13pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/3 "2017-10-30T20:13:08Z")

</div>

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:

> **[CKEditor 4 | Visual Text Editor for HTML](https://ckeditor.com/ckeditor-4/)**
>
> Fully Customizable WYSIWYG HTML Editor with the biggest number of Rich Text features. Enterprise-grade with 70 languages and the approval of millions.

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

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [October 31, 2017, 1:41pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/4 "2017-10-31T13:41:45Z")

</div>

CKEditor Integration v1.14 uses CKEditor 4.6.2 [application-ckeditor/pom.xml at application-ckeditor-1.14 · xwiki-attic/application-ckeditor · GitHub](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) [application-ckeditor/pom.xml at master · xwiki-attic/application-ckeditor · GitHub](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

---

<div class="post-metadata">

**Author:** ![Beat\_Burgener](https://forum.xwiki.org/user_avatar/forum.xwiki.org/beat_burgener/32/413_2.png) [@Beat\_Burgener](https://forum.xwiki.org/u/Beat_Burgener)\
**Post date:** [October 31, 2017, 7:23pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/5 "2017-10-31T19:23:36Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![mflorea](https://forum.xwiki.org/user_avatar/forum.xwiki.org/mflorea/32/49_2.png) [@mflorea](https://forum.xwiki.org/u/mflorea)\
**Post date:** [November 1, 2017, 4:11pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/6 "2017-11-01T16:11:39Z")

</div>

> [@Beat\_Burgener](#):
>
> 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?

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](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

---

<div class="post-metadata">

**Author:** ![Beat\_Burgener](https://forum.xwiki.org/user_avatar/forum.xwiki.org/beat_burgener/32/413_2.png) [@Beat\_Burgener](https://forum.xwiki.org/u/Beat_Burgener)\
**Post date:** [November 1, 2017, 9:56pm UTC](https://forum.xwiki.org/t/copy-table-row-in-ckeditor/802/7 "2017-11-01T21:56:24Z")

</div>

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
