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
3
votes
0answers
625 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 ...
3
votes
1answer
422 views

Edit item popups not working with ms-listviewtable class in a CEWP

I'm using SharePoint 2010 and Internet Explorer 9. (I have no choice in browser or versions -- policy dictates I use these until told otherwise) I actually solved my problem, but I still don't ...
3
votes
0answers
334 views

SharePoint Edit Mode Javascript error in edit mode

I am not able to edit the page from the browser. I used to change and edit webparts when suddenly in the edit mode everything looks like it is locked/stalled. When I open the debugger tool, I saw a ...
2
votes
2answers
9k views

Connecting an html form to a sharepoint list

I am trying to build a customer feedback form in sharepoint. I have created a sharepoint list, which I was hoping to serve as the place where the feedback(s) will be collected. I have also made an ...
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 ...
2
votes
2answers
1k views

how to conditionally show a content editor webpart

how to conditionally show a content editor webpart based on user currently logged in. I have 2 links on my webpart page, and i need to show one of the link to only a specific user. is there a out of ...
2
votes
3answers
2k views

javascript- How do I create a global variable among all pages

I implemented a toggle in my home page through javascript in content editor web part, the toggle has state between 1 and 0. Now I need the exact same toggle in all other pages of my site, but I'm not ...
2
votes
3answers
75 views

Content Editor Web Part - SharePoint Online?

I hope this is not an "easy" / "Duh!" kind of answer, because I am driving myself mildly crazy searching for a Content Editor Web Part in SharePoint Online. This is my first position working with ...
2
votes
3answers
7k views

Mandatory File Attachmant

I want to make file attachments mandatory in a list. Every new element should have an attachment. Therefore I used a content editor webpart with following sourcecode: <script type="text/javascript"...
2
votes
5answers
21k views

Hide Content Editor webpart title

I have a Custom Page Layout and I have placed a Content Editor Webpart to display some introductory text. I want to hide the title as there was this chrome type property in webpart which appears blank ...
2
votes
2answers
5k 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 ...
2
votes
3answers
2k views

How to put an iFrame with a QueryString appended in its src in the ContentEditorWebPart?

I have a SharePoint site Page in which i need to put an iFrame element to display a web page.To achieve that I wrote some html and javascript within CDATA tag inside the Content section of a ...
2
votes
3answers
5k views

How to Create Piechart in sharepoint 2010 Based on the List item Values? Only using Javascript/jquery

I have a CustomList in Sharepoint 2010 as Mentioned Below.have two columns Team and Values of Team List A Team ValuesofTeam A 9 A 6 B 7 C ...
2
votes
1answer
2k views

JavaScript in CEWP does not execute

After putting a small script together and pasting it into the Content Editor Web part all my breakpoints show the following warning in IE 8's debugger: "The breakpoint is not valid. No executable code ...
2
votes
2answers
108 views

Single Page application without Content Editor Web Part [closed]

Right now my sharepoint site consists of one page, which has only a web part placeholder containing a content editor web part that links to my Vue.JS app. So basically I've created some sort of SPA in ...
2
votes
1answer
444 views

How to create webpart page using ECMA Script

I have tried to create webpart page using ECMA script, but did not get the right solution. Example : I have created two text-boxes one for "page name" ,second for "web-part name". when user click on ...
2
votes
2answers
14k views

Reference to javascript file in Content Editor Webpart

I have site which is non root site i.e. url of site is: http:///sites/xxx I want to place a content editor web part and refer a link to javascript file which is stored in the Style Library. My code ...
2
votes
1answer
981 views

Javascript is changing in Content Editor WebPart

I want to add this a Widget in my sharepoint site. But every time someone edit the page, it mess the script. Someome knows why sharepoint is changing the script? And how to avoid it? The script that ...
2
votes
2answers
2k views

JavaScript with CEWP using ClientContext, do I need to add src to tag?

I am new to SP Dev and I am trying to add some CEWPs that reference javascript I have placed in text files and uploaded to a document library. For bland functions it seems to work fine, however for ...
2
votes
1answer
2k views

Error on page when using an iframe in a Content Editor Web Part

I am trying to set up on iframe on a SharePoint 2007 page that will show the most current project report uploaded to a document library. Here is my code, inserted into the page in the source of a ...
2
votes
1answer
156 views

Online - Opening documents in client application keep asking for credentials

