TinyMCE WYSIWYG editor

Creating and modifying plugins.
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Any idea what would make the entry area be forced to about three times the normal width? I was using Tiny_mce like normal for a while and now every time I try to do an entry with tiny_mce enabled the entry area is very wide and tiny_mce doesn't show up. I can do without but it sure was nice! I didn't change anything related to the plugin that I know of.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

The WYSIWYG uses the frontend template's style, and depending on the widts set for the template style this could mangle the WYSIWYG editor...

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

Makes complete sense but now I can't change templates. I've been using codeschmiede for a while now and when I try to change to the default, it says I'm using default but nothing changes. I tried Leaf and it just messes up the header. Any ideas on what would prevent changing templates now?
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hm, the default template is "Serendipity 2.3", did you choose that one? If you didn't overwrite files it should show up on your frontpage!

If you can check your serendipity_config database table, the "template" variable there should tell you "default", right?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
davecjr
Regular
Posts: 167
Joined: Fri Oct 29, 2004 3:09 pm
Contact:

Post by davecjr »

It did change my front page when I changed to 2.3 and it did say default in the table it also changed when I changed to Joshua template. Some of the other tamplated I tried earlier just seemed to mess things up but none change the template for the way things look when I'm logged in for the admin side. It's still the codeschmiede template for admin.
Guest

Post by Guest »

After logging in and out and different browsers it never changed the template for the admin side of things. Now today the admin is back to default but the tiny_mce editor still makes the entry windows about three times the size and none of the buttons of tiny_mce show up.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Can you make a screenshot of that, or give me an account to your s9y installation?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Guest

Post by Guest »

I get the same error like davecjr.

Here is the code - the directory is right - i'm using tinymce 2.0rc3.

Code: Select all

<script language="javascript" type="text/javascript" src="/www/htdocs/hitblog/plugins/serendipity_event_tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php"></script>
<script language="javascript" type="text/javascript">
	tinyMCE.init({
		mode 
		    : "textareas",
        language
            : "de",
		theme 
		    : "advanced",
		plugins 
		    : ",table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu,paste,directionality,fullscreen",
		theme_advanced_buttons1_add_before 
		    : "save,newdocument,separator",
		theme_advanced_buttons1_add 
		    : "fontselect,fontsizeselect",
		theme_advanced_buttons2_add 
		    : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
		theme_advanced_buttons2_add_before
		    : "cut,copy,paste,pastetext,pasteword,separator,search,replace,separator",
		theme_advanced_buttons3_add_before 
		    : "tablecontrols,separator",
		theme_advanced_buttons3_add 
		    : ",emotions,iespell,flash,advhr,separator,print,separator,ltr,rtl,separator,fullscreen",
		theme_advanced_toolbar_location 
		    : "top",
		theme_advanced_toolbar_align 
		    : "left",
		theme_advanced_path_location 
		    : "bottom",
		content_css 
		    : "http://blog.hitziger.net/serendipity.css",
	    plugin_insertdate_dateFormat 
	        : "%Y-%m-%d",
	    plugin_insertdate_timeFormat 
	        : "%H:%M:%S",
		extended_valid_elements 
		    : "a[name|href|target|title|onclick|style],img[style|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],div[class|aign|style]",
		external_link_list_url 
		    : "example_link_list.js",
		external_image_list_url 
		    : "example_image_list.js",
		flash_external_list_url 
		    : "example_flash_list.js"
	});
</script>
hitzi
Regular
Posts: 5
Joined: Fri Jun 03, 2005 10:46 am

Post by hitzi »

I was the guest in the last post.

I found the error. Don't use the full path use a relative one.

I had to replace "/www/htdocs/hitblog/plugins/serendipity_event_tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php" with "/plugins/serendipity_event_tinymce/tinymce/jscripts/tiny_mce/tiny_mce_gzip.php" in my case.

It's working now but the background of the editbox has a dark color - how can i change this?

[EDIT]

Don't work very well. Any popup window (color, smileys, ...) opens the main website (maybe because of the htaccess file). The background of the editbox is dark because of the used s9y style. If I change the style to a blue one then i got a blue editbox in tinymce :(

[EDIT2]

Made a new css file and changed in "serendipity_event_tinymce.php" the content_css line to: content_css : "example_full.css"
Disabling the line "RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]" in the htaccess file helps with the popup windows.
Last edited by hitzi on Thu Oct 13, 2005 3:15 pm, edited 1 time in total.
MySchizoBuddy
Regular
Posts: 340
Joined: Sun Jun 12, 2005 5:28 am

Post by MySchizoBuddy »

thats a problem with tinymce. people on tinymce forum are having same issue wiht the editor taking on the color of the <Body> tag.

yeah tinymce 2.0RC3 is out and so is FCKeditor 2.1. we need to test both of these two releases.
Image
hitzi
Regular
Posts: 5
Joined: Fri Jun 03, 2005 10:46 am

Post by hitzi »

I edited my post as you posted yours. So please read [EDIT2] in my post.

I tried FCKeditor 2.1 too - I could only use the relative path again in this case and when i try to write a new message i'll only get the main page (blog) in the editor area. That's because of the line "RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]" in the htaccess file. Removing it and FCKeditor works very well (like tinymce now too :) ).
Guest

Post by Guest »

hitzi,

thank you! i was scratching my head over the exact problem you described (main page showing in htmlareas) when trying out FCKeditor.

after removing "RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]" from the .htaccess file everything seems to be working properly!

cheers,
james
jhermanns
Site Admin
Posts: 378
Joined: Tue Apr 01, 2003 11:28 pm
Location: Berlin, Germany
Contact:

Post by jhermanns »

installing it exactly as described has been working for ages and also like a charm, with imanager and everything. very nice. :)
Guest

Post by Guest »

Ok now. I've installed TinyMCE as described and got no errors. The Problem is, that no buttons are shown at all :(
The Path is relative ('/plugins/seren.../tinymce/'), the JS is in the code of the page, but when I try to make a new entry from the admin interface, no buttons appear at the top of the edit field.

Maybe someone can help me.

CU
ali
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Have you tried to call the URL that points to the javascript in your browser, and see if that URL yields a 404 error or something different?

If you use mod_rewrite you need to put a .htaccess file in your directory with the contents "RewriteEngine Off".

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply