November Happy Hour will be moved to Thursday December 5th.
November Happy Hour will be moved to Thursday December 5th.
hi. yes of course, my copy and paste fault. It's now corrected. But still having the same issue. Any suggestions?
Hi Gonzalo,
Are your default configurations applied? At a glance, your code here looks ok (except for the fact that you define basicTinyMceSettings twice?).
Are you able to share your entire Initializable Module?
Hi Gonzalo, I suppose you have changed the code in the initial post after Jake commented it?
But currently when you are creating "basicTinyMceSettings" you are not cloning config.Empty() but also changing it (assuming you actually wanted to have config.Empty.Clone() ...) and when you create the "otherTinyMceSettings" you will end up having the modified "empty" as base for the other settings.
Also this can't be the real code because there is missing the ';' from the basic and other tinymce settings definitions afteer calling Toolbar(...), so that code will not compile.
EDIT: poster changed code again.
In the current code all your custom "toolbar" configurations are missing .Clone() when creating different settings (now you code modifies Default() or Empty())
So it should be like below for my custom toolbars:
var noFormattingOptionsTinyMceSettings = config.Empty().Clone()
.AddEpiserverSupport()
.Toolbar("cut copy paste || undo redo")
.Height(300)
.Width(580);
In that way it it should only contain "cut copy paste undo redo" in the toolbar for those properties selected, as below
config.For<ContactPageBase>(p => p.VisitingAddress, noFormattingOptionsTinyMceSettings);
And keeping all other tinyMce as default.
Episerver 11 with TinyMce 2.
How can i create multiple tinyMce Settings for different properties in same pagetype?
I tried to do this:
but i didnt work. It only show default for all XhtmlString.
Thanks in advance!