Table plugin icon

84 views
Skip to first unread message

archana goyal

unread,
Jul 30, 2014, 7:37:04 AM7/30/14
to cled...@googlegroups.com
Hello,

When I include table plugin to editor , table plugin fine but table icon is not appearing on editor.

It is coming like this

<div class="cleditorButton" title="Insert Table" style="background-image: url(http://localhost:81/CLEditor1_4_5/jquery.cleditor.cssimages/table.gif); background-color: transparent;"></div>

And I want like this :

<div class="cleditorButton" title="Insert Table" style="background-image: url(images/table.gif); background-color: transparent;"></div>

新家弘健

unread,
Mar 4, 2017, 8:18:30 PM3/4/17
to cleditor
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:

Unboxing And Review

unread,
Jul 24, 2018, 12:14:10 PM7/24/18
to cleditor


On Sunday, March 5, 2017 at 6:48:30 AM UTC+5:30, 新家弘健 wrote:
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:
Hello,

When I include table plugin to editor , table plugin fine but table icon is not appearing on editor.It is coming like this


<div class="cleditorButton" title="Insert Table" style="background-image: url(http://localhost:81/CLEditor1_4_5/jquery.cleditor.cssimages/table.gif); background-color: transparent;"></div>

And I want like this :

<div class="cleditorButton" title="Insert Table" style="background-image: url(images/table.gif); background-color: transparent;"></div>


i have same problem please help When I include table plugin to editor , table plugin fine but table icon is not appearing on editor.
 
Reply all
Reply to author
Forward
0 new messages