Browse Source

Add cut,copy,paste;icons,cmds,apis,buttons,menus + RN

pull/1563/head
Tyler Kelly 5 years ago
parent
commit
155c3dc242
  1. 14
      _includes/commands/table-cmds.md
  2. 8
      _includes/configuration/icon_list.md
  3. 17
      advanced/editor-control-identifiers.md
  4. 3
      images/icons/cut-column.svg
  5. 3
      images/icons/cut-row.svg
  6. 3
      images/icons/duplicate-column.svg
  7. 3
      images/icons/duplicate-row.svg
  8. 3
      images/icons/paste-column-after.svg
  9. 3
      images/icons/paste-column-before.svg
  10. 3
      images/icons/paste-row-after.svg
  11. 3
      images/icons/paste-row-before.svg
  12. 2
      plugins/table.md
  13. 17
      release-notes/release-notes54.md

14
_includes/commands/table-cmds.md

@ -9,12 +9,16 @@
| mceTableInsertColAfter | Inserts a column after the current column. |
| mceTableDeleteCol | Deletes the current column. |
| mceTableDeleteRow | Deletes the current row. |
| mceTableCutRow | Cuts the current row into the clipboard. |
| mceTableCopyRow | Copies the current row into the clipboard. |
| mceTableCutRow | Cuts the current row into the clipboard. |
| mceTableCutCol | Cuts the current column into the clipboard. {{site.requires_5_4v}} |
| mceTableCopyRow | Copies the current row into the clipboard. |
| mceTableCopyCol | Copies the current column into the clipboard. {{site.requires_5_4v}} |
| mceTablePasteRowBefore | Paste the clipboard row before the current row. |
| mceTablePasteRowAfter | Paste the clipboard row after the current row. |
| mceTablePasteColBefore | Paste the clipboard column before the current row. {{site.requires_5_4v}} |
| mceTablePasteColAfter | Paste the clipboard column after the current row. {{site.requires_5_4v}} |
| mceTableDelete | Deletes the current table. |
| mceInsertTable | Opens the insert/edit table dialog. |
| mceInsertTable | Opens the insert/edit table dialog. |
| mceTableProps | Opens the Table Properties dialog. |
| mceTableRowProps | Opens the table row properties dialog. |
| mceTableCellProps | Opens the table cell properties dialog. |
@ -31,9 +35,13 @@ tinymce.activeEditor.execCommand('mceTableInsertColAfter');
tinymce.activeEditor.execCommand('mceTableDeleteCol');
tinymce.activeEditor.execCommand('mceTableDeleteRow');
tinymce.activeEditor.execCommand('mceTableCutRow');
tinymce.activeEditor.execCommand('mceTableCutCol');
tinymce.activeEditor.execCommand('mceTableCopyRow');
tinymce.activeEditor.execCommand('mceTableCopyCol');
tinymce.activeEditor.execCommand('mceTablePasteRowBefore');
tinymce.activeEditor.execCommand('mceTablePasteRowAfter');
tinymce.activeEditor.execCommand('mceTablePasteColBefore');
tinymce.activeEditor.execCommand('mceTablePasteColAfter');
tinymce.activeEditor.execCommand('mceTableDelete');
tinymce.activeEditor.execCommand('mceInsertTable');
tinymce.activeEditor.execCommand('mceTableProps');

8
_includes/configuration/icon_list.md

