Visual Editor freezing on text highlight since 4.3
Visual Editor freezing on text highlight since 4.3
Visual Editor freezing on text highlight since 4.3
You can add this code to your function.php file of your theme remove_filter( ‘the_content’, ‘wpautop’ ); remove_filter( ‘the_excerpt’, ‘wpautop’ ); or you can use this plugin for easier control
Not really a wordpress question – but have you tried tinyMCE.init({ .. custom_shortcuts : false }); ?? (might have a problem with IE though , on which case, you can override them with a foo function.) function disableShortcuts(){ tinyMCE.get(‘elm1’).addShortcut(“ctrl+b”,”nix”,”foo”); tinyMCE.get(‘elm1’).addShortcut(“ctrl+i”,”nix”,”foo”); } after that you will need to add the “foo” command to tinMCE: tinyMCE.init({ //your … Read more
You should use the styleselect key in the array of the TinyMCE settings for custom formats. This select is really useful for custom styles, enhancements. you find all relevant information for this solution in this answer to question #128931 in the same context. Via fontselect But if you like to use the font select, then … Read more
You can disable the visual editor entirely in your profile settings. If you need to disable it on a per page basis, take a look at this answer. Using text mode may not solve the empty paragraph problem, the wpautop filter is applied to the content regardless of how the content is edited. You can … Read more
If you wait for the SetupEditor event then you can access the editors: add_action( ‘admin_print_footer_scripts’, function () { ?> <script type=”text/javascript”> jQuery(function ($) { if (typeof tinymce !== ‘undefined’) { tinymce.on(‘SetupEditor’, function (editor) { if (editor.id === ‘contentLeft’) { // Could use new ‘input’ event instead. editor.on(‘change keyup paste’, function (event) { console.log(‘content=%s’, this.getContent()); }); … Read more
By default, TinyMCE sets allow_script_urls to false, which is what is causing the href attribute and value in the link to be removed. Also in the interest of best practices, TinyMCE does not allow the onlcick attribute on links by default. This can be changed too. The tiny_mce_before_init hook can be used to change TinyMCE’s … Read more
As mentioned in the comments, this is a lack of wp_autop() and other formatting functions that get applied to the the_content filter. The editor does not save <p> tags at all, but later on line-breaks are converted into paragraphs via wp_autop(). For meta content, I like to recreate the default filters. I do this because … Read more
[*] This took me ages to figure out but here is how it works now just add below code to the functions: function tinyMCEoptions($initArray) { $options=”*[*]”; $initArray[‘valid_elements’] = $options; $initArray[‘extended_valid_elements’] = $options; return $initArray; } add_filter(‘tiny_mce_before_init’, ‘tinyMCEoptions’); [*]
[*] A few years down the track, but hopefully someone else will find this solution useful… Although my issues trying to get this sort of thing to work in WordPress were slightly different, hopefully this solution will work for you too. Firstly, the issue with tags not being allowed to contain multiple block level elements … Read more