Sebenarnya script TinyMCE yang dipakai wordpress punya banyak tombol dan jauh lebih lengkap. Tapi kita cuma disuguhi tombol-tombol yang memang sering dipakai. Ini tentunya dengan maksud untuk kemudahan dan tata letak saja. Dengan sedikit trik, kita bisa menambahkan tombol lain yang kita inginkan.
Bagaimana caranya?
Seperti biasa, masukkan kode-kode ini di file functions.php themes anda. Ingat ya? Gunakan child themes biar kalau themes anda ada update, penambahan ini gak hilang.
function tambah_tombol($buttons) { $buttons[] = 'hr'; $buttons[] = 'fontselect'; $buttons[] = 'sup'; // etc, etc... return $buttons; } add_filter("mce_buttons", "tambah_tombol");
Kode-kode hr, fontselect, sup, dll itu adalah tag HTML yang ingin kita buatkan tombolnya di editor WordPress. Dan inilah tombol-tombol yang tersedia. Silahkan pilih sendiri:
bold, italic, underline, strikethrough, justifyleft, justifycenter, justifyright, justifyfull, bullist, numlist, outdent, indent, cut, copy, paste, undo, redo, link, unlink, image, cleanup, help, code, hr, removeformat, formatselect, fontselect, fontsizeselect, styleselect, sub, sup, forecolor, backcolor, charmap, visualaid, anchor, newdocument,
dan separator
.
Silahkan anda coba-coba sendiri ya.
Sumber: http://www.sycha.com/wordpress-add-hr-button-tinymce-visual-editor
22 replies on “Memunculkan Tombol Tersembunyi di WP Editor”
Wah ternyata banyak juga ya fasilitasnya, udah mirip word processor aja. Trims cak π
Salam
Kalau MCE yang asli, lebih banyak lagi malahan π
Ini tombol-tombol yang biasa ada di artikel mas ya?
Yup, bener sekali
kok gak bisa yah π
Ada pesan errornya?
saya juga seperti itu masbro π
malah html editor tidak bisa diklik kaya blank function, tetapi visual editor menampilkan HTML script , dan udah diinstall ulang berkali2 malah ,
naj akhirnya saya memecahkan masalahnya π
dengan menambahkan script ini :
define(‘CONCATENATE_SCRIPTS’, false );
tepat diatas require_once(ABSPATH ……….
tapi apabila menggunakan cloudflare , disable JS minify dan purge Cache , clear cache Pula Browser lalu refresh halaman editor tekan F5 3 X ,
dan sebut nama saya π
taharaa…..
semoga berhasil π
punya saya juga ga bisa…ga ada pesan error di wp cuma waktu mau nulis di add new post malah ga ada penambahan sama sekali
saya baru memakai wordpress dan masih gratisan. apakah menu edit di appearance memang tak ada untuk yang gratisan?
I simply want to mention I am just all new to weblog and absolutely loved this blog. More than likely Iβm want to bookmark your blog post . You absolutely have awesome well written articles. Thanks a lot for sharing with us your webpage.
I just want to mention I’m beginner to blogging and honestly enjoyed you’re web page. Probably Iβm planning to bookmark your site . You amazingly come with incredible articles and reviews. Thanks for revealing your blog site.
Pretty! This has been an incredibly wonderful article. Many thanks for providing this information.
You actually make it seem so easy with your presentation but I find this topic to be really something which I think I would never understand. It seems too complicated and extremely broad for me. I’m looking forward for your next post, Iβll try to get the hang of it!
Well, I suppose that could ensue since Abigail and the girls commenced accusing supplementary those of witchcraft when they had been just open dancing naked within the woods and therefore, sinning. Abigail furthermore engaged in a affair along with John Proctor. Persons they were accusing were finally not prone of precisely what they’d been recently accused linked with, and the exacting accusers had been the furthest machine on the globe from being holy… they finished cheery bearing bogus witness.
Way cool! Some extremely valid points! I appreciate you penning this post plus the rest of the site is very good.
I have been browsing online more than three hours today, yet I never found any interesting article like yours. Itβs pretty worth enough for me. In my opinion, if all web owners and bloggers made good content as you did, the net will be a lot more useful than ever before.
This is a topic which is near to my heart… Take care! Exactly where are your contact details though?
The next time I read a blog, Hopefully it doesn’t fail me as much as this particular one. I mean, I know it was my choice to read through, but I genuinely believed you’d have something helpful to talk about. All I hear is a bunch of crying about something that you could possibly fix if you were not too busy searching for attention.
*This really answered my problem, thank you!clash of clans hack
Excellent blog here! Also your website loads up fast! What host are you using? Can I get your affiliate link to your host? I wish my web site loaded up as quickly as yours lol
Excellent read, I just passed this onto a friend who was doing some research on that. And he just bought me lunch as I found it for him smile So let me rephrase that: Thanks for lunch!