2
我在我的CMS頁面上使用tinymce並面臨需要驗證(jquery)的問題。一切順利,但是當我使用編輯器僅插入日期{DATE d/m/Y}時。 jquery驗證不會熄滅。PHP tinymce,驗證問題
我的意思是如果只有日期是存在的話,那麼如果在驗證工作完成之後或之後給予空白空間,就會產生問題。但是,只有日期{DATE d/m/Y}在那裏時,爲什麼驗證不起作用?
我該怎麼做才能解決這個問題?
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",
});
您是否收到任何錯誤?檢查螢火蟲 – 2013-04-05 10:35:29
@LearneR:沒有錯誤。 – coder 2013-04-05 10:38:11
這不僅僅是約會。如果我添加一些表並留空。它給出了相同的結果 – coder 2013-04-05 10:39:17