cosmocode / edittable

Plugin to provide a custom editor for tables in DokuWiki
https://www.dokuwiki.org/plugin:edittable
32 stars 26 forks source link

Edit window size for table with lots of rows #154

Open ghost opened 6 years ago

ghost commented 6 years ago

When you have a table that has more than a few rows, it seems that the edit window cannot be resized to show more. This seems inconsistent with the edit window for DokuWiki (link), where we are provided size and wrap controls (awesome).

I noticed that these controls aren't present when you're editing a table:

2018-01-30_235754

I fussed with the style definitions for "edittable__editor" in "editor.less", but to no avail. Suffices to say I'm no good with web coding. Any recommendations?

I am using:

Thank you for your work.

mrclschstr commented 6 years ago

I also had a quick look at this. I noticed that the div#size__ctl is present, but the corresponding buttons aren't. Bug or feature?

I'd also love to resize the window. Why isn't it the same size like the normal edit window?

mrclschstr commented 5 years ago

I had another look at this. I think the missing "magic" is hidden in the file /lib/scripts/editor.js, which is not processed for the edittable editor.

At the moment I haven't figured out yet how to integrate this in die edittable editor...

blaueente commented 2 months ago

Quick fix with Greasemonkey:

// ==UserScript==
// @name         Change Editor Height
// @version      0.1
// @description  Change the height of the editor
// @author       You
// @match        https://..../dokuwiki/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
    var editor = document.getElementById("edittable__editor");
    if (editor) {
        editor.style.height = "950px";
    }
})();