tiny mce

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
1/29/2010 8:55:50 AM
Gravatar
Total Posts 8

tiny mce

hi, 

i wanna add some custom css classes to the tiny mce editor drop down.

Example of usage of the content_css option:
Absolute path:
// File: http://domain.mine/mysite/index.html

tinyMCE.init({
 ...
 content_css : "/mycontent.css" // resolved to http://domain.mine/mycontent.css
}); 

 

is there anyway i can set custom css using tinymce in mojoportal or add my classes to a css file so it shows up?

1/29/2010 12:32:40 PM
Gravatar
Total Posts 2187

Re: tiny mce

Hello,

You can add custom styles to FCKeditor, CKeditor and TinyMCE using the Content Style Templates tool in mojoPortal. You can read about this tool here: http://www.mojoportal.com/creating-content-style-templates.aspx. That page says Style Templates work in FCKeditor only but it is wrong and needs to be updated because they have been working in the other editors for quite some time now.

Hope this helps,
Joe D.

1/29/2010 1:24:16 PM
Gravatar
Total Posts 2187

Re: tiny mce

Hi,

Now that I look at that page a little closer, I notice that it doesn't really tell you how to create the style template in order to use it in the editors. The directions below should get you going in the right direction.

1) Create the CSS classes and rules in the style.css file of your skin or create a new CSS file and include it in the style.config.
2) Go to the Administration Menu by clicking the the Admin Key icon or the Administration link.
3) Click the 'Content Style Templates' link.
4) Click the 'Add New Style' button.
5) Give the Class a friendly name and then assign the element the you want the class to be available for and the name of the class that was used in the CSS file.
6) Click the Save button.

Repeat steps 4-6 for each CSS class you created in step 1.

HTH,
Joe D.

1/29/2010 4:30:45 PM
Gravatar
Total Posts 2187

Re: tiny mce

Okay, I have updated the documentation. I am going to work on a video for this soon.

http://www.mojoportal.com/creating-content-style-templates.aspx

Thanks,
Joe

You must sign in to post in the forums. This thread is closed to new posts.