Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.

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
1
vote
1answer
132 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 ...
0
votes
2answers
3k views

SP13: Image behind Table (HTML)

I have content editor web part that I have applied html for a table. I would like to upload an image (through HTML script), but I want the image to appear behind the table. I tried using the ...
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 [...
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. ...
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 ...
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 ...
3
votes
2answers
1k views

Grabbing a filter value via CEWP code behind

I have employed a Query String Filter to parse a value and send it to a chart web part. now I would like to use this value in a CEWP to provide an explaination/clarification for the chart, but the ...
0
votes
2answers
567 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 ...
3
votes
1answer
594 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 ...
2
votes
1answer
2k views

Bootstrap Form Content Editor Webpart Sharepoint

I am trying to create a form which will style nice using bootstrap to look like one of the forms in the link twitter bootstrap forms However if I add the form tag to the content editor web part I ...
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
390 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 ...
1
vote
2answers
756 views

Content Editor Webpart and SharePoint 2007 object model?

I have to supply the query and should display the information on the SharePoint 2007 page based on the Enterprise Search Results. I wonder, if it can be achieved through Content Editor WebPart ? ...
0
votes
2answers
235 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 ...
1
vote
4answers
1k views

jQuery not working properly

In the editform.aspx of an item, I am trying to use jQuery to cause a pop up to go off anytime a field is changed (sort of silly, but once I get this to work, I plan on moving to doing more). However, ...
1
vote
2answers
1k 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
335 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
571 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 ...
2
votes
0answers
329 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
2answers
7k views

Custom Page Layout in Sharepoint 2013 Foundation

Sharepoint comes with a set of Text Layout Templates. How can I create my own custom Text Layouts under Sharepoint 2013 Foundation. What I'm trying to achieve is a shown below. PS: I do not have ...
5
votes
2answers
9k views

SharePoint removes iframe source from content editor randomly

I have content editor web part in which I am using iframe to display data from some other site. The iframe code is pretty simple such as: <iframe src="http://www.stackoverflow.com"></iframe&...
3
votes
0answers
654 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 ...
0
votes
4answers
4k views

How to get the list item column values based on the html drop down and display in the alert box using Javascript?

I have a html dropdown list(team name) which contains three values A,B,C I have a sharepoint 2010 List A which contains Team name and Email. List A Teamname Email A A@test.com B ...
1
vote
1answer
19k views

Edit page SharePoint designer 2013

I need to edit a page in SharePoint Designer 2013. When I open the page in edit mode, I can see the web parts but I can not edit them. How can I do it? (I need to add a CSS link in the Content ...
1
vote
1answer
517 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
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 ...
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
71 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 ...
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 ...
4
votes
1answer
2k views

How to retrieve all choice field values using ecmascript – SharePoint 2010 and bind to html dropdown in the content editor webpart

I need to bind the SharePoint 2010 choice column in the HTML dropdown of the content editor webpart.. I have followed this blog but it could not achieve my requirement. I have replace my listname, ...
10
votes
4answers
9k views

SP2010 - Edit in Sharepoint Designer open in Word

I'm completely stuck on this issue that keeps reoccuring for my organizations Sharepoint Administrators. On a Site Page under Site Actions, selecting the option 'Edit in Sharepoint Designer' opens ...
3
votes
1answer
484 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?
0
votes
2answers
3k views

Content Editor Web Part not loading Content Link

I have a Content Editor Web Part, pointing to an html file at the web app's root (Content Link = "/Style Library/MyCollaborationWebParts/MyCollaborationLinks.html"). The content showed by the CEWP ...
1
vote
2answers
542 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 ...
0
votes
2answers
41 views

Migrated sites don't allow edits

We've migrated all of our sites to SP 2013, but now many of them (still with the 2010 UI) don't allow editing to pages. If you click "Edit this Page" it blinks, but you can't edit the content. Is ...
1
vote
3answers
3k views

referring to files in style library from content editor web part

I have a content editor webpart I am referring a html file to the content link of the webpart the contentLink looks something like the one below sites/ImageList/Style Library/Page/ImageList.html ...
0
votes
1answer
729 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 ...
0
votes
1answer
389 views

SP2010 - CEWP not executing javascript until page refresh

The CEWP is loading a HTML page stored in the Site Assets library. The HTML contains a few inputs and some Javascript. Javascript is: Function myInit(){ console.log("here"); Ctx = new SP....
0
votes
2answers
1k views

Relative Paths in Content Editor Web Part

I have a relatively complex html-structure in a document library, which I want to display in a web part. The web part refers to site.com/library/index.htm, from which other pages are called. Problems ...
0
votes
1answer
460 views

Tooltips or Popups from List/Reusable Content

A customer would like to insert descriptions on words in his text on a page. Two possibilities to show them: 1. You hover a special word and a tooltip shows up with the description of the word. 2. ...
3
votes
1answer
2k views

Why Do My Content Editor Web Parts Have “noindex” Class?

When i create a content editor web part on a publishing page in SharePoint 2010, the following code is created: <div WebPartID="151e7c56-689b-48ef-ab7e-7f8ed3958cb5" HasPers="false" id="...
1
vote
1answer
132 views

Creating a modeless dialog box that appears automatically after 5 mins

I have a sharepoint site. On it I want to apply modeless dialog box , that will appear after 5 mins when user has open the site. Please suggest. I have written javascript code in CEWP that opens a ...
0
votes
1answer
462 views

JavaScript code block messing with drop-downs in Menu

I am using SharePoint 2010 and I need to place the following JavaScript code on a page to give me time in Rome <SCRIPT LANGUAGE="JavaScript"> function GetTime() { var dt = new Date(); ...
1
vote
0answers
136 views

Client-Side Save Event in Edit Mode

Is there any client-side event I can listen to when a user saves a page? I know how to detect the edit mode and I could add event listeners to save/check-in buttons, but it would be better to listen ...
3
votes
1answer
3k views

Get the list of all webparts IDs in a page using REST/CSOM

I have few content editor web parts in my page I need to get the GUID of all the web parts that are there in the page I am able to get the list of all webparts in the page by navigating to http://...
0
votes
1answer
513 views

jQuery validation on date field

I have 2 date fields in SharePoint list Deferral Raised Date and Original Dispatch to date. I want to put formula in jQuery such that value of Original Dispatch to date should be less than Deferral ...
0
votes
2answers
1k views

Unable to execute javascript user function within Content Editor

Trying to implement some javascript functions within the content editor. I have more advanced code to implement, but am not able to even execute the following code. The user defined function will not ...