1

Topic: Ibrowser works, partially

I have been playing with tinymce the entire evening and i stumbled across a plugin called ibrowser. This is really a great plugin. I installed it and after a few hours of fiddling i got this far:

it opens the ibrowser plugin when i select the ibrowser button in tinyMCE (which btw is called {$lang_ibrowser_desc} which means it has not read the language file)

I CAN select images, upload images and delete images

i CAN't change width / height propertise
I DON't see the language files...

I think the problem has something to do with "editor_plugin.js" since that file holds the path to the language files AND the extra function for width / height etc. which i can't use.

Can anyone help me out?

Here is the error:

An error has occured on this page

Line 195
Char 13
Syntax Error
Code: 0

URL: http://localhost/tinymce/jscripts/tiny_mce/plugins/ibrowser/ibrowser.php

My config looks like this:

// ================================================
// v.1.0, 2004-10-04
// ================================================

// edit:
// Plugin seems to work in nearly all browsers now
// sk@mandarin-medien.de (2005)

// directory where tinymce files are located
$tinyMCE_dir = '\rockdesign\conservationcareFinal\classes\jscontenteditor\tinymce\jscripts\tiny_mce\';

// base url for images
$tinyMCE_base_url = 'http://localhost';

$tinyMCE_DOC_url = 'C:/wamp/';

$SCRIPT_NAME=str_replace("//","/",str_replace("\","/",$_SERVER["SCRIPT_NAME"])); 
$SCRIPT_FILENAME=str_replace("//","/",str_replace("\","/",$_SERVER["SCRIPT_FILENAME"])); 

$HTTP_SERVER_VARS['DOCUMENT_ROOT']=substr($SCRIPT_FILENAME,0,strlen($SCRIPT_FILENAME)-strlen($SCRIPT_NAME)); 

unset($SCRIPT_NAME); 
unset($SCRIPT_FILENAME); 
 

// image library related config

// allowed extentions for uploaded image files
$tinyMCE_valid_imgs = array('gif', 'jpg', 'jpeg', 'png');

// allow upload in image library
$tinyMCE_upload_allowed = true;

// allow delete in image library
$tinyMCE_img_delete_allowed = true;

// image libraries
$tinyMCE_imglibs = array(
  array(
    'value'   => '/images/',
    'text'    => 'Images',
  )
);
// file to include in img_library.php (useful for setting $tinyMCE_imglibs dynamically
// $tinyMCE_imglib_include = '';

Any help is appreciated. I really enjoy working with this editor and i would love to use it in future projects...

- Roderik  big_smile

2

Re: Ibrowser works, partially

actually, i solved one problem:

OK. I know very little about how tinyMCE works (as I'm sure you worked out!), but it was obviously a problem with the language setting. I played around a bit and found that if I renamed the langs/uk.js file to langs/en.js and made the corresponding change in the editor_plugin.js file (tinyMCE.importPluginLanguagePack('ibrowser', 'en,de'), it worked perfectly. Don't ask me why, it just seemed like a sensible thing to try having read the tinyMCE docs about language settings.

3

Re: Ibrowser works, partially

actually, i solved one problem:

OK. I know very little about how tinyMCE works (as I'm sure you worked out!), but it was obviously a problem with the language setting. I played around a bit and found that if I renamed the langs/uk.js file to langs/en.js and made the corresponding change in the editor_plugin.js file (tinyMCE.importPluginLanguagePack('ibrowser', 'en,de'), it worked perfectly. Don't ask me why, it just seemed like a sensible thing to try having read the tinyMCE docs about language settings.

tinymce recently changed the language file from uk.js to en.js - that was the problem - glad it works now for you