Quote from: minder at Mar 24, 2008, 03:42 AM
Everything works perfect in Mozilla and Opera, but that dumb IE displays plain textarea. TinyMCE failed to initialise? Why?
Any suggestions?
hi,
try to comment the <base href="[(site_url)]" /> tag....
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save
-
☆ A M B ☆
- 24,524 Posts
IE goes stupid (stupider?) with that tag being self-closing; try
<base href="[(site_url)]"></base>
A few Qs for the tiny wizards:
- Is it possible to configure each instance of the editor? For instance, I’ve added an editor for a sidebar area and would like to limit the plugins/buttons available to that content area; and
With the above concept in mind, and assuming it’s possible, I’ve been entertaining the concept of using an instance of the editor (with no buttons) for a TV that houses article titles in a news section of the site I’m working on. What I’m really going for is the html special character encoding functionality. So, say when an end user enters quotes or special characters like em dashes, etc., the correct html will be output. Does that sound like a sensible idea, or is there a pre-existing method for achieving html formatting in small richtext fields?
Is the spellchecker plugin implementable? The necessary support files (in the plugin’s directory [classes, includes, config.php, and rpc.php]) do not appear in the modx distribution and I wonder if there’s reason keep it that way, or can they be added back in without harm?
Thanks for your help!
------
Server: *nix, ModX Evo 1.0.4, Apache 2.x, PHP 5.x, Mysql 5.x.
@rasc: Add this to my to-do list. I’ll see if I can figure out a way to allow for escaping the equals signs so that the functions that parse the plugin options don’t get confused.
@smg6511: It’s not possible to configure each instance...not yet at least. One of the things I’m looking at doing is rebuilding all of the RTE plugins as classes. The benefit of this would be that you could create your own instance pretty easily via a snippet that would give you all the benefits of the plugin. Theoretically, this would also allow you to create a TV and, using the ID of the TV, create an instance of TinyMCE using the snippet and target the TV. Don’t know of a timeline when this will be done but I definitely have it on my to-do list.
Regarding the spellchecker plugin, I haven’t played with it as much as I’d like. I think some of the pre-requisites for it before kept me from inplementing. I’ll look at it again and see what progress has been made in way of standardization of it.
Jeff Whitfield
"I like my coffee hot and strong, like I like my women, hot and strong... with a spoon in them."
Thanks, that’s great. Results in more usability of TinyMCE!
mmm i think you can have multiple instance if you use something like this in your page :
<script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce303/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript" src="[(base_url)]assets/plugins/tinymce303/xconfig.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
mode : "exact",
elements : "element1",
theme : "advanced",
plugins : "plugin1, plugin2",
theme_advanced_buttons1 : "button1, button2",
content_css : "element1.css"
});
tinyMCE.init({
mode : "exact",
elements : "element2",
theme : "advanced",
plugins : "plugin2, plugin3",
theme_advanced_buttons1 : "button3, button4",
content_css : "element2.css"
});
function myFileBrowser (field_name, url, type, win) {
//var cmsURL = '/assets/plugins/tinymce303/mcpuk/browser.php?Connector=/assets/plugins/tinymce303/mcpuk/connectors/php/connector.php&ServerPath=/&editor=tinymce3&editorpath=/assets/plugins/tinymce303'; // script URL - use an absolute path!
var cmsURL = '[(base_url)]assets/plugins/tinymce30/mcpuk/browser.html?Connector=[(base_url)]assets/plugins/tinymce30/mcpuk/connectors/php/connector.php&ServerPath=[(base_url)]&ExtraParams=tinymce3'; // script URL - use an absolute path!
switch (type) {
case "image":
type = 'images';
break;
case "media":
break;
case "flash":
break;
case "file":
type = 'files';
break;
default:
return false;
}
if (cmsURL.indexOf("?") < 0) {
//add the type as the only query parameter
cmsURL = cmsURL + "?type=" + type;
}
else {
//add the type as an additional query parameter
// (PHP session ID is now included if there is one at all)
cmsURL = cmsURL + "&type=" + type;
}
tinyMCE.activeEditor.windowManager.open({
file : cmsURL,
width : screen.width * 0.7, // Your dimensions may differ - toy around with them!
height : screen.height * 0.7,
resizable : "yes",
inline : "yes", // This parameter only has an effect if you use the inlinepopups plugin!
close_previous : "no"
}, {
window : win,
input : field_name
});
return false;
}
</script>
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save
Jeff, thanks for the info — I look forward to your ideas coming to fruition! I may experiment with the spellchecker a bit myself and, if I get it operational, chime back in on the subject.
@manu: Thanks for your suggestion. I’m guessing that this script allows multiple instances on the front-end and not the back? The context I’m really looking to control is the manager view of the RTEs ...
------
Server: *nix, ModX Evo 1.0.4, Apache 2.x, PHP 5.x, Mysql 5.x.
Quote from: smg6511 at Apr 11, 2008, 01:32 PM
@manu: Thanks for your suggestion. I’m guessing that this script allows multiple instances on the front-end and not the back? The context I’m really looking to control is the manager view of the RTEs ...
aha.. , yes it’s for the front-end not the manager.
CTRL+SHIFT+U - Clear Cache
CTRL+SHIFT+H - Hiding Heft Panel
CTRL+SHIFT+N - Fast Create Resource
CTRL+ALT+P - Preview Recource (in edit resorce window)
CTRL+ALT+S - Save