TinyMCE in an EPiServer template page

In this project I’m working in at the moment we are developing an intranet based on EPiServer Relate. Currently in phase 2 of the development we are going to add the possibility for the users to blog about work etc on the intranet. If you look at the blog template in the Relate templates it’s kind of stripped of the possibilities to format the entered text etc. Nowadays EPiServer comes with TinyMCE so we placed an editor in the page with the following initialization:

tinyMCE.init({
mode: "specific_textareas",
editor_selector:"entryEditor",
theme: "advanced",
skin:"epi-light",
plugins:"epilink,table,media,advimage,epifilebrowser,paste",
theme_advanced_toolbar_location: "top",
theme_advanced_toolbar_align: "left",
theme_advanced_statausbar_location: "bottom",
theme_advanced_buttons1: "epilink,unlink,separator,image,media,separator,cut,copy,paste,pastetext,separator,tablecontrols",
theme_advanced_buttons2: "bold,italic,underline,separator,justifyleft,justifycenter,justifyright,separator,bullist,numlist,hr,separator,formatselect,separator,styleselect,separator,visualaid,fullscreen",
theme_advanced_buttons3:"",
theme_advanced_resizing: true,
content_css: "tinymce.css,editor.css",
theme_advanced_blockformats: "p,h2,h3",
width: '448',
height: '400'
})

which is a pretty standard editor and gives us an editor looking like this:

TinyMCE editor

There are a couple of EPiServer specific plugins added epilink and epifilebrowser. Epilink makes it possible for the user to create links to pages with the help of EPiServer page browser. Epifilebrowser on the other hand handles the functionality that inspired my to write this post, since that was the thing I couldn’t find out how to do.

Epifilebrowser is a non-visual TinyMCE plugin that adds a button in for example the image popup so you can use the EPiServer file browser for choosing your images.

Filebrowser button in image popup

The problem after this is that now we want to get the imagegallery of the blog to show up in the file browser, and I’ll come back to that when I have got the virtualpathprovider for that up and running.


WordPress admin in EPiServer Online Center

This was just made as a demo where I wanted to show how to have the admins of two systems in the same when having EPiServer as main CMS. It’s the same approach as EPiServer themselves has with their EPiServer Commerce module. What I did was implementing a simple case of integrating the admin of


Problems with adding Community to existing EPiServer CMS site

Had some problems adding Community to EPiServer CMS. The main cause was the error message “There is insufficient system memory in resource pool ‘internal’ to runt this query”.


IE8 and compability problems with Intranet Zone

The solution to why a page renders differently on a developing machine and test/production server when using Internet Explorer 8 in an intranet application.


Easy fix for Android update com.android.browser

After the update to Froyo on my HTC Desire I got the common problem with com.android.browser wanting to force close every time I tried to use the Internet app. By mistake I found and easier solution than hard resetting the phone. Under Settings/Application/Manage applications you have a tab saying All. Under that tab you’ll find


Instance validation error exporting page types from migrated EPiServer

Do you try to export data from a migrated EPi Server installation and all you get is “Exception: There was an error generating the XML document.[Instance validation error: '268435455' is not a valid value for EPiServer.Editor.EditorToolOption.]“? Then I got the solution for you! You have to re-save some of your page properties before you can do that. The migrating tool, or something else, mess up things during the migration process.


Google Calendar API

Short run-through of a couple of problems I had using Google Calendar and the Google Calendar API but also including the solutions to my problems.