Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) C:\cumbreclima\wp-content\themes\patti\framework\ReduxFramework\ReduxCore\inc\fields\editor\ drwxrwxrwx |
Viewing file: field_editor.js (1.19 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /** * Redux Editor on change callback * Dependencies : jquery * Feature added by : Dovy Paukstys * : Kevin Provance (who helped) :P * Date : 07 June 2014 */ /*global redux_change, wp, tinymce, redux*/ (function( $ ) { "use strict"; redux.field_objects = redux.field_objects || {}; redux.field_objects.editor = redux.field_objects.editor || {}; $( document ).ready( function() { //redux.field_objects.editor.init(); } ); redux.field_objects.editor.init = function( selector ) { setTimeout( function() { for ( var i = 0; i < tinymce.editors.length; i++ ) { redux.field_objects.editor.onChange( i ); } }, 1000 ); }; redux.field_objects.editor.onChange = function( i ) { tinymce.editors[i].on( 'change', function( e ) { var el = jQuery( e.target.contentAreaContainer ); if ( el.parents( '.redux-container-editor:first' ).length !== 0 ) { redux_change( $( '.wp-editor-area' ) ); } } ); }; })( jQuery ); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |