Something went wrong while trying to load the full version of this site. Try hard-refreshing this page to fix the error.

Save and Load Draft Automatically

tohsakarat

It is first time for me to publish pakage on pakagist, Plz tell me if any problem> <

Save and Load Draft Automatically

An extension for flarum thatAutomatically save drafts in browser storage. And ask user to save drafts when they exit composer(require fof/drafts)

Features

  • save/load drafts in browser storage automatically
  • ask for saving drafts online automatically when exit(require fof/drafts)
  • move cursor to end when minimize the composr (That will help users who have habbits to minimize and quote)

Installation

Install manually with composer:

composer require tohsakarat/save-and-load-draft-automatically

Updating

composer require tohsakarat/save-and-load-draft-automatically
php flarum cache:clear

Configuration

Enable the extension, a new tab will appear on the left hand side. This separate settings page allows you to further configure the extension.

Make sure you configure the upload permission on the permissions page as well.

Links



Subarist

tohsakarat

  1. It works under Edge, but the tips are not displayed properly in English.
  2. In Chrome, did not work

tohsakarat

luceos
I attatched the github link and modified the title.
Thank you for correction!


clarkwinkelmann

Your repo seems to include a ZIP file with a copy of all the files already in the root. That ZIP is included in the Packagist download. It's not very big so no significant impact but you could remove it to reduce the size of your package.

Your license file mentions FriendsOfFlarum and Flagrow, but I don't see any code from either of those developers included. If there's indeed no code from them you can remove those lines and maybe add your own name to the license 😉

Congrats on your first extension!



luceos

rob006 this one seems to use the browser memory instead of database.


tohsakarat

rob006
This one requires that one(fof/drafts) for the feature that asking users to save online draft when they exit.
In more time, this one will save your input every second locally. And you can load the local record to your composer automatically or manually through the toobar.


tohsakarat

Subarist
Hello! Thank you for feedback, I'll fix the translation problem soon.
All the development and testing of the plugin is based on Chrome. Are you sure you have given the website the permission of local storage?
你给了这个网站本地存储的权限吗?


Subarist

tohsakarat
I reset site settings in Chrome and gave all permissions, same doesn't work.
I will try to find another laptop and try again.
還有,我想他們並不樂見於使用非英文溝通,這有規定的,哈


tohsakarat

version v 1.10 Aug 14th,2022

fix the translation problem, Thanks to @Subarist


Subarist

tohsakarat
Did we lose the icon in the editor?


ash3T

Subarist Did we lose the icon in the editor?

I believe you are right about it. Same issue on my flarum site.