teenup
teenup

Reputation: 7667

Use 'BR' instead of 'P' on hitting 'Enter' in 'FckEditor' for a particular instance only - not all instances in web application

I know, I can change the entry in the fckeditor.js as follows:

FckConfig.EnterMode = 'br';

But, this will change the setting for all the instances of editor shown on the web site, I just want it to change for a particular editor on a web page.

How can I change this setting at a Page level ?

Upvotes: 0

Views: 765

Answers (1)

Kasaku
Kasaku

Reputation: 2192

How about instead of changing that setting in the fckeditor.js file, you output that script on the pages you want it to occur on?

// After the FCKEditor JS has been referenced...
<script type="text/javascript">
    FckConfig.EnterMode = 'br';
</script>

Upvotes: 1

Related Questions