@ -36,9 +36,13 @@
| `contrast` | ![contrast.svg]({{ site.baseurl }}/images/icons/contrast.svg) | `contrast.svg` |
| `copy` | ![copy.svg]({{ site.baseurl }}/images/icons/copy.svg) | `copy.svg` |
| `crop` | ![crop.svg]({{ site.baseurl }}/images/icons/crop.svg) | `crop.svg` |
| `cut-column` | ![cut-column.svg]({{ site.baseurl }}/images/icons/cut-column.svg) | `cut-column.svg` |
| `cut-row` | ![cut-row.svg]({{ site.baseurl }}/images/icons/cut-row.svg) | `cut-row.svg` |
| `cut` | ![cut.svg]({{ site.baseurl }}/images/icons/cut.svg) | `cut.svg` |
| `document-properties` | ![document-properties.svg]({{ site.baseurl }}/images/icons/document-properties.svg) | `document-properties.svg` |
| `drag` | ![drag.svg]({{ site.baseurl }}/images/icons/drag.svg) | `drag.svg` |
| `duplicate-column` | ![duplicate-column.svg]({{ site.baseurl }}/images/icons/duplicate-column.svg) | `duplicate-column.svg` |
| `duplicate-row` | ![duplicate-row.svg]({{ site.baseurl }}/images/icons/duplicate-row.svg) | `duplicate-row.svg` |
| `duplicate` | ![duplicate.svg]({{ site.baseurl }}/images/icons/duplicate.svg) | `duplicate.svg` |
| `edit-block` | ![edit-block.svg]({{ site.baseurl }}/images/icons/edit-block.svg) | `edit-block.svg` |
| `edit-image` | ![edit-image.svg]({{ site.baseurl }}/images/icons/edit-image.svg) | `edit-image.svg` |
@ -95,6 +99,10 @@
| `outdent` | ![outdent.svg]({{ site.baseurl }}/images/icons/outdent.svg) | `outdent.svg` |
| `page-break` | ![page-break.svg]({{ site.baseurl }}/images/icons/page-break.svg) | `page-break.svg` |
| `paragraph` | ![paragraph.svg]({{ site.baseurl }}/images/icons/paragraph.svg) | `paragraph.svg` |
| `paste-column-after` | ![paste-column-after.svg]({{ site.baseurl }}/images/icons/paste-column-after.svg) | `paste-column-after.svg` |
| `paste-column-before` | ![paste-column-before.svg]({{ site.baseurl }}/images/icons/paste-column-before.svg) | `paste-column-before.svg` |
| `paste-row-after` | ![paste-row-after.svg]({{ site.baseurl }}/images/icons/paste-row-after.svg) | `paste-row-after.svg` |
| `paste-row-before` | ![paste-row-before.svg]({{ site.baseurl }}/images/icons/paste-row-before.svg) | `paste-row-before.svg` |
| `paste` | ![paste.svg]({{ site.baseurl }}/images/icons/paste.svg) | `paste.svg` |
| `paste-text` | ![paste-text.svg]({{ site.baseurl }}/images/icons/paste-text.svg) | `paste-text.svg` |
| `permanent-pen` | ![permanent-pen.svg]({{ site.baseurl }}/images/icons/permanent-pen.svg) | `permanent-pen.svg` |

17
advanced/editor-control-identifiers.md

