Managing text editors

A place for discussion about skinning and design. Before posting questions here you should review the documentation about creating skins.

This thread is closed to new posts. You must sign in to post in the forums.
4/6/2011 7:40:25 AM
Gravatar
Total Posts 167

Managing text editors

Hi,

Apologies if this has already been covered.

I have placed my contact form in a narrow (200px) sidebar on my site. Using the custom CSS I have manage to alter the width of the text boxes and editor so that it fits in the area. However as I am using CKEditor on the site the editor icons appear in the text box, tacking up text space.

What I would like to do is set just this instance of the text editor in this contact form to either have the buttons initially scrolled up or to use just TextArea as the editor.

I see you can change this is site settings across the whole site, but I would just like it to be applied in this one instance.

Any suggestions

4/6/2011 8:11:13 AM
Gravatar
Total Posts 18439

Re: Managing text editors

sorry but that is not currently possible. You can edit the toolbar settings for the anonymous user toolbar but it is global not instance specific and I have no current plans to implement that on instance level.

Best,

Joe

4/6/2011 8:23:09 AM
Gravatar
Total Posts 18439

Re: Managing text editors

one thing you could do since we support page specific classes on the body element is make the side column a little wider on the page where you have your contact form.

For example on this site on the Community page I made the right side a little wider (and the center a little narrower) than on other pages like this, main layout settings on top and page specific settings below:

.leftside { float:left; width:28%; margin: 10px 5px 0px 0px;}
.center-nomargins {float:left; width: 100%; margin: 10px 5px 0px 5px; padding-bottom: 0px; }
.center-rightandleftmargins {float:left; width: 40%; margin: 10px 5px 0px 5px; }
.center-rightmargin {float:left; width: 70%; margin: 10px 0px 0px 5px;}
.center-leftmargin { float:left; width: 70%; margin: 10px 0px 0px 5px; }
.rightside { float:right; width:28%;  margin: 10px 0px 0px 0px;  }
 

body.community .leftside { float:left; width:28%; margin: 10px 5px 0px 0px;}
body.community  .center-nomargins {float:left; width: 100%; margin: 10px 5px 0px 5px; padding-bottom: 0px; }
body.community  .center-rightandleftmargins {float:left; width: 30%; margin: 10px 5px 0px 5px; }
body.community  .center-rightmargin {float:left; width: 60%; margin: 10px 0px 0px 5px;}
body.community  .center-leftmargin { float:left; width: 60%; margin: 10px 0px 0px 5px; }
body.community  .rightside { float:right; width:31%;  margin: 10px 0px 0px 0px;  }

Hope it helps,

Joe

 

4/7/2011 2:25:41 AM
Gravatar
Total Posts 167

Re: Managing text editors

Joe, Super helpful as always. Cheers for that. Also the other choice is to just turn the site to use the text editor, this applies a bit of control over the user which is not a bad thing. As an aside, I've been looking more .net cms reviews and your consistantly on top. I'm still really impressed with Mojoportal, very well done. Cheers Simon
4/7/2011 12:54:09 PM
Gravatar
Total Posts 18439

Re: Managing text editors

Also the other choice is to just turn the site to use the text editor, this applies a bit of control over the user which is not a bad thing.

I'm not sure what you mean by that, using a plain textarea does not provide any control at all. Users can enter raw html javascriptscript or whatever. Nothing about any of the wysiwyg editors should be considered as providing any security as far as the content that users can post. They provide no security at all and we do not rely on them for any security. They merely facilitate content editing and while they may try to enforce limits about what the user can enter it is easily bypassed and should not be considered as providing any security. We assume that users can put in bad content and we categorize users as trusted (users that we grant edit permissions to on content features) or untrusted and for places where untrusted users can enter content (forums and blog comments for example) we filter that content before rendering because the content is considered untrusted.

Best,

Joe

4/8/2011 10:49:39 AM
Gravatar
Total Posts 167

Re: Managing text editors

Rush of blood to my head, silly me.

Best option for me is to apply the custom CSS.

Many thanks

Si

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