• Resolved thomasmpreston

    (@thomasmpreston)


    Hi,

    I’m trying to find a way to make entering data a bit easier. I have some shortcodes I want to use and added a custom quicktag via https://www.ads-software.com/plugins/addquicktag/ to the html editor. It shows up on posts and pages but not when I shift+click on a tablepress cell. In fact the editor seems to cut back a lot of the tags that are there. Is there a way to show this tag?

    To be more specific, I’m using openbooks which, for example, adds a link using shortcodes like

    [openbook booknumber="1858941318" templatenumber="2"]

    so I want to be able to just type in the ISBN number and click the quicktag to add all the stuff around it.

    Alternatively, is it possible to add a new button in the ‘table manipulation’ area to do what I want? I couldn’t find where this code is in the plugin editor…

    https://www.ads-software.com/extend/plugins/tablepress/

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks for your question.

    Unfortunately, I have bad news here. Adding more buttons to the “Advanced Editor” or to the “Table Manipulation” section is not possible directly.
    The reason for that is that the buttons in the “Advanced Editor” are pre-generated by WordPress, and they can therefore not really be modified.
    For the “Table Manipulation” section, there’s a similar reason: This is hard-coded in TablePress, and it’s not possible at the moment to extend this without risking to lose such changes during a plugin update (i.e. there’s no plugin hook to use for that).

    Your best choice for a work around might be to have a separate tab for a dummy post open, and use the buttons there, and then copy/paste the full Shortcode into the TablePress cell. I know that this means a few extra clicks, but it’s the only thing that I can come up with right now…

    Regards,
    Tobias

    Thread Starter thomasmpreston

    (@thomasmpreston)

    Ah, shame. Although I’m confused as to why not all the buttons load that show up on page and post.

    I’ll keep looking through your code and see if I can add the button myself, although I’ll probably just have to find another solution. Thanks anyway for the reply!

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    the buttons load on the page/post editor, because WordPress uses a different loading mechanism there. Basically, that’s where the other plugins can add buttons, but they can’t add them to the toolbar in the “Advanced Editor”.

    If you really want to add a button in TablePress, the file “view-edit.php” is your best starting point. But as mentioned above, if you make changes there, you would lose them after each TablePress update, so you would have to re-apply them.

    Regards,
    Tobias

    Hi Tobias,

    Great plugin!! I’m also hoping to get a better advanced editor for this plugin. I’m setting it up for a client that would like to be able to update these tables without any HTML knowledge.. the only thing I’m really wishing for is a button that automatically wraps highlighted text in an underline tag.

    Thoughts? Plans for updating the advanced editor?

    Plugin Author Tobias B?thge

    (@tobiasbg)

    Hi,

    thanks! Good to hear that you like the plugin!

    I would also like to add a more sophisticated editor for the “Advanced Editor” (like the TinyMCE editor that WordPress uses for regular posts/pages), but unfortunately, due to some JavaScript problems that come with this, I haven’t yet found a solution here.
    I’m planning to rewrite the “Edit” screen in TablePress for better performance and I hope that I can incorporate a new editor then. I can’t give an estimate on when this will be available yet, though ??

    Best wishes,
    Tobias

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Show more quicktags in Advanced Editor’ is closed to new replies.