travaudoma
Forum Replies Created
-
Forum: Alpha/Beta/RC
In reply to: How to disable inline styling (style id=’global-styles-inline-css’)?add_action( 'wp_enqueue_scripts', 'remove_global_styles' ); function remove_global_styles(){ wp_dequeue_style( 'global-styles' ); }
Forum: Plugins
In reply to: [Contact Form 7 - email body TinyMCE editor] How switch to texthow can i specify tinymce_elements to work together codemirror and tinymce?
Forum: Plugins
In reply to: [Contact Form 7 - email body TinyMCE editor] How switch to textI really hope this plugin is still supported and help me make it better.
i try add wp_enqueue_code_editor together with pluginsadd_action( 'admin_print_styles-toplevel_page_wpcf7', function () { if ( empty( $_GET['post'] ) ) { return; } $settings = wp_enqueue_code_editor( array( 'type' => 'text/html' ) ); if ( false === $settings ) { return; } wp_add_inline_script('code-editor', sprintf( 'jQuery( function() { wp.codeEditor.initialize( "wpcf7-form", %s ); } );', wp_json_encode( $settings ) )); wp_add_inline_script('code-editor', sprintf( 'jQuery( function() { wp.codeEditor.initialize( "wpcf7-mail-body", %s ); } );', wp_json_encode( $settings ) )); wp_add_inline_script('code-editor', sprintf( 'jQuery( function() { wp.codeEditor.initialize( "wpcf7-mail-2-body", %s ); } );', wp_json_encode( $settings ) )); } );
and am faced with a problem
codemirror completely replaces tinymce in two modes (use HTML/notuse HTML)
how it fixed?
i try change id in
if( jQuery('#wpcf7-mail-use-html').prop('checked') ) tinymce_elements.push('wpcf7-mail-body');
to
if( jQuery('#wpcf7-mail-use-html').prop('checked') ) tinymce_elements.push('id_tinymce');
but id keeps changing after page loadmaybe in next release your will add codemirror to tinymce?
regards- This reply was modified 3 years, 6 months ago by travaudoma.
- This reply was modified 3 years, 6 months ago by travaudoma.
- This reply was modified 3 years, 6 months ago by travaudoma.
- This reply was modified 3 years, 6 months ago by travaudoma.
Forum: Fixing WordPress
In reply to: disconnect wordpress from plugin repositoryif i add downloads.www.ads-software.com in whitelist
i can update kernel files?
correct?Forum: Fixing WordPress
In reply to: disconnect wordpress from plugin repositorydefine( 'WP_HTTP_BLOCK_EXTERNAL', true ); define( 'WP_ACCESSIBLE_HOSTS', 'downloads.www.ads-software.com' );
that’s what i need
Forum: Fixing WordPress
In reply to: update for custom pluginthank you
i will do soForum: Fixing WordPress
In reply to: Disable screen reader functionI not have problem. I want clear html
Forum: Plugins
In reply to: [Contact Form 7] ContactForm7 and sweetallert2 does not work after updatethank you for your answer
this is it works
but i’ll probably stay on old version
new problems were found in new versionForum: Plugins
In reply to: [Contact Form 7] ContactForm7 and sweetallert2 does not work after updatei understand that can’t do without global editing script?
- This reply was modified 3 years, 7 months ago by travaudoma.
Forum: Plugins
In reply to: [Contact Form 7] ContactForm7 and sweetallert2 does not work after updatepoint is that i need to monitor class changes
in example on link i just reflected essence of problem and made a simple form
on a live site contact form is much more complicated and class changes are needed to display prompts