Quicktags external functions file
Quicktags external functions file
Quicktags external functions file
Issue with iframe in TinyMCE
WordPress 4.2 mce-views migration guide?
Why can’t I type [ ] opening and closing brackets on the Visual tab?
I use this on my instals to get rid of p tags around images: /* * * Remove annoying <p> tags on images, messes with my shizzle * */ function my_filter_ptags_on_images($content) { return preg_replace(‘/<p>(\s*)(<img .* \/>)(\s*)<\/p>/iU’, ‘\2’, $content); } add_filter(‘the_content’, ‘my_filter_ptags_on_images’);
I found out myself. I had to call media_upload_header(); in the Iframe and trigger the following javascript: var html=”stuff I want to return to editor”; var win = window.dialogArguments || opener || parent || top; win.send_to_editor(html); I have no Idea how, but this works.
Easy thing, install plugin called tinymce-advanced and in the setting page for the plugin just click check box for Stop removing the p and br tags when saving and show them in HTML editor and save.
My colleague (Talha) solved it. Some files in wp-include weren’t uploaded properly because i was using FTP (Filezilla), I re uploaded the entire folder using cpanel and it worked!
That looks like it is an error due to TinyMCE (editorremov I believe) not being loaded yet. Either hook to the admin_footer action instead of admin_head (interestingly you have declared the in_footer option as true and it is still not working) or declare the editorremov dependency when enqueuing your script: wp_enqueue_script( ‘features’, plugin_dir_url( __FILE__ ) … Read more
You add the shortcode (and all shortcodes) in visual mode, not in text mode.