-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
48 lines (27 loc) · 1.77 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
=== Custom Button Shortcode ===
Author: Tatti Vitorino ([email protected])
Tags: shortcodes, attachments, upload, tinymce, admin, files, enqueue media
== Description ==
This plugin adds a download button in the TinyMCE toolbar which opens a popup with a few options for styling the button and also a link to the WP Media Library so you can choose a file to link to it.
My intention is not publishing this plugin, this is only a source of study for those who could be stuck in the same problems I had, such as the terrible TinyMCE Documentation. Most of the information I got was due to a lot of digging and researching. See some of my references below.
WordPress TinyMCE Editor Tips | How to Add Custom Buttons, Styles, Dropdowns & Pop-ups
by Lee Batten
https://www.gavick.com/blog/wordpress-tinymce-custom-buttons/
WordPress Codex
http://codex.wordpress.org/Shortcode_API
WordPress custom TinyMCE view and shortcode editor
https://github.com/dtbaker/wordpress-mce-view-and-shortcode-editor
Generate WP Blog
by Ohad Raz
http://generatewp.com/take-shortcodes-ultimate-level/
I know my code is not the best organized and probably could use a few improvements but as I said it is not meant to be published it is only a source of study for those who need!! As I did!!
== Installation ==
= Install =
1. Unzip the file
2. Copy the plgtv_theme_shortcodes folder into the plugins folder
3. Activate the plugin
4. In the Admin area open any page / post with the text Editor and you will see the new button. Dont forget to open the kitchen sink (the last button in the 1st toolbar) as the button will be added to the 3rd toolbar
If you find any bugs or have any ideas, please mail me. I will be more than glad to hear from you!!
= Requirements =
* PHP 5.1 or above
* WordPress 3.5.1 or above