edittable plugin

Compatible with DokuWiki

  • 2012-01-25 "Angua" yes
  • 2011-05-25 "Rincewind" yes
  • 2010-11-07 "Anteater" unknown

plugin provides a visual table editing and inserting interface.

Last updated on
2010-10-29
Provides
Action
Conflicts with
pagemod, searchtablejs

Tagged with editing, tables, wysiwig

Plugin doku and download is available on ICKEwiki.de.

Compatibility

A CosmoCode Plugin

Wrong placement of inserted links in Angua

  • Symptom: The toolbar's Link Wizard places links not in the (former) active table cell (where the cursor has been) but always in the upper-left (technically: table's first) cell.
  • Affected versions:
    • DokuWiki Release 2012-01-25 “Angua”
    • edittable 2010-10-29 (version concerning Plugin Manager: 2010-03-22)
    • Workaround: copy & paste from the upper-left (first) cell to the real target …
  • Reported: 2012-01-26 / hh

Display Bugs

In Firefox 3.6.12 the column width is fix. Depending on the text length, not all is readable. — hh 22/02/11: also in Chrome

In Internet Explorer 7/8 the cells are double in size compared to Firefox. Column width is not fixed, all text is readable. If the table is larger than the editor, the first column is overlapping to the normal page.

Firefox:

Firefox

Internet Explorer:

Internet Explorer

— casper 2010/11/21 17:54

Workaround

For Firefox you may try, at least for small tables, to concatenate adjacent table cells (columns) to achieve “longer” cells (but leave at least one row with the “real” number of cells). edittable has a toolbar button (quicklink) for that. In pure DokuWiki code this would mean things like

^Example^ ^ ^
|text spanning three columns|||

as in

Example
text spanning three columns

. The problem itself arises since in edit view the “table” is built up of HTML INPUT fields which are not by themselves flexible in length; one may try to cheat with some CSS (and / or JS, e.g. by counting the INPUT value's characters and adjusting the INPUT size). — hh 22/02/11

I got around this by adding a new line to style.css
  div.dokuwiki table.edit td.handle {
    color: __text_neu__;
    background-color: __background_neu__;
    padding: 0;
    vertical-align: bottom;
    /* For the handle dropdowns */
    position: relative;
    *position: fixed;
}

The last line with the * is ignored by Firefox but used by IE. - Senorandy 2011/11/17

Comments

Nice ;-) Is this plugin compatible with the include plugin?

Super Plugin - bitte unbedingt weiterentwickeln…..Thomas Süß.

Echt toll diese Erweiterung - leider Probleme beim Löschen von Zeilen und Spalten :-(

toolbar

Great idea, but it seams to screw up my toolbar. Or perhaps this is because of an other plugin?

mediamanager

There's a serious problem with the mediamanager which expects to send the information about the picked file back to an textarea. Since the textarea is replaced by an table with input fields in edittable mode this has to fail by design :-( Can the corresponding java script be replaced by the plugin? - Sebastian Zerbe, 03.02.2011

This should work with today’s DokuWiki version. — Adrian LangAdrian Lang
adrianlang

Berlin
2011/03/06 14:37

Whitespace are randomely stripped

On our wiki (2010-11-07a “Anteater”) (php 5.1.6, 2.6.18 kernel, UTF-8) when the form is rendered lots of whitespaces appears to be randomly removed from content. I had to hack inverse.php to make cdata method just append $test as it is and render_table_edit to add a trim call on $this→doc just before passing it to hsc in _table_field_close method to get a normal behaviour again.

Installing the plugin manually

If you need to install the plugin manually, you must upload the unzipped directory and rename the remote directory : “edittable” instead of “cosmocode-edittable-ded8ac1”. It will not work if you don't name it like this.

Angua

Does not seem to work with Angua haraldHarald
harald

Amsterdam
2011/11/24 21:34

Insert new table just reloads page

I'a running “Lemming” and want to use edittable but a click on “Insert new table” just reloads the page with no editor for the table coming up. I've set up a fresh dokuwiki with “Lemming” (to avoid problems with other plugins) and tried there but same effect.
Also no edit button for existing tables coming up.

JS Bug

1. Get a error in Opera and Firefox after Drag operations:

“Uncaught exception: TypeError: Cannot convert 'element' to object”

  /** returns whether an element has a class */
  function hasClass(element, className) {
  >>>>        if (!element.className) return false;

2. A Icon on the iconbar left beside of the “Insert new Table” disapere in table edit mode. I don't know if this is a interaktion problem of other plugins.

plugin/edittable.txt · Last modified: 2012/04/30 00:04 by 77.247.181.165
 
Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 3.0 Unported
Imprint Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki
WikiForumIRCBugsGitXRefTranslate