I've made a CEWP using REST API and Javascript where I create some links to documents that are stored in a document library. These documents must open in the client application (eg: Word) and not in ...
2
votes
1answer
202 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 $(...
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 ...
2
votes
3answers
124 views

How to save a textarea field and show it on return to that page

I'm trying to build a training system in Sharepoint 2007 where there will be a textarea at the bottom of each page for the user to enter their responses to questions or statements. All I need is for ...
2
votes
1answer
547 views

How to Roll back Sharepoint content editor webpart

I have content editor on my team site where I added several links. But today while adding some new links, content editor crashed. so now when I tried to open site containing content editor, browser ...
2
votes
2answers
2k views

How to generate link based on selected list item?

I have a Knowledge Base template site that I'm trying to customize. I want to create a simple search site, with just two items on it: - a dropdown menu which displays content of "Keywords" list (from ...
2
votes
1answer
242 views

Content editor WP mangles code

I'm having issues using the content editor web part on publishing pages of a SharePoint 2010 site. I paste the following JavaScript into a CEWP: <script> $(document).ready(function () { ...
2
votes
4answers
814 views

Migration from Sharepoint 2007 to 2010

Currently I work on a subsite from the SP 2007 farm. But in the upcoming future the parent site plans on upgrading to sharepoint 2010 and I wonder how will this effect my subsite. In my subsite I have ...
2
votes
1answer
43 views

SharePoint online TextEditor Option for Javascript and other code no longer available

I have noticed a recent dramatic change in SharePoint online. I have multiple java script and html scripts that control content editor webparts on my SharePoint site. Previously I could view and ...
2
votes
1answer
407 views

Add Content Editor webpart in masterpage with Target audience

I have my custom master page developed in SharePoint 2013, Now I have a requirement to have some links to be visible for only particular user/group (not on permission so SecurityTrimmedControl will ...
2
votes
1answer
760 views

Add a separator between certain columns on New/Edit Form on SharePoint 2013 OOTB

I have the following modified version of Curtis Weir's field hiding script from dmcinfo.com which I want to run using the SharePoint OOTB Script Editor: <script src="//code.jquery.com/jquery-...
2
votes
1answer
506 views

How to make web part refresh with CSOM after updating audience

This issue is with SharePoint Online. I have the following PowerShell function to update the audience on a Content Editor Web Part. When I run the function, the audience is set correctly, however it ...
2
votes
1answer
113 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.
2
votes
2answers
2k views

Adding default web part in web part zone

Following is the code in my page layout. <WebPartPages:WebPartZone id="page_detail" runat="server" title="Page Detail" PartChromeType="None"><ZoneTemplate></ZoneTemplate></...
2
votes
1answer
927 views

Changing Content Editor Programatically - Client model API?

Is it at all possible to make changes to or add a content editor to a page using only the Client Object Model API? There does not appear to be any reference to a ContentEditorWebPart dll.
2
votes
2answers
5k views

Where is the Spell Checker in the Content Editor Web Part in SharePoint 2010?

Has the Spell Checker been removed from the CEWP in 2010? In 2007 users using the Rich Text option could spell check content. In 2010, the ribbon is showing no option to spell check. It does however ...
2
votes
1answer
314 views

SharePoint & Protocol-Relative URL's

A common web development trick is to use protocol-relative URL's, i.e. we drop the scheme part of the URL, e.g. http, and based on the scheme of the page the URL's take will use that scheme. However ...
2
votes
3answers
6k views

Overwrite the default font for Content editor webpart in sharepoint 2010

I added a content editor webpart in my sharepoint page. By default it is using 'Verdan' font type. How would I change it to 'Arial' ?
2
votes
2answers
7k views

Change default font-size in Content Editor

I need to change the default font-size in Sharepoint 2010 Content Editor. I've tried to set .ms-rte-wpbox {...} CSS property as suggested somewhere on web but it didn't work. Any help would be ...
2
votes
1answer
4k views

Set font size for web part zone

I have SP2010 Web Part Page with several Content Editor web parts in the 'body' Web Part Zone. I would like to set the typeface and point size of the titles displayed in the web part chrome. It seems ...
2
votes
2answers
408 views

No editor in the Content Editor if added programatically

I am adding the Content Editor pro grammatically in my custom wp (into the asp.net Panel), where I am pre-loading the CEWP with some contents. But the issues is once added pro grammatically. I do not ...
2
votes
1answer
2k views

Content link URL for a content editor web part

I'm creating a content editor web part that needs to point to the site collection root. Currently, for it's "Content Link" URL field, I have ../../SiteAssets/js/jquery-rotator/slider.txt but this is ...
2
votes
1answer
19 views

Hide quick launch sections on a specifc page using content editor

I have a SharePoint (2010) list page. I have already found a useful piece of code that works in content editor to hide the quick launch bar: <style type="text/css"> body #s4-...
2
votes
1answer
39 views

How to retrieve list item from the custom list, on a content editor with some texts?

As described from the question, i want to retrieve a list item and display it on a content editor. This should be most likely be using a javascript or jquery perharps? UPDATES: Here is an example: ...
2
votes
0answers
26 views

How to get rid of periods (..) in content editor web part with dynamic html elements? [closed]

I have a content editor webpart which has an empty division() and links to some javascript and and css files. The script, css and the web part is working fine as per the busines logic except the ...
2
votes
0answers
20 views

Content editors accessing content on a different site

I have a content editor which links to a text file on a fellow site (same root directory) which formats the list on the page. when I used this site as a template for a site on a different root the ...
2
votes
1answer
1k views

Line spacing on wrapped text

I am currently building content in share point, media & Content webpart, using Calibri, font size 12pt. I notice that when text wraps it creates a spacing. I would like to have 0pt spacing between ...
2
votes
1answer
37 views

Blank areas where webpart originally lived after position:relative web part

I'm creating a page and using CSS in a content editor to customize. I have a title webpart, list web part, and a show all / hide webpart that I'm using JavaScript to reveal a 2nd list and hide the ...
2
votes
0answers
313 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 ...
2
votes
0answers
388 views

How to execute a SQL Agent Job on a button click in a Web Part page of a SharePoint 2013 site?

I have a SharePoint 2013 on-premises site. The requirement is to add a button to one of the Webpart pages and on click of that button, a sequence of 3 consecutive SQL Server Agent jobs will be ...