Questions tagged [content-editor-web-part]

You can use the Content Editor Web Part to add formatted text, tables, hyperlinks, and images to a Web Part Page.

Filter by
Sorted by
Tagged with
0
votes
2answers
1k views

How do I edit script in embedded code within a web part (content editor after pasting in an invalid script)?

I have added an incorrect script text/URL into the embedded Code of a web part content editor. <meta http-equiv="refresh" content="0;url=http://spfarm.rootname.com/sites/SITENAME/SitePages/Home....
1
vote
1answer
692 views

How to display html objects in Content Editor Web Part horizontally?

I'm trying to create a row of clickable buttons that enlarge on hover using a Content Editor Web Part. Here is the code: <style type="text/css"> .thumbnail { position:relative; width:100px; ...
3
votes
1answer
105 views

WebPart not getting refreshed on changing properties from powershell

I edited the Content property of a Content Editor Web part via powershell but when I first view the page, it is not getting reflected. When i click edit once , I see my changes . What could the issue ...
1
vote
1answer
88 views

Conditionally display a CEWP depending on form content type?

I have a request list with different content types set up for different types of request. I would like to show a different CEWP at the top of each form depending on which type of request is being ...
1
vote
0answers
51 views

Unable to send parameters while consuming a webmethod from a content editor web part using jQuery Ajax

I have added the code inside a Content Editor WP to consume a [webmethod] that is written in the application inside a VS 2013 sharepoint 2013 project. <input onclick="callWebServiceMethodAjaxTest(...
0
votes
4answers
6k views

Content Editor Webpart Script file not working

I am using a content editor webpart and jQuery to disable fields in the edit form of a task. it works when I add the code directly in to the content editor webpart but when I add the js file to site ...
0
votes
1answer
718 views

changing button size in sharepoint online

<style> .ms-formtoolbar .ms-toolbar { font-size:2em } </style> This is the code I tried in the content editor with no luck. I also tried to use pixels and no luck their either this ...
0
votes
1answer
243 views

Add Content Editor Webpart to Blog-Site

Is it possible to add a Content Editor Webpart to a SharePoint 2013 MySite-Blog? If yes, how?
0
votes
1answer
31 views

Loading content on SharePoint 2010 intranet site

Main problem is: You have to refresh the page a few time before all content in page opens! I have several web parts in the site like page viewer, Excel webpages etc. Any ideas what might be the ...
1
vote
1answer
3k views

integrating facebook in sharePoint page [closed]

I am trying to get post/news-feeds from Facebook page/group in my SharePoint page.following are the steps I am doing. Registered here https://developers.facebook.com/docs/plugins/embedded-posts. and ...
0
votes
1answer
249 views

Sp-services code does not work in content Editor

I am using SPservices cascading dropdown as mentioned below in Sharepoint 2013. This works fine when I enter the code SharePoint designer asp content head section. But it fails when I try to add the ...
0
votes
1answer
49 views

How to add css to a part of xml?

