안녕 PHP는, 사람들이 워드 프레스. 브라우저에서 소스를 볼 때 인라인 편집기 플러그인의 자바 스크립트가 페이지 코드에 표시되는 것을 볼 수 있습니다.인라인 편집기 플러그인 용 wordpress external javascript 파일은 무엇입니까? 내가 현서 목적으로는 이러한 외부 파일 있는지 확인하는 것이 좋습니다 것을 알고 워드 프레스 인라인 편집기 플러그인을 사용하고</p> <p>
wordpress 프레임 워크 내에서 외부 js 파일을 만들 수있는 방법이 있습니까, 아니면 플러그인이 작동하도록 페이지 내에 있어야합니까? 이에서오고 어디 당신의 도움이
감사 주디
사람들을위한
덕분에 알아? 다른 웹 사이트에서는 볼 수 없으므로 다른 플러그인에서 제공해야합니까?
<script type="text/javascript">
/* <![CDATA[ */
var ileNicEditor;
function startEditing(postId) {
jQuery("#ileEditLink"+postId).hide();
jQuery("#ileEditButton-"+postId).hide();
jQuery("#ileCancelButton-"+postId).show();
ileCreateNicEditor(postId);
}
function ileCreateNicEditor(postId) {
jQuery.ajax({async:false,
type:"POST",
url:"http://fr.com/wp-content/plugins/inline-editor/ajax-content.php",
data:"id="+postId,
success:function(data){
jQuery("#ileContent-"+postId).html(data);
}
});
ileNicEditor = new nicEditor({fullPanel:true,
iconsPath:"http://fr.com/wp-content/plugins/inline-editor/nicEditorIcons.gif",
onSave:function(content,id,instance){ileSave(postId,content)}
}).panelInstance("ileContent-"+postId,{hasPanel:true});;
jQuery("#ileCancelButton"+postId).show();
}
function ileSave(postId,content){
jQuery.post("http://fr.com/wp-content/plugins/inline-editor/ajax-save.php",
{"id":postId,
"content":content},
function(data){
alert(data.message)
jQuery("#ileCancelButton-"+postId).click();
},
"json");
}
/* ]]> */
</script>
예. 코드가 플러그인의 테마에 없습니다. –
테마 용 외부 파일을 만드는 방법을 알고 있지만 브라우저에서 소스를 볼 때 플러그인이 페이지에 추가하는 이유는 무엇입니까? –