[Solved] Can't get TinyMCE image list working
Posted: Mon Aug 28, 2006 7:04 am
I've gone with TinyMCE after all the recommendations here. Has anyone got any idea why "image list" would work when testing from my home server (winXP Apache), but not on the public Linux one?
everything is the same on both servers. Link list works on both servers.
Can't work out why using exactly same browsers! The TinyMCE forum is not great and has been posted too and extensively searched!
Here's my code
and the myexternallist.js file
everything is the same on both servers. Link list works on both servers.
Can't work out why using exactly same browsers! The TinyMCE forum is not great and has been posted too and extensively searched!
Here's my code
Code: Select all
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "textareas",
theme : "advanced",
theme_advanced_buttons1 : "bold,italic,underline,formatselect,separator,cut,copy,paste,separator,justifyleft,justifycenter,justifyright, justifyfull,undo,redo,image,link,unlink,separator,help",
theme_advanced_buttons2 : "",
theme_advanced_buttons3 : "",
theme_advanced_blockformats : "p,h1,h2",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
content_css : "mycontent.css",
external_image_list_url : "myexternallist.js",
external_link_list_url : "myexternallink.js",
extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]"
});
</script>Code: Select all
var tinyMCEImageList = new Array(
// Name, URL
["Bridge Accessory Pack","../images/157.jpg"],
["Arthur","../images/3.jpg"],
["Bulgy","../images/153.jpg"],
["Breakdown Train","../images/6.jpg"],
["Working Hard Set","../images/158.jpg"],
["Clarabel","../images/9.jpg"],
["Culdee","../images/10.jpg"],
["Chinese Dragon","../images/156.jpg"],
["Dennis","../images/11.jpg"],
["Diesel","../images/12.jpg"],
["Diesel 10","../images/13.jpg"],
["Donald","../images/14.jpg"],
["Douglas","../images/15.jpg"],
["Duck","../images/16.jpg"],
["Duncan","../images/17.jpg"],
["Edward","../images/18.jpg"],
["Lorry","../images/163.jpg"],
["Emily","../images/20.jpg"],
["My First Noddy track set","../images/166.jpg"],
["Fergus","../images/21.jpg"],
["Gordon","../images/23.jpg"],
["Jack","../images/162.jpg"],
["Harvey","../images/25.jpg"],
["Henry","../images/26.jpg"],
["Iron Arry","../images/27.jpg"],
["Iron Bert","../images/28.jpg"],
["James","../images/30.jpg"],
["Lady","../images/31.jpg"],
["Log Loader","../images/32.jpg"],
["Magic Car","../images/34.jpg"],
["Mavis","../images/35.jpg"],
["Milk Tanker","../images/36.jpg"],
["Molly","../images/38.jpg"],
["Murdoch","../images/39.jpg"],
["Alfie","../images/151.jpg"],
["Neville","../images/40.jpg"],
["Oil Car","../images/41.jpg"],
["Orange Barrel","../images/42.jpg"],
["Percy","../images/43.jpg"],
["Harold","../images/161.jpg"],
["Rock Hopper","../images/44.jpg"],
["Salty","../images/45.jpg"],
["Skarloey","../images/46.jpg"],
["George","../images/160.jpg"],
["Smelters Truck","../images/47.jpg"],
["Sodor Fuel Wagon","../images/48.jpg"],
["Spencer","../images/49.jpg"],
["Terrance","../images/50.jpg"],
["Thomas","../images/51.jpg"],
["Thumper","../images/52.jpg"],
["Toby","../images/53.jpg"],
["Elizabeth","../images/159.jpg"],
["Troublesome Truck","../images/54.jpg"],
["Trevor","../images/55.jpg"],
["What a Performance","../images/56.jpg"],
["Piggy in the Middle","../images/57.jpg"],
["Two by Two","../images/58.jpg"],
["Magic Cauldron","../images/59.jpg"],
["Potty Professors","../images/60.jpg"],
["Walk the Plank","../images/61.jpg"],
["What's the Time Mr Wolf?","../images/62.jpg"],
["Party Party Party","../images/63.jpg"],
["Jack and the Beanstalk","../images/64.jpg"],
["Greedy Gorilla","../images/65.jpg"],
["Crash Bang Wallop","../images/66.jpg"],
["Cock a Doodle Moo!","../images/67.jpg"],
["Humpty Dumpty","../images/68.jpg"],
["Mulberry Bush","../images/69.jpg"],
["What's Rubbish","../images/70.jpg"],
["Noddy Airport Set","../images/178.jpg"],
["Washing Machine Game","../images/71.jpg"],
["Rain or Shine","../images/72.jpg"],
["Sharon the Sheep","../images/73.jpg"],
["Bus Stop","../images/74.jpg"],
["Noddy and Aeroplane","../images/176.jpg"],
["Insey Winsey Spider","../images/75.jpg"],
["Pass the Word","../images/76.jpg"],
["Pirates Snakes and Ladders","../images/77.jpg"],
["Tummy Ache","../images/78.jpg"],
["Nodding Noddy Figure","../images/175.jpg"],
["Colour Match Game","../images/79.jpg"],
["Pop to the Shops","../images/80.jpg"],
["Sly and Gobbo with Motorcycle","../images/172.jpg"],
["Tessie Bear and Car","../images/173.jpg"],
["Wild World Lotto","../images/82.jpg"],
["Mr Plod and Truck","../images/171.jpg"],
["Red Dog, Blue Dog","../images/83.jpg"],
["Chicken Out","../images/84.jpg"],
["Shopping List","../images/85.jpg"],
["Sneaky Sharks","../images/86.jpg"],
["What's funny","../images/87.jpg"],
["Mr Sparks and his breakdown truck","../images/169.jpg"],
["Quack Quack","../images/88.jpg"],
["Tell the time","../images/89.jpg"],
["Scaredy Cat","../images/90.jpg"],
["Game of Ladybirds","../images/91.jpg"],
["Traffic Jam","../images/92.jpg"],
["Pick and Mix People","../images/93.jpg"],
["Match and count","../images/94.jpg"],
["Yo Ho Ho!","../images/95.jpg"],
["Knickerbocker Glory","../images/96.jpg"],
["Farmyard Dominoes","../images/97.jpg"],
["Spotty Dog Game","../images/98.jpg"],
["Slug in a Jug","../images/99.jpg"],
["Ooky Spooky","../images/100.jpg"],
["Transport","../images/101.jpg"],
["Jungle","../images/102.jpg"],
["Farmyard","../images/103.jpg"],
["Rescue Squad","../images/104.jpg"],
["Big Wheels","../images/105.jpg"],
["Who's in the Jungle?","../images/106.jpg"],
["Who's on the farm?","../images/107.jpg"],
["Giant Fairy Tale Puzzle","../images/108.jpg"],
["Giant Alphabet Puzzle","../images/109.jpg"],
["Giant Farm Puzzle","../images/110.jpg"],
["Nursery Rhyme Puzzle","../images/112.jpg"],
["At the Stable","../images/113.jpg"],
["At the Stable","../images/114.jpg"],
["Big Racing Car","../images/115.jpg"],
["Dolls House","../images/116.jpg"],
["Big Fire Engine","../images/117.jpg"],
["Big Digger","../images/118.jpg"],
["Big Bus","../images/119.jpg"],
["Big Tractor","../images/120.jpg"],
["Big Aeroplane","../images/121.jpg"],
["The Jolly Roger","../images/122.jpg"],
["Magical Castle","../images/123.jpg"],
["Noah's Ark","../images/124.jpg"],
["Gingerbread House","../images/125.jpg"],
["Creepy Castle","../images/126.jpg"],
["Building Site","../images/127.jpg"],
["British Isles Puzzle","../images/128.jpg"],
["Pirate Ship","../images/129.jpg"],
["Noddy Draw and Drive set","../images/177.jpg"],
["Push n Go Noddy","../images/174.jpg"],
["Noddy and Car","../images/170.jpg"],
["Switch & Cross Track","../images/164.jpg"],
["Big-Ears and his fire truck ","../images/168.jpg"],
["Noddy Toyland Playset ","../images/167.jpg"],
["Muck","../images/136.jpg"],
["Skip","../images/145.jpg"],
["Lofty","../images/138.jpg"],
["Benny","../images/139.jpg"],
["Dizzy","../images/140.jpg"],
["Roley","../images/141.jpg"],
["Trix","../images/146.jpg"],
["Scoop","../images/143.jpg"],
["Scrambler","../images/144.jpg"],
["Annie","../images/154.jpg"],
["Bertie","../images/152.jpg"],
["Harold's Heliport","../images/148.jpg"],
["Brendam Docks","../images/149.jpg"],
["Work & Play Engine Shed","../images/150.jpg"],
["Train Yard Set","../images/165.jpg"]
);