Set or change default text in hyperlink popup in post editor
You could try hacking into wp-includes/js/tinymce/plugins/wplink/js/wplink.js and change: if(!i.href||i.href==”http://”) (two times) b.url.val(“http://
You could try hacking into wp-includes/js/tinymce/plugins/wplink/js/wplink.js and change: if(!i.href||i.href==”http://”) (two times) b.url.val(“http://
I don’t remember which one, but there is probably a conflict with tone of your plugins. I had the same issue in the past. Deactivate all of you plugins, then go through and reactivate them one by one.
The latest update is out today: wordpress 3.4 and this bug is corrected!
Problem solved with this gist https://gist.github.com/4329321 . [notexturize]–[/notexturize] worked like a charm.
This basically means you do not want to use, say “Microsoft Word” to edit your code. Doing so may (and often will) add unnecessary bits of information to the code… causing it to parse unexpectedly when viewed in a browser. Instead, you a code editor (like Adobe Dreamweaver, or a free alternative like Notepad++) to … Read more
You need to target the #content selector, but within the scope of the page (the editor style loads inside the Tiny MCE iframe, which is why it won’t affect the non-visual editor). You can either print the styles in the admin head, or use an external stylesheet: function wpse_142641_text_editor_styles( $hook_suffix ) { if ( $hook_suffix … Read more
How to prevent WordPress CodeEditor adding fake closing tags that corrupt the page?
While this sounds strange behavior, it does sound like you are doing it wrong. The wordpress “text” editor is not an HTML editor and should not be a replacement for one. It is useful for fixing whatever can not be done with the visual editor, but no more. If you need a specific design which … Read more
The Problem It seems that you’re using the normal theme template files for posts and pages to display your custom post type. This means, that you also got the wp_head() hook and other template, that output default (post/page specific) things. The solution Add a template file to your theme, that’s named single-{$post_type}.php and nothing than … Read more
It needs a bit of javascript to do that. You need a listener and some actions. Here we go… At first enqueueing the javascript to the post and post new screens: PHP: add_action( ‘plugins_loaded’, ‘keyboradshortcuts4htmleditor’, 10, 0 ); function keyboradshortcuts4htmleditor(){ add_action( ‘admin_print_scripts-post-new.php’, ‘keyboradshortcuts4htmleditor_enqueue_javascript’, 10, 0 ); add_action( ‘admin_print_scripts-post.php’, ‘keyboradshortcuts4htmleditor_enqueue_javascript’, 10, 0 ); } function keyboradshortcuts4htmleditor_enqueue_javascript(){ … Read more