Hello fellow Xoopsers,
I encountered the same problems as you did. I have played around with TinyEditor and fixed some problems.
You can find our hack here :
tinyedior_smartfactory_hack.zipHere is what we did on this package :
@brandx:
Quote:
When i click on the add image button the window is size properly initially but immediately is resized to around 50px by 50px and cannot be resized.
I removed the code that was resizing the window under IE. It now works fine, at least for me
@pjcvdpol:
Quote:
However.... the pages show with no images on the user side, just the outlines and alt-tag.
I found out that this is caused by all images' path tp be saved as relative path. To fix this, go in TinyEditor's preferences and set this option to
No :
Force relative URLs@brandx:
Quote:
Also, I thought the documentation states that a user can have his / her own directory for images.. currently it displays all the images in the images directory. Any idea how to implement this?
Yes, this can be done by going in the TinyEditor's preference and changing this option to
Yes :
Enable per-user directories?I also fixed a little issue of HTML outputing at the wrong place when the editor is used within a form using a template.
Also, I beleive I have fixed all the places that had not been translate in french. And for those who are translating this module you need to be aware of this :
- You need to copy the english foldder in modules/tinyeditor/language/ and named it with your language. Then you need to translate all constants of each files in it. But this is normal XOOPS procedure
- Then, you also need to translate every plugin you would like to use.
- Plugin language constant are defined differently.
- They are defined in modules/tinyeditor/editor/plugins/pluginName/langs/
- For example, let's take the image manager plugin
- You need to copy the file modules/tinyeditor/editor/plugins/imgmanager/langs/en.js and rename it with the name or your language, for example. in french, it would be fr.js
- Edit this new file and translated the constant
- Finally, you also need to edit the plugin mainfile to tell this file to also load this new language
- This file is : modules/tinyeditor/editor/plugins/pluginName/langs/editor_plugin.js
- Edit this file and change this line at the top of the file to add your language :
/* Import theme specific language pack */
tinyMCE.importPluginLanguagePack('imgmanager', 'en,[b][color=CC0000]fr[/color][/b],it');
Finally, I never was able to make the Advanced Image Manager plugin to work. Has anybody was ?