jquery.cleditor.js ver 1.4.5
// imagesPath - returns the path to the images folder
function imagesPath(){
var href = $("link[href*=cleditor]").attr("href");
// return href.replace(/^(.*\/)[^\/]+$/, '$1') + "images/";
return href.replace(/^(.*\/)[^\/]+$/, '$1');
}
// imageUrl - Returns the css url string for a filemane
function imageUrl(filename){
// return "url(" + imagesPath() + filename + ")";
return "url(" + filename + ")";
}
(function($){ // Define the table button
$.cleditor.buttons.table ={
name: "table",
image: "images/table.gif",
title: "Insert Table",
2014年7月30日水曜日 20時37分04秒 UTC+9 archana goyal: