Developer forum

Forum » Development » dw:Editor - change editor configuration

dw:Editor - change editor configuration

Rene Poulsen
Reply

Hi,

I'm creating some custom functionality for one of out customers, where I use the dw:Editor user control. Is there any way I can change the Editor Configuration for that control?

It doesn't look like theres anything to do on the editor object, but i found a "EditorConfiguration" class - can I use this to create a new EditorConfiguration based on an editor configuration I've created in the management center - and then apply that to the editor user control. 

 

Thanks in advance

// René


Replies

 
Nicolai Høeg Pedersen
Reply

Hi René

Sorry for the late answer. The dw.editor control has a toolbar attribute which you can set to the name of a configuration.

BR Nicolai

 
Rene Poulsen
Reply

Hi Nicolai,

Thats ok ;-) But I can't make it work like its supposed to. I've made an editor configuration called "intranet_net4u_v1", whit the following settings:

I've set together some screenshots showing my editor configuration, how the editor actually looks and how i set the Toolbar attribute. As you can see, some of the things I allow in the editor is not allowed (and the other way around). Am I doing something wrong?

 

 

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Rene

 

OK, looked a little deeper.

Editor configurations are attached to a user, and when that user logs in, they will be shown that toolbar.

 

The Toolbar attribute is setting which built-in editor toolbar to show. Default is "DwCustomConfig" meaning using the above user defined toolbar.

 

So you can use one of these built in toolbars in stead:

"Default", "FrontendEdit", "DwFrontendEditing", "DwStructure", "DWBasic", "DWAdvanced", "DwForum", "DwForumExtended", "DwItem", "DwForumStylish".

 

A weird list, but will give you different configurations. Maybe one you can use. Apart from that you do not have any options to change it.

 

BR Nicolai

Votes for this answer: 1
 
Rene Poulsen
Reply

Hi Nicolai,

I've tried several of these but it doesn't seem to make any difference. The editor looks the same no matter which of the above I use.

I've tried to set it in the HTML where I insert the usercontrol, but also in the code behind in the page load event.

 
Morten Bengtson
Reply
This post has been marked as an answer

Hi Rene,

Did you try this with the ForceNew property set to true?

Votes for this answer: 1
 
Rene Poulsen
Reply

Yes, now I have - and it worked! :-)

Thank you

 

You must be logged in to post in the forum