madodig / wikijs-customization

Wiki.js Customization Injection Code
GNU Affero General Public License v3.0
89 stars 19 forks source link

What does it take to enable pasting images from the clipboard? #8

Closed linucksrox closed 2 years ago

linucksrox commented 2 years ago

One of the main drawbacks of the current version is that I can't paste images from the clipboard. This is a problem that has been solved in many other projects, but a lot of the systems out there today still don't allow pasting images directly from the clipboard. Do you know how much work it would be to implement this?

madodig commented 2 years ago

This code parses the HTML/CSS code and changes it on-the-fly. It isn't possible to implement such a feature by this approach, since the injected code isn't loaded in editor by Wiki.JS design.

Wiki.JS has a feedback site where users can ask for features and this feature has already been asked for (ability-to-paste-images-into-md-editor). As of this writing, it has 466 upvotes and is planned, so it might be a part of a future release (v3).

You can also join the Wiki.JS Slack channel and ask there if and when the feature will be introduced.

linucksrox commented 2 years ago

Thanks for the quick update! That makes sense that you can't use the injection approach for this purpose. I have already voted on that feature, but I'm just having a hard time waiting for version 3 I guess. I think this project is going to explode in popularity when that gets released.