How can I embed an spreadsheet in a post?
-
@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.
-
@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.
-
@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. -
@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. 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)