0
votes
1answer
25 views

run in edit mode when save is clicked

var inDesignMode = document.forms[MSOWebPartPageFormName].MSOLayout_InDesignMode.value; if (inDesignMode == "1") { // page is in edit mode write code here var heading1 = ...
0
votes
0answers
4 views

Unable to get selected items using JavaScript from XsltListViewWebPart on Publishing page after published [duplicate]

I have placed xslt list view web part on publishing page. And above that I have placed one content editor web part to get selected items from the view. My JavaScript is: var ctx = ...
0
votes
2answers
868 views

Javascript in content editor web part not working after publishing the page

I have a publishing page in which I have placed content editor web part which contains the link to redirect the user to application page. Code in the content editor web part is: <script ...
0
votes
0answers
48 views

How to interact with a SharePoint 2013 page in edit mode

I'm new to the SharePoint 2013 Javascript API, so I'm still bumbling in the dark, trying to figure out how to write some javascript code to interact with a Sharepoint 2013 page in Edit Mode. ...
3
votes
3answers
1k views

how to determine if a page is checked out? Client side, using javascript?

I need a way to determine if a publishing page is checked out by the current user; I need this because I'd like to put a redirect, if the page is not checked out. Any ideas?
3
votes
0answers
225 views

Alternative to hook into RTE javascript [closed]

I'm looking to add some logic when a HTML element (input, button, .. but no regular text) is clicked inside the RTE control on a publishing page. One of the solutions I've been thinking about is ...
1
vote
1answer
498 views

Add Image to WebControl.RichImageField client-side Sharepoint 2007

Situation: I've got a pagelayout with 3 LanguagePanels with in everyone a RichImageField. Above these languagepanels, i've got a "General info" panel with a textbox for an url. In edit mode, if I want ...
1
vote
1answer
344 views

JavaScript removed in SharePoint Publishing Page during edit

I was working on a migration of an existing site to SharePoint and when pasting the source code of the pages to the SharePoint RichText fields in the edit mode of the page, I tried to copy the HTML ...