Tinymce - Path To Css Doesn't Work
#1 Guest_dragonos_*
Posted 09 May 2006 - 07:10 AM
I try to setuo TinyMCE correctly.
I entered the correct path to my site-css but the css doesn't seem to be used.
I tried the path fro my servers root and the absolute path (http://...).
What's wrong?
Thanks.
dragonos
#2
Posted 09 May 2006 - 01:04 PM
dragonos, on May 9 2006, 04:10 AM, said:
I try to setuo TinyMCE correctly.
I entered the correct path to my site-css but the css doesn't seem to be used.
I tried the path fro my servers root and the absolute path (http://...).
What's wrong?
Thanks.
dragonos
#3 Guest_dragonos_*
Posted 09 May 2006 - 02:45 PM
Ralph (rad14701), on May 9 2006, 03:04 PM, said:
I entered the path to my global css in the etomite configuration.
Isn't it possible that TinyMCE shows the correct formating (e.g. font-color, ...) while editing?
#4
Posted 09 May 2006 - 07:26 PM
dragonos, on May 9 2006, 11:45 AM, said:
Isn't it possible that TinyMCE shows the correct formating (e.g. font-color, ...) while editing?
For any additional Etomite related help we would need the following:
<generic_request>
Please supply us with additional information so we can better assist you in resolving this issue... The following information, complete with version/release will be of great help... If the issue is browser-specific also include browsers tested and the results of each...
Server Operating System
Server Software
PHP version
MySQL
</generic_request>
#5
Posted 13 May 2006 - 04:04 PM
That includes this: "Apache/2.0.55 (Win32) DAV/2 PHP/5.1.1"
I have included the path to my CSS file and used the CSS selectors, but neither appear to have any effect on the default TinyMCE.
I've also installed Etomite on my Dreamhost account and the same thing happens. I'm using a default install. The only thing I do is provide various different possible links to the CSS file and a couple of CSS selectors which I've added the classes for into the default new-E.css
It completely refuses to work on either server.
Do you guys have it working in 0.61 Prelude?
#6
Posted 14 May 2006 - 12:43 PM
In the file: /manager/actions/dynamic/mutate_content.dynamic.action.php
This code:
tinyMCE.init({
relative_urls : true,
document_base_url : "<?php echo $ETOMITE_PAGE_BASE['relative']; ?>",
mode : "textareas",
theme : "advanced",
relative_urls : rel,
remove_script_host : false,
convert_urls : true,
plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zo
om,flash,searchreplace,print, _
contextmenu,paste,directionality,fullscreen,noneditable,ibrowser",
theme_advanced_buttons1_add_before : "save,newdocument,separator",
theme_advanced_buttons1_add : "fontselect,fontsizeselect",
theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,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,ful
lscreen,ibrowser",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
theme_advanced_path_location : "bottom",
content_css : "example_full.css",
plugin_insertdate_dateFormat : "%Y-%m-%d",
plugin_insertdate_timeFormat : "%H:%M:%S",
extended_valid_elements : "hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
external_link_list_url : "example_data/example_link_list.js",
external_image_list_url : "example_data/example_image_list.js",
flash_external_list_url : "example_data/example_flash_list.js",
file_browser_callback : "mcFileManager.filebrowserCallBack",
theme_advanced_resize_horizontal : false,
theme_advanced_resizing : true
});
As far as I can tell, content_css : "example_full.css", should be some kind of database config parameter call, but it's not.
Also, theme_advanced_styles : "<?php config params from db ?>" should be in there somewhere, but it's not.
Funnily enough, when I make these corrections, TinyMCE works how I want it to. Do you still think it's a problem with TinyMCE?
#7
Posted 14 May 2006 - 02:45 PM
#8
Posted 14 May 2006 - 02:57 PM
anarchistic, on May 14 2006, 09:43 AM, said:
In the file: /manager/actions/dynamic/mutate_content.dynamic.action.php
<<< SNIP >>>
As far as I can tell, content_css : "example_full.css", should be some kind of database config parameter call, but it's not.
Also, theme_advanced_styles : "<?php config params from db ?>" should be in there somewhere, but it's not.
Funnily enough, when I make these corrections, TinyMCE works how I want it to. Do you still think it's a problem with TinyMCE?
#9
Posted 28 May 2006 - 08:53 AM
content_css : "example_full.css",needs to be:
theme_advanced_styles : "<?php echo($cssSelectors); ?>", content_css : "<?php echo($cssPath); ?>",
Holy fart! I made a change and it worked!
Do you want me to put this in the bug forum?
#10
Posted 29 May 2006 - 07:22 PM
anarchistic, on May 28 2006, 04:53 AM, said:
content_css : "example_full.css",needs to be:
theme_advanced_styles : "<?php echo($cssSelectors); ?>", content_css : "<?php echo($cssPath); ?>",
Holy fart! I made a change and it worked!
Do you want me to put this in the bug forum?
#11
Posted 06 June 2006 - 11:42 PM
#12
Posted 06 June 2006 - 11:47 PM
#13
Posted 07 June 2006 - 01:24 AM
Dean, on Jun 6 2006, 07:47 PM, said:
#14 Guest_xrepins_*
Posted 07 June 2006 - 03:14 PM
#15 Guest_xrepins_*
Posted 07 June 2006 - 03:44 PM
#16 Guest_xrepins_*
Posted 07 June 2006 - 04:05 PM
#17
Posted 14 June 2006 - 04:13 AM
#18
Posted 14 June 2006 - 05:25 AM
anarchistic, on Jun 14 2006, 12:13 AM, said:
#19
Posted 09 August 2006 - 04:08 PM
If you leave the "CSS selectors" field under the "Interface & editor settings" tab blank, then "<?php echo ($cssSelectors);?>" displays "theme_advanced_styles". This means that in the style dropdown menu you have an option "theme_advanced_styles" which is not a valid style. If you put a space in the "CSS selectors" field then you end up with a space as an option in the drop down menu. Therefore if 'tiny_css_selectors' is empty then no "theme_advanced_styles :" should appear in the tinyMCE.init call.
Here is the offending extract from the HTML
theme_advanced_styles : "theme_advanced_styles", content_css : "../templates/bl/styles/standard.css",
Maybe this would be a better way to fix this problem, you need to edit this file "mutate_content.dynamic.action.php":
First Change this:
<!-- tinyMCE -->
<?php
} elseif($which_editor==1) {
$cssPath = !empty($tiny_css_path) ? $tiny_css_path : "";
$cssSelectors = !empty($tiny_css_selectors) ? $tiny_css_selectors : "theme_advanced_styles";
?>
to this:
<!-- tinyMCE -->
<?php
} elseif($which_editor==1) {
$cssPath = !empty($tiny_css_path) ? "content_css : \"$tiny_css_path\",\n" : "";
$cssSelectors = !empty($tiny_css_selectors) ? "theme_advanced_styles : \"$tiny_css_selectors\",\n" : "";
?>
then change this:
content_css : "example_full.css",or this:
theme_advanced_styles : "<?php echo($cssSelectors); ?>", content_css : "<?php echo($cssPath); ?>",to this:
<?php echo($cssSelectors); ?> <?php echo($cssPath);?>
Therefore if no values are set for either "tiny_css_path" or "tiny_css_selectors" then no values are passed into the tinyMCE.init call.
Edited by Meriadoc, 09 August 2006 - 04:09 PM.
#20
Posted 14 August 2006 - 06:24 PM
Mac OS 10.3.4
Apache 2.0.49
Php 4.3.10
MySQL 4.0.18
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users










