How set defaults on wpLink()

Also an small example for change the url in link-button to use the url from installed blog. Use print JS in footer, not an include from js file via wp_enqueue_script() – ist faster vor development, specially for this small requirement, but not so on standard and fine, how the example from the other answer. <?php … Read more

WordPress 3.9 – Trouble Editing TinyMCE 4.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’ => ‘template,|,bold,italic,strikethrough,bullist,numlist,blockquote,hr,alignleft,aligncenter,alignright,link,unlink,wp_more,spellchecker,wp_fullscreen,wp_adv’, ‘toolbar2’ => ‘formatselect,underline,alignjustify,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help’, ‘toolbar3’ => ”, ‘toolbar4’ => ”, ‘tabfocus_elements’ => ‘insert-media-button,save-post’, ‘body_class’ => ‘content post-type-post post-status-draft post-format-standard’, … Read more

Editor Styles and Typekit

Tom Nowell’s TinyMCE plugin solution works brilliantly, just update the JavaScript to use Typekit’s new async code. Once you use the new async embed code, the 403 problem disappears and you’ll have Typekit-enabled TinyMCE with no fuss! Tom has put all the code together in a blog post. He did all the heavy lifting on … Read more

Gutenberg editor add a custom category as wrapper for custom blocks

Digging myself deeper in documentation, I got the following result. There is a way to group your custom blocks around a given category in Gutenberg, and therefore we have the method block_categories_all. So with a filter, you can extend the default categories with custom ones. Here is my example: add_filter( ‘block_categories_all’, function( $categories, $post ) … Read more

Initialize TinyMCE editor / visual editor after AJAX insert

Did you manage to get the editor working without your javascript included? If so try to create a template what includes a working tinymce editor and then rewrite your javascript to copy that template using the WithDataAndEvents argument of the jQuery clone() function set to true. For example: $(‘.cloner’).click(function(){ $(‘.container’).append($(‘.template’).clone(true).removeClass(‘hidden’)); });

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