4

You need to render the rich text. Just add STSHtmlDecode like in this example. <div id="trimmedDetailsDiv" class="newsListItemBody" style="padding-right: 0px; color:#656565; font-size:15px; padding-bottom: 25px;"> _#= STSHtmlDecode(shortDescription.value) =#_ </div> SharePoint 2013 - Working with Display Template for Content Search Web Part ...


4

Not really but it depends on for what you want to use it. I have used in the past the Telerik RAD Editor in a large environment (>10.000 Users) http://sharepoint.telerik.com/aspnet-ajax/web-parts/Pages/Content-Editor-Web-Part-using-RadEditor.aspx This is the most popular SharePoint HTML Editor on the market. But the users where also not happy with it. The ...


3

Use a Custom Action with Location="ScriptLink" and inject jQuery/JS on the fly, which hides or uncheck the button by default


2

Sorry for replying with answer after long time. I wondered when I saw there is no answer to this question. So decided to do self-reply to this question. After lots of brain storming I get to know there was silly mistake I did in feature receiver. When I debug application I come to know that I was getting null values from site column properties. Then I placed ...


2

I created a little script to put focus where I wanted it on opening a publishing page in edit mode. The code is: function waitUnitStuffIsLoaded() {setTimeout(function(){refocus()},1000);} function refocus(){$("input[Title='Title']").focus();} SP.SOD.executeOrDelayUntilScriptLoaded(waitUnitStuffIsLoaded, "sp.ui.spellcheck.js"); http://pirateeric....


2

I found the solution.Use jQuery instead $.Don't know why it is behaving like this.So now I have assign jQuery to $ and it works. $ = jQuery; alert($('#linkMainImgDiv').html())


2

Used PowerShell to create my columns the way I wanted. Add-PSSnapIn "Microsoft.SharePoint.Powershell" #Get the site collection and web object $siteColl = Get-SPSite -Identity "http://sitecollectionURL.com" $rootWeb = $siteColl.RootWeb #Assign fieldXMLString variable with field XML for site column $fieldXMLString = '<Field Type="HTML" Name="...


2

Edit the content editor webpart and select "Edit Source" option from the ribbon. Put your HTML there and save the page. if you are using SharePoint 2013 you can use a Script Editor web part instead and put your HTML in that webpart


2

Try <div><img src="image.jpg" /></div>


1

I think the problem was trying to access which element on the page would be updated during a save. I can't remember where I found it, but I need to use [contenteditable=true] as my selector. So this is the code I've been using for a bit. function PreSaveAction(){ // remove all the zero width spaces &#8203; from the fields. $('.ms-rtestate-field div[...


1

1) Create a rich text site column (I named it testrichtext) as below from https://sitecollectionurl/_layouts/15/mngfield.aspx 2) Now, go to your document library > settings > Click on your document set content type as below: 3) Now click on add from existing site or list columns. Add the testrichtext column. 4) Now create a new Document set and add your ...


1

I figured it out! The Body text had been changed from Rich HTML text field to a Plain text field. Changing this back to Rich HTML fixed the problem. I'm not entirely sure why, but I suspect it is because the Reply field and Body text are linked in some way. I cannot see if it is possible to make the Reply field plain text as well; I imagine this would ...


1

From the way I interpret those posts, the syntax you want is tr.carousel-firstrow { /* [ReplaceColor(themeColor:"Dark1")] */ background-color: #ABABAB; /* or any color, as it will be replaced */ /* [ReplaceColor(themeColor:"Accent3")] */ color: #FFFFFF; } Those articles do seem to imply that the replacements occur when you actually apply a theme, ...


1

You could also upload your own html file, create a content-editor-webpart and link to the html file in the text file property of the content-editor-webpart. From here you can make changes to the html file with Sharepoint Designer


1

You can use embed code in rich HTML text editor: After clicking the command, you are prompted to insert your code and given a preview: Alternative solution: SharePoint creates a Script Editor webpart on the page for you. It even includes an "Edit Snippet" button, so you can go back and edit the code later. OR you can use Content editor webpart ...


1

Add type (RichHtml field) columns to a custom content type - and then add that content type to the site (rather than the individual columns) - it works. Please refer this link - https://social.technet.microsoft.com/Forums/en-US/7f66abe2-7890-479b-b38b-349d3d1937d5/publishing-html-and-richtextfield-display-html-code-not-rendering?forum=...


1

It turned out to be a Content Type caching issue... Apparently SharePoint remembered the version of it when it was not fully developed. Creating a new Site Collection resolved the issue.


1

Try alert($('#linkMainImgDiv').html()) First check in you page source that even this id exist or not. If exist then try it in your debugger tool of browser. Can you share your markup or any screenshot with div.


1

as far as I know, site columns are wysiwyg (what you see is what you get). you have to choose whatever type you need from a limited list of types, and apply the avaible customization options. the easiest way to avoid problems is to set the column as single line of text (in which case you could set the maxlength upfront or use a formula in the list ...


1

A little bit of history. We wanted to lock down how users create content. So our goal was to disable the font family, font size and font color controls. I always thought the key was to configure the RichHtmlField. It worked for page content, becuase the control was in a page layout. But for list items, there is/was no page layout for the RichHtmlField to ...


1

You could try using the html element to specify the base url to be used with the relative urls. You would be dependent on the email client to implement the base element.


1

Webparts in the masterpage are not configurable, meaning that you can indeed add a Content Editor WebPart to your masterpage, but it won't be editable from the browser, as you would like. What you can do is adding a Xslt list view web part and retrieving fixed content from a list. For example, you can configure the CAML query to retrieve the first item (or ...


Only top voted, non community-wiki answers of a minimum length are eligible