I have xml code very similar to this: function _setDefaultResources() { var el = $(".ms-acal-rootdiv"); var xml ='\u003cEntities Append=\u0022True\u0022 Error=\u0022\u0022 DoEncodeErrorMessage=\...
1
vote
1answer
128 views

How to apply Content editor on whole site in SP 2013

I have a js script and I want to apply it on a whole SP site. I inserted a content editor webpart on the start page and it works fine, but now i want to apply it on the whole site. Do I have to go ...
2
votes
1answer
214 views

Form Validation fires even If I click outside content editor web part

I am trying to create custom content Editor webpart with HTML and JS code. I am simply adding item in list using REST API. I've given validation to textboxes using JQuery. Here is the code: JS $(...
0
votes
2answers
2k views

Relative url not working for home page when welcome page is set

I have created an HTML snippet which references a js file stored in site assets folder. The path to this file in my snippet is as ../SiteAssets/MyJsFile.js In SharePoint, welcome page is set to [...
3
votes
1answer
1k views

Content Editor Web part missing office 365 - enabled Custom script

I have enabled the custom script in office 365, but still i cannot view the content editor part in my site collection (Publishing). However after enabling the custom script, the newly created site ...
0
votes
2answers
8k views

JS Link or Content Editor Web part in SharePoint 2013

Can someone help me decide between JS Link and CEWP or any alternative that you see fit? I need to build a page (actually entire site with some 5, 6 pages). These pages should look pretty decent (...
1
vote
2answers
35 views

Concatenate and Display results in CEWP

I have two Content Editor Webparts in a page(CEWP) in a SharePoint page. In the first CEWP I have two html text boxes and one button. If i click on the button in first CEWP the second CEWP will ...
0
votes
0answers
75 views

Content editor disappear

So I have a little problem. I have a content editor that I want to edit the title of, but every time I enter edit mode the content editor disappears. The content editor is in the hillbilly tabs so I ...
1
vote
2answers
1k views

CSS Doesn't Work (Script Editor / CEWP)

I have been asked to create a READ MORE option for one of our publishing pages on-prem. It works great on my local machine, but can't get it to work in SharePoint. Guessing I am putting my code in the ...
0
votes
1answer
624 views

Site Assets Javascript file will not update

So I have the weirdest problem I have seen in SharePoint yet. So I am trying to practice using javascript and I can't figure out what is wrong with my methodology. For a background, I am trying to ...
2
votes
2answers
6k views

Allow user to edit content editor webpart on specific pages

We have a couple of web part pages in our publishing site that we want different users to be able to change the text inside a content editor webpart. The user has permission to edit the page and can ...
3
votes
1answer
575 views

How to embed more than two CSS files on a SharePoint-Site

I have a kinda strange requirement to outsource every little CSS coding solution in any extra file, located in any library. Now I would like to embed multiple CSS files on any Site, using Script ...
0
votes
2answers
556 views

Skipping Callout menu within context menu (ECB-Menu) in a list view of document library - SP2013

I would like to skip the preview-window (CallOut Menu) (red marked in my screenshot) within the context menu / ECB-Menu [(...)-Menu] of a document in a library shown in any list view and go straight ...
1
vote
0answers
146 views

Add Div below the Input Type text

I want to show and add the existing Div right below the input type text box on Button click event. I'm using content editor web part to show the below html <div id="Div1" style="Display:None;">...
0
votes
1answer
384 views

SP 2010 Security Trim a Control for Permission Group

I am working in Sharepoint 2010, I have a button in a content editor webpart on a page. I have set up two groups each with custom permission levels. Is it possible to security trim the webpart so that ...
0
votes
2answers
228 views

Export CEWP as .webpart file

I'm trying to export my Content Editor webpart from SP2013 environment, and I expect output file in .webpart format. Currently I'm getting output file in .dwp format. Any idea how to get Content ...
0
votes
1answer
301 views

Content Editor webpart added programatically not showing up on page edit

I added a webpart using the below process Export your content editor web part and get the schema XML and follow the steps given in this link. Programmatically add a web part to a page using CSOM The ...
1
vote
2answers
961 views

Media and Content catalog unavailable

My enterprise has recently activated SharePoint online and I'm able to create sites and subsites. Unfortunately, when I try adding webparts to my page, I only get a handful of webpart catalogs : ...
0
votes
1answer
329 views

Jquery to display formatted value in content editor

I'm completely new to jquery and by now I'm not able to use it. Can anyone help to write a piece of code, which will display single item (given ID) from the list 'CounterList', column 'Counter' to a ...
0
votes
1answer
555 views

Sharepoint 2013 mixes CSS styles in separate web-parts

I am currently building a page in SP13 enviroment and what I want to do is to create a horizontal Navigation Panel on the page Header + menu on the left with sub-categories. I created 2 Webparts ...
10
votes
3answers
392 views

webpart hidden when in webpart zone

So I have a webpart that I have put into a webpart zone, when it is in the webpart zone it does not show but when I put it outside the zone it appears, what am I doing wrong? Code below: <...
0
votes
1answer
65 views

How to remove content editor after first load of any page

Any one knows how to remove content editor after first load. I want to load the page with content editor for the first time but after page refresh the content editor should be removed from the page. ...
2
votes
0answers
323 views

CSS not applying to a Web Part

I have several web parts on a page, 2 of them are CEWPs. 1 links to the CSS and 1 links to a text file. The CSS is applied to all other web parts on the page but it will not apply to the CEWP ...
3
votes
0answers
639 views

Align web parts vertically in a web part zone

I have a page layout with the web part zone. The webpart zone is supposed to have 2 webparts - CSWP and Content Editor webpart. I need to place the CSWP above the Content Editor. I need to set the ...
1
vote
1answer
506 views

jQuery script for new list item form only works in edit mode

Newbie question. With Sharepoint Online, on a new List I'm modifying the Default New Form and I've added a Content Editor web part. I've linked the Content Editor to a script file that I've uploaded ...
1
vote
1answer
196 views

Determine all sites with active script editors

Can somebody help me to determine all the sites which have content editor web parts active on the SharePoint Farm? Both publishing and non publishing sites. Is there a script? I found one at Finding ...
1
vote
1answer
12k views

Content editor webpart code to add a background image in SharePoint 2013?

I have the following code to add a bg image on my Subsite home page. It does'nt seem to work and I have a solid feeling its the way I'm referring the image (stored under a picture library named 'Image ...
1
vote
1answer
2k views

Sharepoint 2010 web part & IE 11 - targets document mode 8… APIs may not be available

I am running some javascript (d3.js, sp.js) in a web part on a sharepoint 2010 site. Everything runs fine when I use chrome or firefox, however when I open the page in IE 11 it does not load correctly ...
3
votes
2answers
3k views

<FORM> tags are not supported in custom page layout

I am creating a custom page layout (I am also using a custom masterpage). I have created a CEWP and linked it to a notepad file, the file is just HTML and Javascript <table border="0" width="200" ...
2
votes
1answer
115 views

Make a content editor web part “expire” after a certain date

Is there any chance of setting up an end or expiry date to content editor web part, so that it automatically go off when it passes the set date? I am using SharePoint 2007.
0
votes
0answers
55 views

Create Template for Page with List and CEWP

In our portal we have a List that acts as a signup sheet, and above it we have inserted a CEWP to provide some directions. Is there a way that I can save the combination as a template of some kind? ...
3
votes
1answer
70 views

Adding a Content Editor Content Link causes other Web Parts to have a truncated title

In SharePoint 2013, I added a Content Editor Web Part and then specified a Content Link. After I did that, other Web Part titles were truncated on the left hand side. This side effect even extended ...
0
votes
1answer
1k views

sp.ui.rte.js is not working in Internet Explorer 11 Version

We implemented custom Content Editor Web Part, inside that we are using the sp.ui.rte.js file. It is working fine up to IE10. Our project users upgraded from IE10 to IE11. When we edit the content ...
0
votes
1answer
3k views

Looking for count down clock in CEWP using html/jquery [duplicate]

I am looking to insert a count down clock in content editor web part using html / jQuery. Did any one ever do this? I am unable to figure out how to start as am not a pro in scripting.
0
votes
1answer
1k views

SharePoint Content Editor HTML textbox Enter key leading to Edit mode of Page

While using HTML Textbox in content editor and from Chrome or Mozilla User presses Enter key leading to edit mode of the page. Issue with SharePoint 2010 and SharePoint 2013
3
votes
1answer
451 views

Remove content editor name when page has been published

I have a content editor webpart in Office 365. When I publish the page the content editor name is still there. How can I remove this?
1
vote
2answers
530 views

How to put Script Editor inside Content Editor?

I have a javascript and in order to work, I have to use Script Editor. The reason why I want to put Script Editor inside Content Editor is because Content Editor are filled with tables, and 1 of the ...
2
votes
2answers
4k views

Programmatically create fields in a SPList using Client Side OM

Has anyone tried with creating some 20+ Single line of text SPField using Client Side OM, like within a Content Editor Web Part. Because creating a SPList with these many number of columns using ...
0
votes
1answer
721 views

Jquery UI not loading

I have a standard web part page and am reading items from a list and then displaying then under jquery tabs. I have downloaded the jquery UI (minified) and placed them in the site assets library of ...