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
0answers
2k views

SharePoint 2010: Removing link border around image using the content editor web part

In addition to topic Remove link border from around image, I was wondering if it were possible to remove all the borders around linked images on a page using the content editor web part? I've added ...
1
vote
1answer
324 views

Content Editor Web Part Uneditable in IE9

A user added a content editor web part with just some simple HTML formatted text to it today. Once the text is added and the page is saved no body can seem to edit the web part's properties unless ...
1
vote
1answer
150 views

Web Part JS ToggleMe not running

I want to add toggled visible / invisible divs to a SharePoint wiki page, and put the function for the toggling in a web part. My toggling script works fine testing outside of SharePoint, but inside ...
1
vote
1answer
6k views

jQuery to modify SharePoint 2010 Column Width

SharePoint 2010 - I have a Standard Task list in Gantt View that represents a list of projects (Sync from Project 2010). Since the column widths are not-persistent in SharePoint, I wrote a script to ...
1
vote
0answers
156 views

CEWP won't allow text to be edited

Recently, I imported a CEWP on my site from another. For some reason, no other user can edit the text but me, even though they have Design permissions to edit it. I've checked the permissions for ...
1
vote
0answers
468 views

Like Buttons in CEWP

I want to have multiple like buttons on a page so as a test I have made a content editor web part with the following script. It basically has two links that like two different pages in the site. The ...
1
vote
1answer
1k views

Possible to use createNewDocumentWithRedirect to redirect to a web based Infopath form?

We create a link to a InfoPath client-based form (meaning that the form is open at the client machine which have infopath installed.) by using the following source code inside a Content Editor web ...
1
vote
1answer
1k views

Is there a way to fix the blinking of a dropdown menu over a .pdf loaded in a <div>?

I have an object inside a <div> that is displaying a pdf. This is done within a Content Editor Web Part. My drop down navigation menu "blinks" whenever it is over the <div>. The drop ...
1
vote
2answers
2k views

Get inner content of Content editor web part Programatically using CSOM C#

I need to Access Web parts Content Property but it is not available in Web Part Properties when I tried with Client side object model C#. Please find below reference links for detail information. ...
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 ...
0
votes
2answers
2k views

Javascript How can I return a value for document.write in CEWP with javascript

I am new to this, and I am just trying to understand how to use some of the javascript I have learned in different ways. This may be a question of context, but an examples or explanation is always ...
0
votes
2answers
522 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 ...
0
votes
2answers
233 views

How to manage text modules (boilerplates) with Sharepoint?

