WordPress MultiSite Paste from Word Tool Does not work

Problem was the page encoding. The wordpress database is UTF-8, i had switched the default to ISO-[something] to match the database we’re using to populate additional content and had not noticed any issue for over a month- until we started populating the blogs section of this page. We discovered the problem by following the code … Read more

How to keep a textarea and stop tinymce?

You can remove the wp-autop function which WordPress uses to format the output of the WYSIWYG editor. It will stop tinymce from adding additional p tags, but will require you to add correct formatting (because you’re removing the wp-autop the output won’t be altered. This if you use the visual editor and it doesn’t convert … Read more

How to add TinyMCE keyboard shortcut

Last time i added a keybord shortcut it was using jQuery. take a look at jquery.hotkeys plugin which lets you enable keyboard shortcuts with a simple one liner: $(document).bind(‘keydown’, ‘ctrl+a’, fn); update if you want to check if the TinyMCE editor is active and it has a selected text then here are the functions you … Read more

Second toolbar in tinymce has “display:none” set?

Show the Kitchen Sink by Default Copying @nus’ answer as an answer to help newcomers. If you would like to show that second row of options by default, there’s an easy way. Simply put the following into your theme’s functions.php file: function unhide_kitchensink( $args ) { $args[‘wordpress_adv_hidden’] = false; return $args; } add_filter( ‘tiny_mce_before_init’, ‘unhide_kitchensink’ … Read more

Tiny MCE not adding p tag when saving theme option

If you want the contents of an option, variables, or anything for that matter to be treated like post content you’ll need to call the post content filters. <?php echo apply_filters( ‘the_content’, $your_var ); ?> Your data is then treated in the same way as post content is, inline with the code sample you’ve posted, … Read more

How to customize the symbols that appear in the Visual Editor insert custom character

This has to do with your character map for tinyMCE it’s located inside: wp-includes/js/tinymce/themes/advanced/js/charmap.js Although I wouldn’t recommend editing the WP-Core you could theoretically just add new characters there like so: [‘&#298;’, ‘&#298;’, true,’I kahako’], [‘&#332;’, ‘&#332;’, true,’O kahako’], and so on… However when you update WordPress this will overwrite those changes. So it’s not … Read more

How to disable TinyMCE 4 keyboard shortcuts

Re answer cited by the OP: Edited to add meta and access and other. The custom_shortcuts flags mentioned was in tinymce 3.x (see here) but was removed from 4.x, and on scanning the source nothing equivalent seems to have been substituted. The foo function method mentioned can still be used. In your theme’s “functions.php”: add_action( … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)