How can I embed an spreadsheet in a post?



  • Is it possible to embed a google spreadsheet into a post?

    If not, what options do I have besides markdown table, to show data from an online spreadsheet?


  • Global Moderator

    @arasbm said:

    Is it possible to embed a google spreadsheet into a post?

    Short answer, no, long answer, yes.

    You would need a plugin that takes the Google share link, and converts it into the iframe. This is primarily how 90% of embed plugins work. I'm on my iPad and about to head to bed. If someone wants to beat me to this, Then go for it. Are you needing it to work for 0.5.x or 0.6.x.



  • This post is deleted!


  • @a_5mith I am running 0.5.4


  • Global Moderator

    @arasbm I've not published it yet, as I want to do a lot more to this plugin. As it doesn't seem to exist. As I'm using 0.6.0, I'm unable to test it at the minute, but it should work fine.

    You can install by going into your node_modules folder within NodeBB and typing git clone https://github.com/a5mith/nodebb-plugin-google-spreadsheet.git

    Then just log into your ACP, and activate the plugin.

    Future plans include 0.6.0 support, and support for other Google Docs.

    To use it, just go to File > Share, then click Get Shareable Link. Then just paste that into a post. Report any issues on Github. :thumbsup:



  • @a_5mith thanks for starting this so quickly. Is there any harm in publishing it?
    I am using NodeBB's own hosting service, so I dont have access to shell to install plugins directly from repo. But I can test that plugin locally on my dev setup when I get a chance.


  • Global Moderator

    @arasbm said:

    @a_5mith thanks for starting this so quickly. Is there any harm in publishing it?
    I am using NodeBB's own hosting service, so I dont have access to shell to install plugins directly from repo. But I can test that plugin locally on my dev setup when I get a chance.

    Probably not, I'm just being lazy, would have to log into my VPS, upload, publish, remove it. :laughing: However even if I did publish it, you'd still need access to SSH or something as it wouldn't appear on the ACP for a while until it's been refreshed to include the newer plugins.

    You could ask one of the NodeBB guys to do that for you. Maybe ask them to check it over first, just to make sure it won't crash your forum. (It shouldn't, I lifted the code from my old Twitch plugin)



  • @a_5mith I am not in a huge rush. As long as I get in sometime this week, it will be good. Do you want me to test it and publish it to my npm account?


  • Global Moderator

    @arasbm It would be a pain to update if you published, I'll publish it now. :thumbsup:

    EDIT: Done.



  • @a_5mith you rock! thanks for the quick response!


Log in to reply
 


Looks like your connection to NodeBB was lost, please wait while we try to reconnect.