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.
380
questions
0
votes
2
answers
278
views
messageBox Title Field Value in sharepoint
How can we get the Title value at editform.aspx load event and save the value to variable then alert the value as messageBox
Any help with java script please
1
vote
1
answer
978
views
CEWP: Passing parameters to HTML file (workflow/parameter controlled CEWP javascript)
I have a CEWP which references to
/SiteAssets/test.html
this works well. Now, I would like to pass some parameters like
/SiteAssets/test.html?category=abc
I receive these parameters with a JS ...
1
vote
1
answer
79
views
Unable to add web parts to certain pages in Sharepoint Online
Are there two different types of Pages in Sharepoint?
I'm using SharePoint Online, and when I click Add Page, sometimes I get a full (ribbon) editor that allows for web parts, etc. Other times I get ...
0
votes
1
answer
386
views
Sharepoint 2010 Creating a content editor webpart with prepopulated content
Working on a site in Sharepoint 2010. I have created a custom page layout with a content editor webpart inside a webpart zone. I want to be able to have the same content appear within the content ...
0
votes
1
answer
786
views
Sharepoint Online: Set Content Editor Web Part Content with Powershell
I want to update the content shown by the CEWP using Powershell. I've been using PnP-Powershell but can't find a way to update the content/xml.
2
votes
1
answer
3k
views
Line spacing on wrapped text
I am currently building content in SharePoint, 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
1
answer
2k
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-...
0
votes
2
answers
425
views
Connecting List with Document Library
I am trying to create a list which is connected to a Document Library.
Actually I want to create a list and when I add a new item, have the option not only to create the item, but also to add ...
1
vote
1
answer
167
views
Prevent Repeated Items by Title
I would like to ask if anyone knows how to prevent duplicated Items in a List. I Just don´t want that there are two Titles with the same Name.
The idea is doing it through a Content Editor using ...
0
votes
0
answers
64
views
How hide a webpart feature in SharePoint 2013?
Hello I would like to know how I can hide green line . The web part i’m using is content editor.
0
votes
0
answers
21
views
Adding re-usable content to Lists
On our portal we have a subsite for signup sheets. The signup sheets are all custom lists and contain fields for flight information and other things.
Now, we need to add directions for each signup ...
4
votes
1
answer
122
views
► Will Microsofts CDN increase perfomance for linked HTML files?
Content I pull in from a Document Library
This is just f.. slow..
Same site pulls in content from our own HTTPS server
Questions
Will using Microsofts CDN solution par our own HTTPS server speed? ...
2
votes
1
answer
776
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 ...
0
votes
2
answers
1k
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.
...
1
vote
2
answers
156
views
Programmin only in CEWP or Without any API
I am quite new here... Right now I am about to design a Workflow site in SharePoint but I have to limitations:
1- I´m not allowed to use any API, only Notepad++ (Portable, of course)
2- No SharePoint ...
1
vote
1
answer
42
views
Trying to use Content Editor WebPart
I have been trying to use content editor web part to have when someone trys to open a PDF in my document library, It wont open in same window.... However i do not know how or where to enter the Java ...
3
votes
1
answer
75
views
Question about my Page Refresh Script on a Site Page
Help with either or both is highly appreciated. Have been stuck on this for weeks...
Question 1: How can I speed up my Page Refresh? Right now, it takes a solid 1.5 seconds. That doesn't seem like a ...
1
vote
4
answers
3k
views
Can I add more than one link in a content editor web part?
In this content editor I have referenced a .js file.
If I want to style it with .css file can I connect it also as a link in the same content editor?
For example:
Content Link:
menu.js; menu-style....
2
votes
1
answer
45
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 ...
0
votes
2
answers
2k
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
1
answer
787
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
1
answer
178
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
1
answer
123
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
0
answers
61
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
4
answers
8k
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
1
answer
3k
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
1
answer
280
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
1
answer
34
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
1
answer
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
1
answer
317
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
1
answer
59
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
1
answer
208
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
1
answer
600
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
2
answers
4k
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
2
answers
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
2
answers
10k
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
2
answers
42
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
0
answers
88
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
2
answers
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
1
answer
836
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
2
answers
11k
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
1
answer
770
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 ...
1
vote
2
answers
724
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
0
answers
468
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
1
answer
434
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
2
answers
350
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
1
answer
495
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
2
answers
2k
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
1
answer
374
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
1
answer
711
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 ...