Fck Editor configuration

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.
9/24/2007 6:21:33 AM
Gravatar
Total Posts 16

Fck Editor configuration

Is there a way that I set a different location of /ClientScript/FckEditor in some config file? I do not won't to change the mojoPortal.Web.Editor assembly code.

9/24/2007 6:42:22 AM
Gravatar
Total Posts 18439

Re: Fck Editor configuration

Hi,

You can do it with code in your app like this:

edContent.WebEditor.ScriptBaseUrl = WebUtils.GetSiteRoot() + "/ClientScript";

although the above example is just setting it to the same value as default.

I've really only completed phase 1 of my plans for the editor. When I get to phase 2 I want to implement a consistent way to upload/browse/link to files across editors as well as make the format/template toolbars use the same sets of format/templates. At that time I will also look into making t easier to use outside of mojoPortal. Maybe I will make it check a web.config setting for script location.

Hope it helps,

Joe

9/24/2007 3:04:45 PM
Gravatar
Total Posts 16

Re: Fck Editor configuration

Hi again,

I did change it, but now it does not load the fckeditor. I see:

public string ScriptBaseUrl
{
get
{
return scriptBaseUrl;
}
set
{
scriptBaseUrl = value;
fckEditor.BasePath = scriptBaseUrl + "/FCKeditor/";
fckEditor.SkinPath = scriptBaseUrl + "/FCKeditor/editor/skins/normal/";

}
}

 

that is configuring the Fck Editor, but why it is not working then?

 

 

9/24/2007 3:07:23 PM
Gravatar
Total Posts 16

Re: Fck Editor configuration

It is trying to find the ClientScript folder in the root again.

I see in the page html output:

<textarea name="ctl00$ContentPlaceHolder1$editor_noscript" rows="4" cols="40" style="width: 98%; height: 350px" ></textarea></noscript><input type="hidden" id="ctl00_ContentPlaceHolder1_editor3" name="ctl00$ContentPlaceHolder1$editor3" value="" /><input type="hidden" id="ctl00_ContentPlaceHolder1_editor3___Config" value="ForcePasteAsPlainText=true&amp;StartupFocus=true&amp;LinkBrowserURL=/ClientScript/FCKeditor/editor/filemanager/browser/default/browser.html?Connector%3Dconnectors/aspx/connector.aspx&amp;FlashBrowserURL=/ClientScript/FCKeditor/editor/filemanager/browser/default/browser.html?Type%3DFlash%26Connector%3Dconnectors/aspx/connector.aspx&amp;LinkUpload=false&amp;SkinPath=http://localhost/ClientScript/FCKeditor/editor/skins/normal/&amp;LinkDlgHideAdvanced=true&amp;LinkBrowser=false&amp;EditorAreaCSS=http://localhost/Data/Sites/1/skins/treeviewmenu1/styletext.css&amp;ImageBrowserURL=/ClientScript/FCKeditor/editor/filemanager/browser/default/browser.html?Type%3DImage%26Connector%3Dconnectors/aspx/connector.aspx&amp;LinkDlgHideTarget=true" /><iframe id="ctl00_ContentPlaceHolder1_editor3___Frame" src="http://localhost/ClientScript/FCKeditor/editor/fckeditor.html?InstanceName=ctl00_ContentPlaceHolder1_editor3&amp;Toolbar=Forum" width="98%" height="0px" frameborder="0" scrolling="no"></iframe><script type="text/javascript" > var fra_ctl00_ContentPlaceHolder1_editor3 = document.getElementById('ctl00_ContentPlaceHolder1_editor3___Frame'); fra_ctl00_ContentPlaceHolder1_editor3.height = 350; </script></div>

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