I want to manage boilerplates/text modules in SharePoint. Text modules are content snippets, which may appear on multiple sites, but are only stored once. When the source is changed, all references (...
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 (...
0
votes
2answers
210 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
498 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 ...
0
votes
1answer
6k views

Apply Background color for Promoted List in SharePoint 2013 using Content or Script Edtor

I have been tasked to apply background color for promoted links using Script and Content editor web part, can any one help me? How can I do this?
0
votes
3answers
2k views

How do I apply a CSS ID selector to a webpart page?

I am using a CEWP-linked HTML file to generate a menu of links to other web-part pages. I want to use this same file in a CEWP on each of the linked pages. As an indicator of the user's location, I ...
0
votes
3answers
2k views

Show Web part only for Logged in User

Is there any way that i can show a web part only for current logged in user .I want to achieve this on an out of the box content editor web part .Please suggest me
0
votes
2answers
2k views

Content Editor Web Part blank in jQuery slideshow

Now I dont get any error(s). But the content editor wp is blank (well, except for the gear image). Any idea(s)?? <IMG ID="slideshowPicturePlaceholder" src="/_layouts/images/GEARS_AN.GIF" style="...
0
votes
2answers
30 views

Css files not loading properly in sharepoint server 2019, only in sharepoint online

I have some custom html e js files that i am using in PDPs, (pages) of sharepoint, but the css its not being loaded. I importing the files like this: <link rel="stylesheet" type="text/css" href=...
0
votes
1answer
160 views

Excel web part vs rest api

I want to DISPLAY multiple excel charts on a dashboard. I Do Not need the functionality of the excel web part. So, what I plan on doing is getting an image of the charts via the excel rest api and ...
0
votes
1answer
1k views

Scrolling text from announcements list and make proper alignment

I have used below code to show a scrolling text in a content editor web part on my home page in SPO team site. [ very similar to marquee tag. We can't use marquee as W3C standards doesn't support!] ...
0
votes
2answers
75 views

yammer newsfeed is not rendering in SPO site home page content editor web part

below code is used to add a yammer newsfeed in my homepage of my spo site. but when i added inside an html file and tried to add it in a content editor web part, it failed to show : <!DOCTYPE ...
0
votes
1answer
174 views

Change the contentlink based on Site collection

I have a html file in the style library which I am loading onto a content editor webpart using content link Currently i have used, /sites/sitename/style library/html/file.htm But here the sitename ...
0
votes
1answer
2k views

Picture Library Slideshow webpart not playing?

I recently have used picture Library Slideshow webpart but the option for pause and play is not working. the fast forwards are working though. What can be the cause for this?
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
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. ...
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
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
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
1answer
339 views

c# add existing webparts on site into sandbox webpart solution

I want to create a webpart using sandbox webpart solution on C# which contents two or more webparts (such as a list, task, document,...) existed on my Sharepoint site. So my new webpart will have some ...
0
votes
1answer
191 views

How many files can I link in the CEWP

I have a CEWP which contains HTML button and JS for functionality. The html editor of the cewp keeps removing certain links from my code and I'd rather just link to the source file. How do I link to a ...
0
votes
3answers
4k views

JavaScript window.location doesn't work in content editor webpart

my issue is, that the following script with its window.location function doesn't work in a sharepoint content editor webpart. I've tested it as a standalone and it worked fine, but as soon I inserted ...
0
votes
1answer
77 views

I want to give a user with minimum permissions the ability to use a content editor

Just one particular content editor. So the user's permissions will still apply (i.e. they are not an editor so typically cannot edit) but will still have access to a content editor's rich editing ...
0
votes
1answer
1k views

Put Easy-Tabs in page layout rather than CEWP

Another question about the fantastic Christophe Humbert Easy Tabs library: Can the library be included in a page layout for a publishing site rather than in a content editor web part? This way it's ...
0
votes
1answer
149 views

How is it possible that CEWP shows up with IE but nothing in FF, Chrome and Safari?

On my machine I can get CEWP to show (image and data) on IE and FF. Chrome and Safari still show nothing (just blank screen). CEWP is linking to a txt file that has javascript stuff. Here is the code ...
0
votes
2answers
1k views

How to delete Content Type drop down menu from EditForm.aspx

I am trying to delete Content Type drop down menu from EditForm.aspx but not able to do it? Any ideas? Pls shoot -saumil
0
votes
1answer
43 views

How to add a content link to a modern SharePoint site

In the classic site one could link a html file via the content link on the content editor webpart, as seen in the screenshot below- How can one do the same on a modern site? I tried adding the Modern ...
0
votes
1answer
60 views

How Add Tab ability to Content Editor Web Part?

Hope you're well; I would like to know how I can add tabs in Content Editor web part in SharePoint Online. What is best solution to this. kind regards, Anees
0
votes
2answers
173 views

JS script only throws error when used in SharePoint in Internet Explorer 11

I'm experiencing this strange issue. I have a basic valid javascript app (Vue.js + Vuetify framework) which works fine in any browser (without SharePoint, so run from any hosted environment). Next I ...
0
votes
1answer
80 views

How to remove close button, created by and last modified by from display form of list?

Using script editor/content editor web-part on the display form of list, I am able to get the list item to print. However it also prints close button, created by and last modified by from the display ...
0
votes
1answer
291 views

HTML WebPart dropdown a custom list

I have a content editor web part that is referencing an html page. How can I fill a dropdown on that html page with the contents of a sharepoint custom list column?
0
votes
2answers
3k views

not able to see Content editor web part in communication site

I do have a web part page in my communication site. I did activated the publishing feature of both site collection and site feature. But, I am not able to see content editor web part. Users want to ...
0
votes
1answer
38 views

Content Editor not “sticking”

I've got a blank we-part page. What I would like to do is hide the side-bar and possibly some of the upper menus - to give us more real estate for a report that will be embedded on the page. I've ...
0
votes
1answer
62 views

How to add ContentEditor Web Part in Page Layout?

I Want to add Content Editor in my Page. This has to be done in Page layout. Hence any OOTB solution is not suitable. Any Suggestions? <WebPartPages:ContentEditorWebPart webpart="...
0
votes
2answers
776 views

How to read Content Editor Web Part Id from the javascript in it?

I have added a content editor web part in a SharePoint web part page. I have some java script code logic which renders some HTML and I have added that script to content editor web part Content Link. ...
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....
0
votes
1answer
615 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
228 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?