@ -7,7 +7,12 @@ description: Complete list of control identifiers.
keywords: aligncenter alignjustify alignleft alignright anchor backcolor blockquote bold bullist cancel cell charmap code column controls copy cut deletetable emoticons fontselect fontsizeselect forecolor formats formatselect fullscreen hr image indent insertdatetime insertfile inserttable italic link ltr media newdocument nonbreaking numlist outdent pagebreak paste pastetext preview print redo removeformat row rtl save searchreplace selectall spellchecker strikethrough styleselect subscript superscript table tableprops template toolbar underline undo unlink visualaid visualblocks visualchars a11ycheck
---
Use the [toolbar]({{ site.baseurl }}/configure/editor-appearance/#toolbar) or the [menu]({{ site.baseurl }}/configure/editor-appearance/#menu) configuration options.
For use with the [toolbar]({{ site.baseurl }}/configure/editor-appearance/#toolbar) or the [menu]({{ site.baseurl }}/configure/editor-appearance/#menu) configuration options.
## Outline
- [Toolbar controls (toolbar button identifiers)](#toolbarcontrols)
- [Menu controls (menu section and menu item identifiers)](#menucontrols)
## Toolbar controls
@ -100,9 +105,13 @@ tinyMCE.activeEditor.ui.registry.getAll().buttons
| cancel | [save]({{ site.baseurl }}/plugins/save/) | Cancels/Resets the editor contents to it's initial state. |
| save | [save]({{ site.baseurl }}/plugins/save/) | Saves the current editor contents to a form or ajax call. |
| searchreplace | [searchreplace]({{ site.baseurl }}/plugins/searchreplace/) | Searches and/or Replaces contents within the editor. |
| spellchecker | [spellchecker]({{ site.baseurl }}/plugins/spellchecker/) | Spellchecks the current editor contents. |
| spellchecker | [spellchecker]({{ site.baseurl }}/plugins/spellchecker/) | Spellchecks the current editor contents. |
| table | [table]({{ site.baseurl }}/plugins/table/) | Creates/Edits table elements. |
| tablecellprops | [table]({{ site.baseurl }}/plugins/table/) | Opens the Cell properties dialog. |
| tablecopycol | [table]({{ site.baseurl }}/plugins/table/) | Copies the current column to the clipboard. {{site.requires_5_4v}} |
| tablecopyrow | [table]({{ site.baseurl }}/plugins/table/) | Copies the current row to the clipboard. {{site.requires_5_4v}} |
| tablecutcol | [table]({{ site.baseurl }}/plugins/table/) | Cuts the current column to the clipboard. {{site.requires_5_4v}} |
| tablecutrow | [table]({{ site.baseurl }}/plugins/table/) | Cuts the current row to the clipboard. {{site.requires_5_4v}} |
| tabledelete | [table]({{ site.baseurl }}/plugins/table/) | Deletes table. |
| tabledeletecol | [table]({{ site.baseurl }}/plugins/table/) | Deletes the selected column. |
| tabledeleterow | [table]({{ site.baseurl }}/plugins/table/) | Deletes the current row row. |
@ -112,6 +121,10 @@ tinyMCE.activeEditor.ui.registry.getAll().buttons
| tableinsertrowafter | [table]({{ site.baseurl }}/plugins/table/) | Inserts a new row after the current one. |
| tableinsertrowbefore | [table]({{ site.baseurl }}/plugins/table/) | Inserts a new row before the current one. |
| tablemergecells | [table]({{ site.baseurl }}/plugins/table/) | Merges the selected cells. |
| tablepastecolafter | [table]({{ site.baseurl }}/plugins/table/) | Pastes the column in the clipboard after the current column. {{site.requires_5_4v}} |
| tablepastecolbefore | [table]({{ site.baseurl }}/plugins/table/) | Pastes the column in the clipboard before the current column. {{site.requires_5_4v}} |
| tablepasterowafter | [table]({{ site.baseurl }}/plugins/table/) | Pastes the row in the clipboard after the current row. {{site.requires_5_4v}} |
| tablepasterowbefore | [table]({{ site.baseurl }}/plugins/table/) | Pastes the row in the clipboard before the current row. {{site.requires_5_4v}} |
| tableprops | [table]({{ site.baseurl }}/plugins/table/) | Opens the table properties dialog. |
| tablerowprops | [table]({{ site.baseurl }}/plugins/table/) | Opens the Row properties dialog. |
| tablesplitcells | [table]({{ site.baseurl }}/plugins/table/) | Splits the current merged cell. |

3
images/icons/cut-column.svg
File diff suppressed because it is too large
View File

3
images/icons/cut-row.svg
File diff suppressed because it is too large
View File

3
images/icons/duplicate-column.svg

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M17,6 L17,22 L10,22 L10,6 L17,6 Z M15,8 L11.999,8 L11.999,20 L15,20 L15,8 Z M13,2 L13,4 L7.999,4 L7.999,19 L6,19 L6,2 L13,2 Z"/>
</svg>

3
images/icons/duplicate-row.svg

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path d="M22,11 L22,18 L6,18 L6,11 L22,11 Z M20,13 L8,13 L8,16 L20,16 L20,13 Z M19,7 L19,9 L4,9 L4,14 L2,14 L2,7 L19,7 Z"/>
</svg>

3
images/icons/paste-column-after.svg

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M12,1 C13.3062521,1 14.4175144,1.8348501 14.8293257,3.00008893 L18,3 C19.0543618,3 19.9181651,3.81587779 19.9945143,4.85073766 L20,5 L20,7 L18,7 L18,5 L16,5 L16,6 C16,6.55228475 15.5522847,7 15,7 L9,7 C8.44771525,7 8,6.55228475 8,6 L8,5 L6,5 L6,18 L13,18 L13,20 L6,20 C4.9456382,20 4.08183488,19.1841222 4.00548574,18.1492623 L4,18 L4,5 C4,3.9456382 4.81587779,3.08183488 5.85073766,3.00548574 L6,3 L9.17067428,3.00008893 C9.58248558,1.8348501 10.6937479,1 12,1 Z M20,8 L20,20 L14,20 L14,8 L20,8 Z M18.5,9.5 L15.5,9.5 L15.5,18.5 L18.5,18.5 L18.5,9.5 Z M12,3 C11.4477153,3 11,3.44771525 11,4 C11,4.55228475 11.4477153,5 12,5 C12.5522847,5 13,4.55228475 13,4 C13,3.44771525 12.5522847,3 12,3 Z"/>
</svg>

3
images/icons/paste-column-before.svg

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M12,1 C13.3062521,1 14.4175144,1.8348501 14.8293257,3.00008893 L18,3 C19.0543618,3 19.9181651,3.81587779 19.9945143,4.85073766 L20,5 L20,18 C20,19.0543618 19.1841222,19.9181651 18.1492623,19.9945143 L18,20 L11,20 L11,18 L18,18 L18,5 L16,5 L16,6 C16,6.55228475 15.5522847,7 15,7 L9,7 C8.44771525,7 8,6.55228475 8,6 L8,5 L6,5 L6,7 L4,7 L4,5 C4,3.9456382 4.81587779,3.08183488 5.85073766,3.00548574 L6,3 L9.17067428,3.00008893 C9.58248558,1.8348501 10.6937479,1 12,1 Z M10,8 L10,20 L4,20 L4,8 L10,8 Z M8.5,9.5 L5.5,9.5 L5.5,18.5 L8.5,18.5 L8.5,9.5 Z M12,3 C11.4477153,3 11,3.44771525 11,4 C11,4.55228475 11.4477153,5 12,5 C12.5522847,5 13,4.55228475 13,4 C13,3.44771525 12.5522847,3 12,3 Z"/>
</svg>

3
images/icons/paste-row-after.svg

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M12,1 C13.3062521,1 14.4175144,1.8348501 14.8293257,3.00008893 L18,3 C19.0543618,3 19.9181651,3.81587779 19.9945143,4.85073766 L20,5 L20,11 L18,11 L18,5 L16,5 L16,6 C16,6.55228475 15.5522847,7 15,7 L9,7 C8.44771525,7 8,6.55228475 8,6 L8,5 L6,5 L6,18 L20,18 C20,19.0543618 19.1841222,19.9181651 18.1492623,19.9945143 L18,20 L6,20 C4.9456382,20 4.08183488,19.1841222 4.00548574,18.1492623 L4,18 L4,5 C4,3.9456382 4.81587779,3.08183488 5.85073766,3.00548574 L6,3 L9.17067428,3.00008893 C9.58248558,1.8348501 10.6937479,1 12,1 Z M22,12 L22,17 L8,17 L8,12 L22,12 Z M20.5,13.5 L9.5,13.5 L9.5,15.5 L20.5,15.5 L20.5,13.5 Z M12,3 C11.4477153,3 11,3.44771525 11,4 C11,4.55228475 11.4477153,5 12,5 C12.5522847,5 13,4.55228475 13,4 C13,3.44771525 12.5522847,3 12,3 Z"/>
</svg>

3
images/icons/paste-row-before.svg

@ -0,0 +1,3 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
<path fill-rule="evenodd" d="M12,1 C13.3062521,1 14.4175144,1.8348501 14.8293257,3.00008893 L18,3 C19.0543618,3 19.9181651,3.81587779 19.9945143,4.85073766 L20,5 L20,7 L18,7 L18,5 L16,5 L16,6 C16,6.55228475 15.5522847,7 15,7 L9,7 C8.44771525,7 8,6.55228475 8,6 L8,5 L6,5 L6,18 L18,18 L18,14 L20,14 L20,18 C20,19.0543618 19.1841222,19.9181651 18.1492623,19.9945143 L18,20 L6,20 C4.9456382,20 4.08183488,19.1841222 4.00548574,18.1492623 L4,18 L4,5 C4,3.9456382 4.81587779,3.08183488 5.85073766,3.00548574 L6,3 L9.17067428,3.00008893 C9.58248558,1.8348501 10.6937479,1 12,1 Z M22,8 L22,13 L8,13 L8,8 L22,8 Z M20.5,9.5 L9.5,9.5 L9.5,11.5 L20.5,11.5 L20.5,9.5 Z M12,3 C11.4477153,3 11,3.44771525 11,4 C11,4.55228475 11.4477153,5 12,5 C12.5522847,5 13,4.55228475 13,4 C13,3.44771525 12.5522847,3 12,3 Z"/>
</svg>

2
plugins/table.md

@ -409,6 +409,8 @@ tinymce.init({
| Name | Arguments | Description |
|------| ------| ----------- |
| insertTable | columns: number, rows: number | Insert a table with the given number of columns and rows at the current cursor location |
| getClipboardCols | | Returns the data for any columns cut or copied using `mceTableCutCol` or `mceTableCopyCol`. {{site.requires_5_4v}} |
| setClipboardCols | cols: HTMLElement[] | Set the data to be used by `mceTablePasteColBefore` or `mceTablePasteColAfter` for pasting columns into a table. {{site.requires_5_4v}} |
| getClipboardRows | | Returns the data for any rows cut or copied using `mceTableCutRow` or `mceTableCopyRow` |
| setClipboardRows | rows: HTMLElement[] | Set the data to be used by `mceTablePasteRowBefore` or `mceTablePasteRowAfter` for pasting rows into a table |

17
release-notes/release-notes54.md

@ -23,7 +23,22 @@ These release notes provide an overview of the changes for {{site.productname}}
The following new features and enhancements were added for the {{site.productname}} 5.4 release.
###
### Updates and additions to the Table plugin
The {{site.productname}} 5.4 release includes the following improvements for the table (`table`) plugin:
- Adds: commands, APIs, toolbar buttons, icons, and menu items for; cut, copy, and paste columns.
- Adds toolbar buttons and icons for cut, copy, and paste rows.
For information on the table plugin, see: [Table plugin]({{site.baseurl}}/plugins/table/).
For a list of:
- Toolbar buttons, including table-related toolbar buttons, see: [Editor control identifiers - Toolbar controls]({{site.baseurl}}/advanced/editor-control-identifiers/#toolbarcontrols).
- Menu items, including table-related menu items and menu sections, see: [Editor control identifiers - Menu controls]({{site.baseurl}}/advanced/editor-control-identifiers/#menucontrols).
- Available icons, including table-related icons, see: [Editor icon identifiers]({{site.baseurl}}/advanced/editor-icon-identifiers/).
- Table plugin APIs, see: [Table plugin - APIs]({{site.baseurl}}/plugins/table/#api).
- Table plugin commands, see: [Table plugin - Commands]({{site.baseurl}}/plugins/table/#commands).
## Accompanying Premium Plugin changes

Loading…
Cancel
Save