PHP tinymce, validation issue -
i'm using tinymce on cms page , facing issue require validation (jquery). goes when i'm inserting date{date d/m/y} using editor. jquery validation not goes off.
i mean if date there creates problem if give white space after or before validation works well. why validation don't work when date{date d/m/y} there ??
what should resolve ?
tinymce.init({ theme : "advanced", theme_advanced_toolbar_align : "left", height : "400px", mode: "exact", elements : "description", plugins : "autolink,lists,spellchecker,pagebreak,style,layer,table,save,advhr,advimage,advlink,emotions,iespell,inlinepopups,insertdatetime,preview,media,searchreplace,print,contextmenu,paste,directionality,fullscreen,noneditable,visualchars,nonbreaking,xhtmlxtras,template,ibrowser", setup : function(ed){ ed.onkeyup.add(function (ed, event) { tinymce.triggersave(); $("#editview#description").trigger({type: 'keyup', ctrlkey: event.ctrlkey, altkey: event.altkey, which: event.keycode, event:eventobject }); }); }, theme_advanced_buttons1 : "save,newdocument,|,bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,styleselect,formatselect,fontselect,fontsizeselect", theme_advanced_buttons2 : "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|,link,unlink,anchor,image,cleanup,help,code,|,insertdate,inserttime,preview,|,forecolor,backcolor", theme_advanced_buttons3 : "tablecontrols,|,hr,removeformat,visualaid,|,sub,sup,|,charmap,emotions,iespell,media,advhr,|,print,|,ltr,rtl,|,fullscreen,ibrowser", theme_advanced_buttons4 : "insertlayer,moveforward,movebackward,absolute,|,styleprops,spellchecker,|,cite,abbr,acronym,del,ins,attribs,|,visualchars,nonbreaking,template,blockquote,pagebreak,|,insertfile,insertimage", theme_advanced_toolbar_location : "top", width: "100%", inline_styles : true, directionality : "ltr", entity_encoding: 'raw', cleanup_on_startup : true, strict_loading_mode : true, convert_urls : false, remove_redundant_brs : true, plugin_insertdate_dateformat : '{date '+df+'}', content_css :cssurl+"/includes/style/style.css", });
i guess validation mechanism doesn't take account tinymce not equal textarea or input field have in form. tinymce creates new iframe in editor content gets edited.
Comments
Post a Comment