![]() ![]() ![]() Assign this simple tinyMce configuration to the required XhtmlString propertyĬonfig.For(x => x.YourPropertyName, simpleConfiguration) Īnd that's it folks! Let's compile our code and see how it renders in edit mode in the CMS: Toolbar("bold italic | undo redo | template") Note that the settings name should be ' templates' and that the plugin name should be ' template', this is IMPORTANT.įinally, let's setup the toolbar and apply our simple TinyMCE configuration to a page type that's going to use it, thus: public void ConfigureContainer(ServiceConfigurationContext context)ĭescription = "Template 2 for a preformed table" Url = "/static/html/templates/template2.html",ĭescription = "Template for a preformed table" Url = "/static/html/templates/template1.html",ĭescription = "Template 1 for a preformed table" Next, let's add the settings for the two templates and add these settings as a plugin, thus: public void ConfigureContainer(ServiceConfigurationContext context) Var simpleConfiguration = config.Default().Clone() Create a simple version of tinyMce, with just the bare necessities and a template button. Default configuration settngs go here.ĭirectly under the default configuration settings we're going to clone the default settings and apply a stylesheet that contains the relevant CSS for final rendering, thus: public void ConfigureContainer(ServiceConfigurationContext context) Public void ConfigureContainer(ServiceConfigurationContext context) Public void Initialize(InitializationEngine context) Public class TinymceCustomInitialization : IConfigurableModule Open up the configuration file for TinyMCE ours looks like this: Next we're going to create the configuration for TinyMCE to use these templates. html) into a suitable location in your project. Also note that we have added the 'cellpadding="10"' attribute to the table tag (I know 'cellpadding' is an obsolete attribute but trust me, it'll work just fine for what we want it for) these settings will prove to be useful for the content editors later on and, because of the CSS we use, this additional attribute will not affect the final rendering of the table(s). Note that the first template caters for a heading, outside of the main table, and five columns, whereas the second template caters for only three columns. So that's enough of the 'what' and 'why', now for the 'how'.įirstly, let's create a couple of (really simple) preformed template tables in HTML, thus: Table title This custom configuration of TinyMCE can then be applied to one or more page types. The new template button will enable the content editor to select what preformed template they require for the specific task. Situation.īy reducing the number of tools available in the WYSIWYG editor toolbar, to just bold, italic, undo, redo and a new template button (less is more), the content editor will be able to quickly complete the task without any unnecessary clutter on the WYSIWYG editor in question. The notion was to allow content editors to enter data into a simple table in the WYSIWYG editor but, to make the task easier, they should be able to select what sort of table they require, as opposed to having to create one themselves. Your spirit board or pendulum, if you’re using one.Lately we had a requirement from one of our clients to enable the WYSIWYG editor on a page (XHtmlString property (TinyMCE)) in the CMS to cater for a set of preformed table templates.An item that belonged to the person you want to contact.A photo of the person you want to contact if you’re trying to summon a specific person.Choose scents like cinnamon, frankincense, or lemongrass. Incense to increase psychic powers and attract spirits.You might also try violet candles to enhance psychic powers, blue candles to enhance communication, orange to attract good things and banish negative things, or silver/light grey candles to enhance psychic powers and repel negative powers. White candles are a great option because you can use white for any ritual. Candles to light the space and attract spirits with their light and warmth.Arrange your table so that it feels right to you. Additionally, they make the area more welcoming to spirits. Your candles and ritual supplies will set the atmosphere for your séance. Set your table with the candles and ritual supplies you plan to use. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |