Adding another editor to mojo

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.
4/29/2011 12:31:27 PM
Gravatar
Total Posts 21

Adding another editor to mojo

Hi

I want to add "nicEdit" editor to the Options of mojo. How I do it? I have a little trouble with it.

Oran.

 

4/29/2011 1:00:17 PM
Gravatar
Total Posts 18439

Re: Adding another editor to mojo

Hi Oran,

We have a provider model for editors, you would have to implement a provider in a class library project and compile it into a dll that goes in the bin folder, then you can configure it to be available from mojoEditor.config file.

You can study the code for existing editor providers to learn how to implement it.

I had not heard of nicEdit before, it appears to be open source but it does not look like it has been updated since 2008 and it is not very feature rich. Just wondering what it is you like about this editor?

Best,

Joe

4/29/2011 1:03:35 PM
Gravatar
Total Posts 18439

Re: Adding another editor to mojo

From their documentation it looks like you could actually use our plain text area editor and then just add this to your layout.master file

<script type="text/javascript" src="http://js.nicedit.com/nicEdit-latest.js"></script> <script type="text/javascript">
//<![CDATA[
bkLib.onDomLoaded(function() { nicEditors.allTextAreas() });
//]]>
</script>

that might work, but an editor provider would be a better long term solution and give more control.

Best,

Joe

5/1/2011 9:57:03 AM
Gravatar
Total Posts 21

Re: Adding another editor to mojo

Thank you for the reply Joe,

I want editor that allows to change the font size and color and allows to add pictures.
This editor gives these two options

Oran

5/1/2011 10:12:48 AM
Gravatar
Total Posts 18439

Re: Adding another editor to mojo

You can do that already with the included editors by custom configuration but I recommend against it.

See the 6th item in our FAQ (it tells why I recommend not doing that) and also see Customizing the Editor Toolbars which tells how to do it if you want to go against my recommendation.

Hope it helps,

Joe

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