Tag Info

New answers tagged

0

The only way to add <br> in tinymce editor in vanilla wordpress is by ctrl + enter, there was never any other option unless you install a plugin for that.


0

Id just thought id share: I am using tinymce in the frontend via wp_editor() I have unset the keyboard shortcuts like insert/edit link etc or help and i am using: <?php $content = $posted['rm_details']; $editor_id = 'rm_details'; $settings = array( ...


0

Proper object names First, make sure you are using the proper object names. Instead of using label for checkboxes; use text instead. (TinyMCE Checkbox Syntax) onsubmit: When using the onsubmit() function; the information from the form is passed into the function. So, we can use the first argument of the function to check for form values. So, the value ...


0

I think the best way is to use the before_wp_tiny_mce() hook. Then, you can define the url in PHP; and pass it to the page so it is available to TinyMCE. function sgp_before_wp_tiny_mce() { ?> <script type="text/javscript"> var sgp_plugin_url = "<?php echo plugins_url('shortcode_generator_popup.php', __FILE__); ?>"; ...


0

adding this filter below your code you can delete fullscreen button or another with teeny=>true, deleting items from $buttons array (fullscreen is 14 counting from left to right from 0 ) first remove from $settings 'tinymce'=> array( 'theme_advanced_disable' => 'fullscreen' ) and add filter add_filter( "teeny_mce_buttons", ...


3

As you noted, setting quicktags to false removes the "visual" and "text" tabs. So, to leave the tabs you need to set quicktags to true and remove the buttons: $settings = array( 'quicktags' => array( 'buttons' => ',' ) ); wp_editor($input, 'editor_name', $settings); To have this in all quicktags ...


0

If you are calling wp_editor() in your metabox, one of the arguments that you can pass is 'media_buttons.'


0

I required a lot more code to get it working, and also was getting a javascript error: Deprecated TinyMCE API call: <target>.onKeyUp.add(..) This was caused by a wordpress upgrade from 3.x to 4. So I had to clear my browser cache first. Firstly I added a callback to teh wp filter tiny_mce_before_init in my functions.php file, this allowed to me to add ...



Top 50 recent answers are included