=== Highland Software Embed and Link Buttons for PDF Embedder ===
Contributors: jgrodgers
Tags: pdf, embed, tinymce, editor, documents
Requires at least: 5.8
Tested up to: 7.0
Requires PHP: 7.4
Stable tag: 1.1.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Adds TinyMCE buttons to insert PDFs as embedded viewers or direct links when using the PDF Embedder plugin.

== Description ==

Highland Software Embed and Link Buttons for PDF Embedder enhances the functionality of the PDF Embedder plugin by giving editors control over how PDFs are inserted into content.

Instead of automatically embedding every PDF, this plugin adds simple TinyMCE buttons that allow users to choose:

- Embed the PDF using the PDF Embedder viewer
- Insert a direct link to the PDF file

This improves flexibility, usability, and content control—especially for editors working in custom themes or classic editor environments.

== Features ==

- Adds TinyMCE buttons for:
  - Embed PDF
  - Link PDF
- Uses the native WordPress media modal
- Displays the PDF title or filename as link text
- Fully compatible with the Classic Editor
- No modifications required to the original PDF Embedder plugin
- Lightweight and developer-friendly

== Requirements ==

- WordPress 5.8 or higher
- PHP 7.4 or higher
- PDF Embedder plugin installed and active

== Installation ==

1. Upload the plugin files to the `/wp-content/plugins/highland-software-embed-and-link-buttons-for-pdf-embedder/` directory
2. Activate the plugin through the 'Plugins' screen in WordPress
3. Ensure the PDF Embedder plugin is installed and active
4. Open the editor and use the new "Embed PDF" or "Link PDF" buttons

== Frequently Asked Questions ==

= Does this replace the PDF Embedder plugin? =

No. This is an add-on that enhances the PDF Embedder plugin.

= Does this work with Gutenberg? =

This plugin is designed for TinyMCE (Classic Editor or custom editors using wp_editor).

= Can I customize the link text? =

The plugin automatically uses the PDF title or filename. You can modify this behavior in the code if needed.

== Screenshots ==

1. TinyMCE toolbar with Embed PDF and Link PDF buttons
2. Media modal for selecting a PDF
3. Example of embedded PDF vs linked PDF

== Changelog ==

= 1.1.0 =
* Added custom toolbar icons for PDF Embed and PDF Link TinyMCE buttons.
* Replaced text-based editor buttons with custom branded icon buttons.
* Added new Highland Software styled button assets with dark red background and gold icon styling.
* Improved editor toolbar visual consistency for PDF insertion actions.
* Added plugin asset localization to support dynamic icon loading.
* Updated JavaScript button registration to use custom PNG icon assets instead of text labels.
* Improved overall user experience when inserting PDF Embedder shortcodes or direct PDF links.
* General code cleanup and version update.

= 1.0.0 =
* Initial release
* Added TinyMCE buttons for embed and link modes
* Integrated with PDF Embedder via filter

== Upgrade Notice ==

= 1.0.0 =
Initial release of Highland Software Embed and Link Buttons for PDF Embedder.