Hi php wordpress people,
I'm using inline editor plugin for wordpress I am aware that for seo purposes it is best to make sure these are external files. When I view the source in my browser I can see the javascript for inline editor plugin is displayed in the page code.
Is there a way to make this an external js file, within the wordpress framework, or will it have to be within the page for the plugin to work?
thanks for your help
Regards judi
Anyone know where this is comming from? I don't see it on my other websites so it must be from a different plugin?
<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>