=== WP Notepad ===
Contributors: Redwoodcity
Donate link: https://www.redwoodcity.jp/app/wp-notepad/
Tags: notepad, notes, widget
Requires at least: 6.0
Tested up to: 7.0
Stable tag: 2.0.0
Requires PHP: 7.1
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Display a notepad in a widget or block. Notes save to the browser's LocalStorage, so visitors can use it without logging in.

== Description ==

It is a plug-in that displays a notepad on the widget. The data is saved in LocalStorage in the browser, so you can use it easily without login.

== Installation ==

1. From the WP admin panel, click "Plugins" -> "Add new".
2. In the browser input box, type "WP Notepad".
3. Select the "WP Notepad" plugin and click "Install".
4. Activate the plugin.

OR...

1. Download the plugin from this page.
2. Save the .zip file to a location on your computer.
3. Open the WP admin panel, and click "Plugins" -> "Add new".
4. Click "upload".. then browse to the .zip file downloaded from this page.
5. Click "Install".. and then "Activate plugin".

== Changelog ==

= 2.0.0 =
*Release Date - 17 June 2026*
* New: multiple notes via tabs (widget, shortcode and block)
* New: optional auto-delete (TTL) — notes expire after a configurable number of days
* New: opt-in cross-device sync for logged-in users via the REST API (disabled by default; guests remain LocalStorage-only)
* Notes are now stored as a small JSON envelope with a timestamp; legacy plain-string notes are read transparently
* Added a Settings → WP Notepad screen for the sync toggle

= 1.4.0 =
*Release Date - 17 June 2026*
* New [wpnotepad] shortcode to place a notepad anywhere (post content or theme templates)
* Notepad textarea now grows automatically to fit its content
* Added copy-to-clipboard, download as .txt and import-from-file controls
* Accessibility: textarea labelling, character count association and visible focus styles
* Block: added a deprecation so notes saved by 1.3.0 keep working

= 1.3.0 =
*Release Date - 17 June 2026*
* Added a live character counter below the notepad (widget and block)
* Added a "Saved" indicator that briefly confirms when a note is stored, announced to assistive technology via aria-live
* Added a Clear button (with confirmation) that empties the note and removes it from LocalStorage
* Block: expanded supports for color, typography, spacing and wide/full alignment so notes can be styled with the editor's built-in controls
* Block: added a settings sidebar (placeholder text, minimum height, maximum characters, character-count toggle)
* Block: added deprecations so notes saved by earlier versions keep working

= 1.2.2 =
*Release Date - 16 June 2026*
* Hardened LocalStorage access against exceptions (Safari private mode, storage disabled, quota exceeded) so typing no longer errors when storage is unavailable

= 1.2.1 =
*Release Date - 16 June 2026*
* Block: notepad textarea now uses a stable per-instance storage key (no longer tied to its position on the page)
* Regenerated translation template (.pot) and Japanese translations with correct text domain and source references
* Housekeeping: removed an unused legacy translation file

= 1.2.0 =
*Release Date - 16 June 2026*
* Modernized for current WordPress (block API v3, secure escaping/sanitization)
* The block now renders a working notepad textarea saved to LocalStorage on the front end
* Fixed block editor title/description fields not saving correctly
* Front-end script rewritten in vanilla JS (no jQuery dependency)
* Conditional asset loading and various refactoring

= 1.1.2 =
*Release Date - 11 October 2023*
* Compatible with block editor

= 1.1.1 =
*Release Date - 11 October 2023*
* Refactoring

= 1.1.0 =
*Release Date - 11 October 2023*
* Refactoring

= 1.0.2 =
*Release Date - 7 October 2023*
* Text correction & Refactoring

= 1.0.1 =
*Release Date - 14 April 2021*
* Minor correction

= 1.0.0 =
*Release Date - 3 March 2020*
* Initial Release
