![]() |
|
Tinymce editor style sheet - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: General support (https://forum.zenphoto.org/forum-4.html) +--- Thread: Tinymce editor style sheet (/thread-7951.html) |
Tinymce editor style sheet - gwmbox - 2010-12-13 Is it possible to enable the TinyMCE editor to look for an editor style sheet in the sites theme folder? So for example I include a content.css file in my theme folder which over-rides the editors content.css file. This will enable people like me to set the editors base text size to 14px for people like me with poor eyesight Cheers GW Tinymce editor style sheet - sbillard - 2010-12-13 Not the theme folder, but in the user plugin folder as from the current deveopment builds. Tinymce editor style sheet - gwmbox - 2010-12-13 ok so I place it in a tinymce folder inside the plugin folder or just in the plugins folder directly? Cheers GW Tinymce editor style sheet - acrylian - 2010-12-13 I think sbillard confuses this with the configuration files. A content.css must be within a TinyMCE theme which must be within Zenphoto/Zenpage use the advanced theme with different configurations. I think it is not possible to define a theme being called from elsewhere without hacking TinyMCE itself, I thinks: See: http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/theme Tinymce editor style sheet - gwmbox - 2010-12-14 If you go to this page http://tinymce.moxiecode.com/examples/full.php and select the tab view source you will see the lines
This is where you can assign an external style sheet to be used for the editor, this is also shown in the wiki at http://wiki.moxiecode.com/index.php/TinyMCE:Configuration/content_css Currently you do not have this defined in your tinymce code so it defaults to the tinymce folder, where in fact it should, or could, be defined to be from the theme folder with the content.css file in there. Cheers GW Tinymce editor style sheet - sbillard - 2010-12-14 Which, of course, you can place in the custom config file that you can put in the plugins/tiny_mce/config folder and select from the plugin options. Tinymce editor style sheet - gwmbox - 2010-12-14 ['you can place in the custom config file that you can put in the plugins/tiny_mce/config']? Is that within the zp-zore folder or within the plugins folder from root? So we create the config folder? Meaning I add a new folder for tinymce in the root plugins folder and then a what, a config folder or config file? Sorry not very clear? However the point I was trying to make is that it can be managed and contained within the users 'theme' folder and have no need to venture into the tinymce plugins folder, that way there is no accidental editing of the wrong files or overwriting of the files through an update etc. Tinymce editor style sheet - acrylian - 2010-12-14 Thanks for the note, seems I missed that you can indeed use external css files. Actually he refers to the zp-core folder. I don't see (or I miss it) any code to retrieve config files from the root plugins folder. Tinymce editor style sheet - sbillard - 2010-12-14 No, I refer to the user plugin folder. You can place editor config files therein. The editor file you create can configure tinyMCE however you want. It is really not appropritate to place these config files in the theme folder since (at least with the standard use) tinyMCE is a back-end feature. Tinymce editor style sheet - gwmbox - 2010-12-15 sbillard, you are confusing me a bit here? acrylian seems just as confused as I do from his response too. So where do I place the config file? Surely it would just be easier to add an external css reference to the existing tinymce config in the zp-core/zp-extensions....tinymce... Then all we as users need to do is create the external style sheet (if we want one) and it will then use it. You could include a blank external style sheet by default in the theme folder so that it exists for tinymce. Not trying to be difficult but trying to work out a way that is simple. Thanks GW Tinymce editor style sheet - acrylian - 2010-12-15 Well, I didnt know that new feature was already there. Sbillard and I are in different time zones so I sometimes miss what he does and vice versa. The user plugin folder is the root plugins folder. You can now either place the config file there or in the tiny_mce plugin folder within zp-core. I haven't tried it myself yet but In the user plugin folder you probably have to create a folder setup The reason for this is that we provide 4 predefined tinymce config files (2 for gallery items and 2 for Zenpage items). You or any other user might want to configure Tinymce differently. If you place these within the zp-extensions/tiny_mce folder it most likely gets accidentally deleted on updates. For this reason the user plugin folder was introduced a while back. Tinymce editor style sheet - gwmbox - 2010-12-15 Ok, that sounds fine, but to be clear if you can tell me. I wish to add the use of an external css file, of which is not a plugin. However if we can use our own config for tinymce I can set where that css file is. You say to create a new folder structure in the root plugin folder ['tiny_mce/config/'], which is fine, but what do I call the 'config' file to get tinymce to use that over the current config? Also by doing that how do I set it to continue to use the existing theme in use but also to use an external css file. I know this seems like I am going around in circles but I am just trying to understand the process properly. Thanks GW Tinymce editor style sheet - gwmbox - 2010-12-15 It is OK, found it and having a test of it now. cheers GW Tinymce editor style sheet - gwmbox - 2010-12-15 OK, tested and it works a treat. For anyone else following this thread, the process is;
Tinymce editor style sheet - acrylian - 2010-12-16 Thanks...:-) I guess I'll make a troubeshooting entry out of this. Tinymce editor style sheet - melbe - 2013-11-10 Hi, I just wanted to add something - I hope its okay that I do it here. I found your explanation here: http://www.zenphoto.org/news/how-to-create-custom-tinymce-configurations first, and wondered why I didn't work. Don't want to be picky, but in your troubleshooting entry (URL above) two things were missing - maybe you want to update it? did not work for me - neither did
This line worked: Furthermore its important to put it below (or instead of) the this definition: not below the last Just wanted to add this - maybe you want to update the troubleshooting entry Thanks! Tinymce editor style sheet - acrylian - 2013-11-10 Yes, you are right FULLWEBPATH is needed. Thanks. Edit: Article has been updated. |