Tag Info

New answers tagged

0

The strings was new, not more for your requirements. This is the new content of the hook. array ( 'selector' => '#content', 'resize' => 'vertical', 'menubar' => false, 'wpautop' => true, 'indent' => false, 'toolbar1' => ...


0

According to the Codex, you can't do this directly through the API. However, you can do it by using your own quicktags.js file as shown below. function sample_load_admin_scripts() { if ( is_admin() ) { wp_deregister_script('quicktags'); wp_register_script('quicktags', ("/path/to/your/quicktags.js"), false, '', true); } } if (is_admin()) { ...


0

It is the theme author's responsibility to give an admin interface that will allow the client to create the content in the form he wants. Layout related options and shortcodes are just a way for the author to justify doing a poor job in understanding the client's needs and helping the client to easily manage his site. (there is some difference between a ...


0

I've been stuggeling with a similar issue. (button not appearing in mce editor toolbar). This pattern worked for me in WP 3.9 / tinymce 4.0: tinymce.PluginManager.add( 'thing' , function( editor ){ editor.addButton('thing', { type: 'listbox', text: 'My listbox', onselect: function(e) { // do things... }, ...


0

if you want to make intent in the beginning of sentence after <br> (SHIFT+ENTER), then you may need to use custom solution: in functions.php add: add_action('init', 'add_cust_button'); function add_cust_button() { if ( get_user_option('rich_editing') == 'true') { add_filter('mce_external_plugins', 'add_mycust_plugin'); ...


1

First, I believe your css should use only one colon: .mce_mybutton:before { content: '\f459'; } Now, in order to get the css to the proper place. First, we add an action to admin_print_styles; then we check to see if we are editing a post or page; then we enqueue our stylesheet. We run the check to see if we are editing, so that we don't enqueue our ...



Top 50 recent answers are included