Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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.

0
votes
0answers
25 views

What is this unwanted files in SharePoint Online when we keep debugger?

I am facing very strange issue in SharePoint Online. I have a kept some JavaScript code to a Content Editor Web Part on a SharePoint Online Page. When I try to debug the JavaScript file, instead of ...
2
votes
1answer
39 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 ...
0
votes
1answer
33 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 ...
3
votes
2answers
76 views

Referencing javascript library in content editor webpart

So i have added content editor webpart in NewForm.aspx and reading the code to javascript file called HideFields.ps1. SO the script as below: HideFields.ps1 <script type="text/javascript" src="...
0
votes
0answers
22 views

Get Folder name when clicked on specific folder in picture library without using rest api

I want to get the Folder name when user clicks on a specific folder in picture library without using rest api. Is there any way I can achieve this? Please help me?
0
votes
1answer
25 views

CSS list-style-image in Content Editor?

Anybody ever successfully used list-style-image css property in a ul list embedded in a SharePoint Content Editor web part? list-style-type works, but whenever I try to get an image instead of the ...
0
votes
0answers
6 views

SP 2013 Content Editor Web Part Repeats in Document Library sub folders

SP 2013, I created Content Editor Web Part above Document Library. When I click on sub folders, the CEWP remains unchanged. Is there a way to edit/change the CEWP in individual sub folders?
0
votes
1answer
15 views

List Column Width won't change

Here's what I'm trying to do: I have a list where I'm trying to enlarge the width of two particular columns. Here's the JS that I'm attempting to put into use: <script type="text/javascript" src="...
0
votes
1answer
35 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
1
vote
0answers
12 views

Using ClientContext can we change the url of text file linked to content editor webpart?

Is there any way to change the url property of content editor webpart using Javascript function ? I found solution to change the title of the webpart not the url properties of the web part. ? ...
1
vote
2answers
189 views

Content editor webpart not available in newly created Team sites in Office 365

Content editor is not becoming available in newly created Team sites in office 365. I enabled SharePoint Server Publishing Infrastructure in site collection features and SharePoint Server Publishing ...
0
votes
1answer
44 views

Displaying List Item in CEWP on another Page

I have a SharePoint with several calendars named for their store number, I also have a list named Store Addresses which has the store numbers and their addresses. I am trying to display the address ...
0
votes
2answers
87 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 ...
1
vote
1answer
38 views

Scripts Not Working in Content Editor

I have a generic out of box web part page. I have added a content editor web part on that page that links to a HTML file because I want to build my own custom form via HTML. Here is the HTML file. &...
2
votes
2answers
75 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 ...
3
votes
1answer
29 views

How to persist data that is entered into a Content Editor Web Part

I've created a table where users can add/remove rows containing past employment history Code here I'm using a Content Editor Webpart which points to an html file that contains both the code and html. ...
4
votes
1answer
180 views

Content editor web part issue not rendering HTML

I'm having an issue w/ a Content Editor Web Part. I would like to add an HTML table that gives users the ability to add and remove rows from a table. How should I add the following code to the CEW? ...
1
vote
1answer
39 views

Does one script override another script in sharepoint 2013?

I have two jquery script. when one script works, the other one does not function and vice versa. Intially, I thought it is because both scripts had same function name etc. I changed the variable name ...
0
votes
1answer
50 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
9 views

How do I access a specific category of documents across libraries by clicking a web part tile?

Wondering if there's a way to accomplish this task: I've created separate categorized SharePoint libraries (i.e., Legal, HR, Business, etc.) which contain documents with a column-view based on ...
0
votes
1answer
178 views

SharePoint Cross Domain REST Call from content Editor Web Part error

How to call cross domain rest call using SharePoint rest API 2013 posting data in SharePoint list from https://qa.sp.scb.org/en/whoweare/diversity/Pages/Admin.aspx To http://qa.sp.scb.org/fr/...
0
votes
2answers
151 views

Get current user name into the single line of text field for newform.aspx using Javascript in New Item form

newitem.aspx opening into the popup, so where do I need to add Content editor webpart. While opening newitem form, I need to autopopulate current user Name into sigle line text field?
2
votes
1answer
134 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 ...
0
votes
1answer
153 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?
1
vote
0answers
19 views

SharePoint WebPart forcing to fill out required fields to edit page

A sharepoint page created by my predecessor which is a content viewer web part has some HTML "required" tags to fill out a form. When trying to checkout and edit this in the browser, it just hangs on "...
0
votes
2answers
2k 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 ...
4
votes
2answers
3k views

How to use html code in modern UI

This may be a rookie question but I just entered the world of SharePoint after a long time. I used to use the content editor web part to include custom html into my SharePoint pages, but now on the ...
1
vote
1answer
52 views

Retrieve anonymous link on creating item of a list

