tinymce
tinymce copied to clipboard
Strange use of logical not in tinymce/assets/js/tinymce_rex.js line 40
The following lines probably do not what was intended:
https://github.com/FriendsOfREDAXO/tinymce/blob/ebf1066d0260bb629bb99d8d33271a554305f570/assets/js/tinymce_rex.js#L40
https://github.com/FriendsOfREDAXO/tinymce/blob/ebf1066d0260bb629bb99d8d33271a554305f570/assets/js/tinymce_rex.js#L55
What happens here is the following:
typeof media_typeis evaluated to some string!(typeof media_type)is evaluated to a boolean value, namelyfalseas any string treated as boolean is logically true hence its negation is false!(typeof media_type) === 'undefined'is evaluated to false- hence the complete expression evaluates to
mediaPathalways
BTW, mediaManagerPath seemingly is not defined.