Sitecore Rich Text Html Editor Profile - set global default - editor

OK I can't believe this can't be found anywhere so I'm asking the question.
Is there a way to set the default Html Editor Profile in Sitecore so I don't have the override the Source field on each individual Rich Text field?
e.g. I want to make this the default option for the Html editor:
/sitecore/system/Settings/Html Editor Profiles/Rich Text Medium

Its an old question but here is the solution I found in Sitecore 6.5 - I was looking to do the same thing in 6.5:
You can change the value to the path of your default editor in the web.config. This will change is across all fields where the source is not defined.
<!-- HTML EDITOR DEFAULT PROFILE
Path to the default html editor profile.
Default value: /sitecore/system/Settings/Html Editor Profiles/Rich Text Default
-->
<setting name="HtmlEditor.DefaultProfile" value="/sitecore/system/Settings/Html Editor Profiles/Rich Text Default"/>

It seems to fall back to the "/sitecore/system/Settings/Html Editor Profiles/Rich Text Default" in case the source is not defined. Thus, if you try to modify this default profile, every RTE field will obtain these modifications by default, without specifying the source.
Never tried it myself, though...

Related

JIRA Custom field not rendering Rich Text

I have created two custom fields on a JIRA story that I need rich text entry. The problem is that one is rendering correctly and the other isn't as can be see by the following images.
Both as can be seen are setup 'Text Field Multi-line' - exhausted all other lines of enquiry
The field has probably not the correct field renderer configured.
Settings --> Issues --> Field Configurations --> Your used field configuration
Now look for your field and click the "Renderers" link to select the "Wiki Style Renderer".
You need to create a Text Field, and convert it to WIKI style text field. This way you will be able to post URL.
Here is 5 minute video which I have created on how to do this.
https://youtu.be/QCNHPy88iKA
I hope it helps.

Changing kendo-dateinput placeholder for Kendo Angular2

Is there a way to change or simply remove the placeholder of the Kendo UI - Angular 2 dateinput control?
Right now, when empty, it reads "day/month/year" and I need to, at least, remove the localized literals.
Thank you very much,
Dimitris
UPDATE: With the latest changes in the DateInput (as of v1.4.0) two additional properties were added:
placeholder - display text hint (related Github issue)
formatPlaceholder - control description of the format sections (Github issue)
With those available, we can easily hide or modify the displayed format description:
<kendo-datepicker [placeholder]="Enter date..." [formatPlaceholder]="short" />
Here is a plunker demo that demonstrates those new properties:
http://plnkr.co/edit/XYmwDjkpp7Mb4txlmc2L?p=preview
Indeed, the DateInput component displays the localized format value once empty. That being said, its value is controlled by the component date format. Its behavior is similar to the Chrome's <input type="date" />.
I'm afraid that the placeholder cannot be set to a custom text.
I think that it will be best to share your request in the Kendo UserVoice portal:
http://kendoui-feedback.telerik.com/forums/555517-kendo-ui-for-angular-feedback

Changing page direction (Right-to-Left/ Left-To-Left) based on Localization settings in MVC 5

How can I change the page direction based on the local setting of the user? from left to right to right-to-left?
Should this be done using JS only, or there is a better way? please note that I need to Change to value, not check the current culture settings.
Using ASP.NET MVC5
Thanks
To set the text direction of the whole page in HTML 5, you can set the dir attribute on the html or body element. (In HTML 5 the dir attribute can be used on any element).
For instance if you're setting the CurrentThread CurrentCulture in the request, you can use the following in your view:
<html
dir="#(System.Threading.Thread.CurrentThread.CurrentCulture.TextInfo.IsRightToLeft? "rtl" : "ltr")">
Based on http://afana.me/post/aspnet-mvc-internationalization.aspx
Note that if you're using a CSS library such as bootstrap, you'll also need to get an rtl-modified version of the CSS, because the page direction won't affect css rules.

Including Empty Text in TFS HTML Field (TFS 2013)

I am trying to add default empty text to an HTML field in TFS 2013. I am doing this by updating the "EmptyText" attribute for the field in the Layout options (using Process Editor).
However, regardless of what I enter here, the intended text is never displayed. It is always empty. I have the same issue with both HTML & Plain Text fields.
Is this a fundamental limitation of TFS? Or am I specifying this incorrectly?
I am not using a DEFAULT rule because I want the user to notice that the field is empty and be required to enter a value.
I can get it work correctly. Two changes made:
Edit the "Empty Text" attribute just as you mentioned above (in my case I create one custom HTML field called Custom.DetailHTML):
Add Required rule to this field to define that this field must be specified with a value:
<FieldDefinition name="DetailHtml" refname="Custom.DetailHtml" type="HTML">
<REQUIRED />
</FieldDefinition>
If you still can't get it work, please show your WIT file.

Adding a rich text description to blog properties in the Orchard CMS

I'm setting up a site on Orchard CMS and I want to put links into the description of each blog. Currently it just has a space for text in the Description but I need rich text. Can I add a rich text part to the Blog content type or something else? Thanks.
Just add the Body part to the blog content type, set-up placement for it and that should be it.
You might try overriding the view that outputs the description to the front end to use #Html.Raw(Model.Description), and just type in some HTML into the description field. I'm not sure if it will accept the HTML tags in the editor without modifications though.
Actually, if the above doesn't work, adding a body part should, and then override the display template to display the description from the body part.
I can't comment, I don't have enough reputation, FWIW in Orchard 1.8 (current) you only need to edit the content definition for type 'blog' to add the 'Body' part, the default placement already has it.

Resources