Plugin Directory

Changeset 1969535


Ignore:
Timestamp:
11/06/2018 06:10:37 AM (7 years ago)
Author:
christophesecher
Message:

correct tinyMCE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • traveladsnetwork-com/trunk/assets/js/pageEdit.js

    r1966393 r1969535  
    177177    };
    178178
     179    //
    179180    // creation of the Regex (list of keywords)
     181    //
    180182    data=keyWords;
    181183    var to_replace = '';
     
    184186        to_replace += '(worldThatWillNeverAppearNowhere)';
    185187
    186         tinymce.get('content').on('keyup',function(e) {
    187             firstTime = true;
    188         });
    189 
    190         $('#content').on('input', function(){
    191             firstTime = true;
    192         })
     188        if(!!tinymce.get('content'))
     189            tinymce.get('content').on('keyup',function(e) {
     190                firstTime = true;
     191            });
     192
     193        if($('#content').length)
     194            $('#content').on('input', function(){
     195                firstTime = true;
     196            })
    193197       
    194198        function tan_parseAllContent(content) {
Note: See TracChangeset for help on using the changeset viewer.