Title: Visual Editor Custom Buttons
Author: cyberduck
Published: <strong>9 ທັນວາ 2012</strong>
Last modified: 26 ພຶດສະພາ 2023

---

ຄົ້ນຫາປລັກອິນ

![](https://ps.w.org/visual-editor-custom-buttons/assets/banner-772x250.jpg?rev=
636071)

ປລັກອິນນີ້ **ຍັງບໍ່ທັນໄດ້ຮັບການທົດສອບກັບ WordPress 3 ເວີຊັນຫຼັກຫຼ້າສຸດ**. ມັນອາດຈະ
ບໍ່ໄດ້ຮັບການເບິ່ງແຍງ ຫຼື ສະໜັບສະໜູນອີກຕໍ່ໄປ ແລະ ອາດມີບັນຫາການເຮັດວຽກຮ່ວມກັນເມື່ອ
ໃຊ້ກັບ WordPress ເວີຊັນທີ່ໃໝ່ກວ່າ.

![](https://ps.w.org/visual-editor-custom-buttons/assets/icon-256x256.png?rev=1116627)

# Visual Editor Custom Buttons

 ໂດຍ [cyberduck](https://profiles.wordpress.org/cyberduck/)

[ດາວໂຫຼດ](https://downloads.wordpress.org/plugin/visual-editor-custom-buttons.1.6.0.3.zip)

 * [ລາຍລອຽດ](https://lo.wordpress.org/plugins/visual-editor-custom-buttons/#description)
 * [ການຣີວິວ](https://lo.wordpress.org/plugins/visual-editor-custom-buttons/#reviews)
 *  [ການຕິດຕັ້ງ](https://lo.wordpress.org/plugins/visual-editor-custom-buttons/#installation)
 * [ການພັດທະນາ](https://lo.wordpress.org/plugins/visual-editor-custom-buttons/#developers)

 [ການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/)

## ຄຳອະທິບາຍ

Looking for a fast and easy way to add custom buttons to the WordPress Visual Editor?
Look no further. With this plugin you can easily add your own custom buttons in 
the Visual Editor, as well as the HTML Editor. You can then add HTML code to the
button, either as a wrap (before, after) or as a single block. On top of that you
can, from within the plugin, set the CSS so you can view the effect of the button
directly in the Visual Editor.

The plugin comes with a large number of ready to use button icons, but you can also
add your own.

Visual Editor Custom Buttons. The perfect plugin for customizing the Visual Editor,
add special features and simplify the content update process for the novice user.

## ພາບໜ້າຈໍ

 * [[
 * Example of a Simple Button function. A Felt Marker. Just add a simple span-tag
   with a class. Then add the CSS to the class.
 * [[
 * This is how the Felt Marker-button will work in the Visual Editor. To Get the
   same effect in Front End View, just add the same CSS to your normal CSS file.
 * [[
 * Another button example. Four Image Slots. Same here, Add the code and the CSS.
 * [[
 * The effect of the button in the Visual Editor. The dottered lines is for making
   the template boxes more clearly. Since you can have different CSS for backend
   and fronted you can simply remove the dottered border in the actual FrontEnd 
   display.

## ການຕິດຕັ້ງ

 1. Upload `plugin-name.php` to the `/wp-content/plugins/` directory
 2. Activate the plugin through the ‘Plugins’ menu in WordPress
 3. Administer the buttons from the Admin Menu – “Visual Editor Custom Buttons”.

## ຄຳຖາມທີ່ພົບເລື້ອຍ

### Where do I set which row my buttons will appear?

That you can do under ‘Settings’ in the plugins menu.

### I have created a button but it is acting very strangely when trying to use it in the Visual Editor. Nothing happens when clicking on it in the Visual Editor. When trying in the Text Editor the code shows but can disappear again when flipping back and forth between the Editors. Why is this?

This strange behavior with disappearing code may come up when you have pasted content
to the Visual Editor from a pdf or word file and after that tries to use the Button.
When pasting content directly from a pdf, unwanted invisible content may follow 
the pasted content messing up the Button code when trying to add it. The solution
is to copy the pdf content to a simple text-editor (like Notepad) before copying
it to the Visual Editor. When doing so, you clean the content before putting it 
into the Visual Editor.

About the Button CSS not visible in the Visual Editor (you can´t se any effect of
the button in the Visual Editor). Cleaning the Browsers Cache should do the trick.

## ການຣີວິວ

![](https://secure.gravatar.com/avatar/ea825e439fd70c5b1083da9326b14539859ec758f8fd612bcfbcbeb551901e3d?
s=60&d=retro&r=g)

### 󠀁[Has glitches](https://wordpress.org/support/topic/has-glitches/)󠁿

 [gqqnbig](https://profiles.wordpress.org/gqqnbig/) 25 ສິງຫາ 2023 2 ການຕອບກັບ

It has been working for a long time, but recently I upgraded my site and this plugin
fails to work. Luckily, I just had to change add_action(‘admin_print_footer_scripts’,‘
_add_my_quicktags’); to add_action(‘after_wp_tiny_mce’, ‘_add_my_quicktags’); Then
it works fine. Besides, I have no idea how this plugin is updated. https://plugins.
trac.wordpress.org/browser/visual-editor-custom-buttons/ has its history and it 
seems the author only edited the readme file, while all other files are last modified
in 2012.

![](https://secure.gravatar.com/avatar/43392a388923a15611432ec99944350ad620ed87eb9537d5d0693ad5bf454ffc?
s=60&d=retro&r=g)

### 󠀁[Simple, works perfectly](https://wordpress.org/support/topic/simple-works-perfectly-2/)󠁿

 [Sagrav](https://profiles.wordpress.org/sagrav/) 23 ເມສາ 2019

Simple and does exactly the job.

![](https://secure.gravatar.com/avatar/dd307e6ff9652da0e153ec2301f907f011151e31969103cfe866c00e5293fc72?
s=60&d=retro&r=g)

### 󠀁[Please update!](https://wordpress.org/support/topic/please-update-62/)󠁿

 [jforena](https://profiles.wordpress.org/jforena/) 31 ພຶດສະພາ 2018

Great plugin but generating errors. Please update!

![](https://secure.gravatar.com/avatar/e02f782d76eb2b7113cc8477d3504e8b4aa34330634cdc34c0fff8e67c2db23b?
s=60&d=retro&r=g)

### 󠀁[Good but needs updating due to numerous errors.](https://wordpress.org/support/topic/good-but-needs-updating-due-to-numerous-errors/)󠁿

 [muzKore](https://profiles.wordpress.org/muzoid/) 13 ເມສາ 2018

The plugin in fantastic. Easily make custom buttons. Really great. Issue that I 
am having is that the plugin throws out numerous errors when debug is turned on.
It would be great if the plugin author could fix this as it spams my error log every
time the editor loads. Other than that, fantastic.

![](https://secure.gravatar.com/avatar/2f481803f9beb49231cd2f57ea36db1975688e8b199f8ecad9edc3a6be598daa?
s=60&d=retro&r=g)

### 󠀁[Not working on fairly new multisite installation](https://wordpress.org/support/topic/not-working-on-fairly-new-multisite-installation/)󠁿

 [pediwent](https://profiles.wordpress.org/pediwent/) 7 ກຸມພາ 2018

Several errors come up on installation. Some might be multisite issues, but at least
two are coding issues. First, the plugin uses the deprecated get_currentuserinfo()
function where it should use wp_get_current_user(). Not a show stopper, but if you
have debug turned on, you’ll get a big warning message. Second, there is a $count
++ line of code but $count is never defined. It looks left over after the developer
changed a for loop to a foreach one. Last, when I try to create a new button, I 
get a 502 Bad Gateway error. On top of that, the plugin doesn’t exactly adhere to
WordPress coding standards. I like the idea of the plugin, but uninstalling it for
now.

![](https://secure.gravatar.com/avatar/ad10fa9eb160e7d5349eebfe66e21ee8441af7341c32da01f96d3dcefaec21fd?
s=60&d=retro&r=g)

### 󠀁[simple, works great](https://wordpress.org/support/topic/simple-works-great-24/)󠁿

 [glendeni](https://profiles.wordpress.org/glendeni/) 9 ທັນວາ 2017

simply, easy to understand, just works

 [ ອ່ານການຣີວິວທັງໝົດ 37 ລາຍການ ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ ແລະ ຜູ້ພັດທະນາ

“Visual Editor Custom Buttons” ແມ່ນຊອຟແວໂອເພັນຊອດ (Open Source). ບຸກຄົນຕໍ່ໄປນີ້ໄດ້
ມີສ່ວນຮ່ວມໃນການພັດທະນາປລັກອິນນີ້.

ຜູ້ຮ່ວມພັດທະນາ

 *   [ cyberduck ](https://profiles.wordpress.org/cyberduck/)

“Visual Editor Custom Buttons” ໄດ້ຖືກແປເປັນ 2 ພາສາທ້ອງຖິ່ນ. ຂໍຂອບໃຈ [ທີມງານຜູ້ແປ](https://translate.wordpress.org/projects/wp-plugins/visual-editor-custom-buttons/contributors)
ສຳລັບການປະກອບສ່ວນຂອງເຂົາເຈົ້າ.

[ແປ “Visual Editor Custom Buttons” ເປັນພາສາຂອງເຈົ້າ.](https://translate.wordpress.org/projects/wp-plugins/visual-editor-custom-buttons)

### ສົນໃຈຮ່ວມພັດທະນາບໍ່?

[ເບິ່ງລະຫັດ](https://plugins.trac.wordpress.org/browser/visual-editor-custom-buttons/),
ກວດເບິ່ງ [ຄັງເກັບ SVN](https://plugins.svn.wordpress.org/visual-editor-custom-buttons/),
ຫຼື ຕິດຕາມ [ບັນທຶກການພັດທະນາ](https://plugins.trac.wordpress.org/log/visual-editor-custom-buttons/)
ຜ່ານ [RSS](https://plugins.trac.wordpress.org/log/visual-editor-custom-buttons/?limit=100&mode=stop_on_copy&format=rss).

## ບັນທຶກການປ່ຽນແປງ

#### 1.6.0.3

 * More bug fixed for php8

#### 1.6.0.2

 * Bug fixed for php8

#### 1.6.0.1

 * Bug fixed not able to load js-button-file

#### 1.6

 * Prepared for php8
 * Prepared for Language translations
 * Default Square Meter Icon Added

#### 1.5.2.3

 * count()-warning error fixed for php 7.x
 * Two new icons added, SEO bold, SEO italic

#### 1.5.2.2

 * Php-error fixed. Thanks tim-reeves.
 * Function conflict error fixed.
 * Minor icon color change.

#### 1.5.2.1

 * New Preamble Icon added.

#### 1.5.2

 * Error: 8305 Uncaught ReferenceError: QTags is not defined error, is now fixed.
   Thanks luantt.

#### 1.5.1

 * removing option for non authorized user to add custom buttons from the top admin
   bar.

#### 1.5

 * Brand new Visual Icon Select menu! Now you can see the icon directly in the menu.
   No more need for the preview box.
 * block—plus.png bug fix. Thanks vtxyzzy.
 * Better hide/reveal solution for visual/text-editor-choices.
 * All new hires versions of all button icons.
 * Plenty of new Button icons.

#### 1.4

 * Now only the Administrator can administer buttons by default.
 * Option to let other user roles administer buttons.
 * Possibility to add hires (double sized) custom button icons.
 * Plugin now works in a WordPress Network. Thanks cooms13.

#### 1.3.2

 * Visual adjustments for TinyMCE 4.0

#### 1.3.1

 * Visual adjustments for WordPress version 3.8 and higher.
 * Two new default icons:
    - Quote bubble
    - Inline header

#### 1.3

 * Upgrading issues causing buttons to disappear when upgrading are now fixed.
 * It is now possible to change on which row your custom buttons will appear.

#### 1.2.1

 * Bug that made it impossible to open add media pop-up and other issues is now 
   fixed. Thanks Scanomat for the tip.
 * Bug causing broken Button Icon when using Single Block and Custom Icon is now
   fixed.

#### 1.2

 * Custom Buttons are now uploaded in WordPress Upload Directory to prevent them
   from being deleted when upgrading the plugin.
 * Custom Buttons are automatically added to the Button Icon Dropdown menu when 
   uploaded. No need to specify the name of the icon. All added icons are available
   through the drop down menu.
 * Seven new default icons.
    - Width
    - Height
    - Bordered
    - Framed
    - Tab Space
    - Single line
    - Double line
 * Minor Graphic and text changes

#### 1.0

 * Fixed bug that killed tags and post thumbnails in posts and pages. Thanks kevincrank
   and marcus.fridholm for your input.
 * Post-type labels corrected.

#### 0.9.2.1

 * Fixed upgrading issue.

#### 0.9.2

 * Fixed Resize Handles to only scale vertically
 * Fixed Bug that automatically added css to Front End.

#### 0.91

 * Added Resize Handle to the Single Block Textarea

## ຂໍ້ມູນກຳກັບ (Meta)

 *  ເວີຊັນ **1.6.0.3**
 *  ອັບເດດຫຼ້າສຸດເມື່ອ **3 ປີ ທີ່ຜ່ານມາ** ທີ່ຜ່ານມາ
 *  ການຕິດຕັ້ງທີ່ໃຊ້ງານຢູ່ **4,000+**
 *  ເວີຊັນ WordPress ** 4.9 ຫຼື ສູງກວ່າ **
 *  ທົດສອບເຖິງເວີຊັນ **6.2.9**
 *  ພາສາ
 * [English (US)](https://wordpress.org/plugins/visual-editor-custom-buttons/), 
   [Russian](https://ru.wordpress.org/plugins/visual-editor-custom-buttons/), ແລະ
   [Swedish](https://sv.wordpress.org/plugins/visual-editor-custom-buttons/).
 *  [ແປເປັນພາສາຂອງເຈົ້າ](https://translate.wordpress.org/projects/wp-plugins/visual-editor-custom-buttons)
 * ແທັກ
 * [buttons](https://lo.wordpress.org/plugins/tags/buttons/)[custom](https://lo.wordpress.org/plugins/tags/custom/)
   [rich editor](https://lo.wordpress.org/plugins/tags/rich-editor/)[visual editor](https://lo.wordpress.org/plugins/tags/visual-editor/)
 *  [ມຸມມອງຂັ້ນສູງ](https://lo.wordpress.org/plugins/visual-editor-custom-buttons/advanced/)

## ການໃຫ້ຄະແນນ

 4.6 ຈາກທັງໝົດ 5 ດາວ.

 *  [  ການວິຈານ 5 ດາວ ຈຳນວນ 29 ລາຍການ     ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/?filter=5)
 *  [  ການວິຈານ 4 ດາວ ຈຳນວນ 5 ລາຍການ     ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/?filter=4)
 *  [  ການວິຈານ 3 ດາວ ຈຳນວນ 2 ລາຍການ     ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/?filter=3)
 *  [  ການວິຈານ 2 ດາວ ຈຳນວນ 0 ລາຍການ     ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/?filter=2)
 *  [  ການວິຈານ 1 ດາວ ຈຳນວນ 1 ລາຍການ     ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/#new-post)

[ເບິ່ງ ຄຳຄິດເຫັນ ທັງໝົດ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/reviews/)

## ຜູ້ຮ່ວມພັດທະນາ

 *   [ cyberduck ](https://profiles.wordpress.org/cyberduck/)

## ການຊ່ວຍເຫຼືອ

ມີຄຳຖາມ ຫຼື ຕ້ອງການຄວາມຊ່ວຍເຫຼືອບໍ່?

 [ເບິ່ງຟໍຣັມການຊ່ວຍເຫຼືອ](https://wordpress.org/support/plugin/visual-editor-custom-buttons/)