getkirby / editor

A new type of WYSIWYG editor for Kirby
https://getkirby.com
205 stars 28 forks source link

Feature request: Block to display linked text files #230

Open trych opened 4 years ago

trych commented 4 years ago

This is somewhat connected to the code block bug I reported earlier, but also an idea on its own:

I think it would be really great if there could be a block where I could just link a text file and then the contents of this text file are loaded into the block and simply displayed.

This would be very beneficial for maintaining and inserting code snippets. I would much prefer to edit, format and update these code snippets externally in an actual code editor, but would at the same time love to have them loaded into a Kirby editor block and have them update there if I update the original file.

So it's basically similar to the image block, just that we could link a text file instead of an image.

Would be happy to hear somebody else's thoughts on this.