I have a classic sharepoint online list, when I create some item in list(create view) I want to retrieve a link of that item I'm currently creating to send email with that link to anonymous person. ...
2
votes
1answer
38 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: ...
0
votes
0answers
36 views

Very slow loading with 2 CEWP referring to different html files which load the same commons.js

I stumbled on a rather strange issue in SharePoint 2013 On-Prem. Case: Home.aspx has two CEWP's: Has a content link to /SiteAssets/CustomPages/tableOfContents.html Has a content link to /SiteAssets/...
0
votes
0answers
32 views

Migrated content to wiki page library not visible in edit mode

I recently migrated publishing page library content (pages have webpart zones and content editor webparts) from SP2010 to SPOnline wiki page library using Sharegate. After migration I am able to view ...
1
vote
2answers
349 views

Unable to directly Edit html in the browser in SharePoint Online

From yesterday onwards, am Unable to directly Edit html in the browser in SharePoint Online env. i have created a folder called htmfiles in my siteassets librray on my SPO site, and i have a html file ...
0
votes
0answers
23 views

Can you get CEWP Content in SP 365 via CSOM

Is there a way to get the content of a Content Editor Web Part using CSOM for SP365? I am looking at the WebPartDefintion object, getting the WebPart from that and looking at the properties of the ...
0
votes
0answers
37 views

How to have full hover functionality for a content editor web part?

One of the Projects I am working on, I have a content editor web part that shows recent documents which is user based. I customized the display template and added some code to have a full hover ...
0
votes
0answers
98 views

Google map API v3 not working in sharepoint 2013 publishing site

use a Google Maps API in SharePoint site to display a map on SharePoint page, map works perfectly in SharePoint 2013 team site.but not working in SharePoint 2013 publishing site.I am using content ...
0
votes
0answers
42 views

Edit a new web page in Classic mode in Sharepoint 2013 / Online

I need create pages with some views in sharepoint, when I add new blank page (configuration -> New Page) to add my views, filters, etc.... the Sharepoint show me de "new" edit mode, but is not good ...
1
vote
1answer
251 views

Get all site collections for a web application - JSOM

I want to display all site collections for a given web application(Can be hard-coded url) using JSOM SharePoint 2010(No REST api). I have tried but couldn't complete it.
0
votes
1answer
115 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
104 views

Trying to display all the document library links on content editor webpart after migration from 2010 to 2013 not working

I am trying to show all the document library links on the content editor web part in SharePoint 2013. I had written Jqeury for it and it worked fine on SharePoint 2010 but after migrating to 2013 this ...
1
vote
0answers
27 views

Screen “Hitch” In Picture Slideshow Web Part

I have created a slideshow web part in a Sharepoint 2010 environment. I was first having a problem of the images sizing too small in the web part, but I implemented the solution that "Vadim Gremyachev"...
1
vote
2answers
50 views

Check if the currently opened item is a folder or a document in EditForm.aspx

We have added a content editor webpart to EditForm.aspx for document library. In the CEWP, there's a JS filed. We need to execute different code when a folder is getting edited (like renaming the ...
0
votes
1answer
252 views

SharePoint 2010 Trigger JavaScript when going to Edit Mode

So I'm looking for some JavaScript code that will trigger once a user goes into Edit mode on a page. I basically want to have two layouts in a content editor. One for display and one for edit. I have ...
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
66 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
274 views

Bootstrap does not work on SharePoint 2010 Internet explorer 8

I need to support legacy internet explorer I.E. 8 applications. But Bootstrap does not work on the SharePoint 2010 page. I am injecting custom html using a content editor web part it works perfectly ...
0
votes
2answers
355 views

How do I outline the script editor web part / content editor web part

similar to the question mention How do I round the corners of my web part titles on my SharePoint site? [ How do I round corners of web part titles? ], I would like to see , the put a black outline ...
1
vote
0answers
35 views

Is there an approval process behind the scenes for new pages with CEWP to be activated to allow script tags?

I was doing some coding work through the content editor webpart on a page. The code uses jQuery, and the execution of that page do have some errors, but mostly insignificant ones. The script file is ...
0
votes
1answer
302 views

Getting duplicated/Multiple web parts on a custom page layout when provisioning

So i've got this problem that i'm facing, whenever I'm provisioning my sites some content editor webparts become duplicated while others don't. There isn't any difference between them except... I'm ...
0
votes
2answers
399 views

Save data of html form into SharePoint list using JS , with impersonation

I have a SharePoint public site and make it as online, I created a list called "questionnaire result". I designed an HTML page for questionnaire by people, then I added the ContentEditor WebPart with ...
1
vote
3answers
111 views

SharePoint 2013 content editor wepart permissions

Is there a way to set permissions to a CEWP in SP2013 on-prem? What i'm trying to do is create a button to a network shared drive, and depending on the permissions set on a SP security group they'll ...