Sharepoint Online – Custom CSS in Content Editor web part saves are overwritten

I’m fairly new to sharepoint customisation so have been struggling reading over some threads. I have looked at the following Posts by have been unable to figure out where / what needs to be edited to get this working.

I’m trying to add custom CSS to edit my home page where promoted links are stored in order to make them smaller (This is so that it scales better when viewing on an ipad).

I’m following this process but I can not seem to get my customisation to save after pressing the save button – It just reverts back to how it was.

  • Navigate to Home page
  • Press the Edit button
  • Add My promoted links web parts to the page
  • Save the page

At this stage the site is fine – I now want to make further customisation in order to resize the promoted links I have just added to the home page.

  • Press Edit to edit the home page
  • Add a Content Editor Webpart at the top of the page (Insert > Media and Content > Content Editor > Add
  • Click onto the Content editor web part I have just added
  • Click ‘Edit Source’
  • Add the code between the and Tags – (Link to the CSS I’m added is in the comment below)
  • Press ‘OK’ to save the source code I have entered
  • Looking at the site the Promoted links have now been resized to the size I want them

    • Press the Save button

    • After pressing save and viewing my home page the promoted links have gone back to the same size as they were before?

Does anyone know why this isn’t saving?

Please let me know if you need any further information or screenshots.

Kind regards Steven

Sharepoint Online – Custom CSS in Content Editor web part saves are overwritten

I’m fairly new to sharepoint customisation so have been struggling reading over some threads. I have looked at the following Posts by have been unable to figure out where / what needs to be edited to get this working.

I’m trying to add custom CSS to edit my home page where promoted links are stored in order to make them smaller (This is so that it scales better when viewing on an ipad).

I’m following this process but I can not seem to get my customisation to save after pressing the save button – It just reverts back to how it was.

  • Navigate to Home page
  • Press the Edit button
  • Add My promoted links web parts to the page
  • Save the page

At this stage the site is fine – I now want to make further customisation in order to resize the promoted links I have just added to the home page.

  • Press Edit to edit the home page
  • Add a Content Editor Webpart at the top of the page (Insert > Media and Content > Content Editor > Add
  • Click onto the Content editor web part I have just added
  • Click ‘Edit Source’
  • Add the code between the and Tags – (Link to the CSS I’m added is in the comment below)
  • Press ‘OK’ to save the source code I have entered
  • Looking at the site the Promoted links have now been resized to the size I want them

    • Press the Save button

    • After pressing save and viewing my home page the promoted links have gone back to the same size as they were before?

Does anyone know why this isn’t saving?

Please let me know if you need any further information or screenshots.

Kind regards Steven

IFrame Height in Script Editor

I have a iframe placed into a script editor.

When the height of the iframe is set to 100% the images all size correctly but the script editor web part does not.

IFrame Height

How can I get the editor to mach the size of the content inside it?

EDIT: This will resize the iframe to take half of the window size on load. A few tweaks are needed to correct it.

<script type="text/javascript">         function resize_iframe()         {             var height=window.innerWidth;//Firefox             if (document.body.clientHeight)             {                 height=document.body.clientHeight;//IE             }             //Resize the iframe according to the size of the             //window (all these should be on the same line)             document.getElementById("iframe").style.height=parseInt(height-document.getElementById("iframe").offsetTop-8)/2+"px";         }         // This will resize the iframe every         // time you change the size of the window.         window.onresize=resize_iframe;      </script> 

Duplicate sheet but keep protected range with exact same user as only editor?

The following code duplicates a sheet based on a template, and copies over the protected range permissions from the template sheet to the new sheet.

However, the permission range is now there in the new sheet, but not with the same user.

The template sheet has only one user that can edit, but for the new sheet, while the same range is restricted, all users from the entire spreadsheet can edit the new sheet.

Does anyone happen to know if I can make it be just the exact same user as the template? And not like the user that initiates the script but only the same user as the template. Here’s the code:

function newSheet() {   var ss = SpreadsheetApp.getActiveSpreadsheet();   var sheet = ss.getSheetByName("New Sheet Template");   var protections = sheet.getProtections(SpreadsheetApp.ProtectionType.RANGE);   var dateI = Browser.inputBox('Enter Date: ','(DD/MM/YYYY)', Browser.Buttons.OK_CANCEL);   var nameSheet= "Sheet - "+dateI    if (dateI == "cancel" ) {     }     else {       ss.insertSheet(nameSheet, {template: sheet});       ss.getRange('B4').setValue(dateI);           for (var i = 0; i < protections.length; i++) {         var sheet2 = ss.getSheetByName("Sheet - "+dateI);         var p = protections[i];         var rangeNotation = p.getRange().getA1Notation();         var p2 = sheet2.getRange(rangeNotation).protect();         p2.setDescription(p.getDescription());         p2.setWarningOnly(p.isWarningOnly());     }     } } 

Validation of a text file: how to best show the inline editor?

I’m making an app that validates a text file and then shows the errors associated with it. Currently all errors are listed as rows.

I’d like to make it easy to correct the errors in the text file so the validate-repair-validate cycle is fast.

What’s the best way to go about it?

Here is my current attempt at it:

enter image description here

Best Free+Paid Video Editor APKs of 2019

when it comes to video editing on android phone then we tought it's not possible to edit professinal videos like PC. Yes its true unless we have these android apps. Today I'm ging to introduce the best Video editing Android apps avilable right now. download them from below links, I have also provided the Premium + Mod version of each APK.

Best Android Video editing Apps 2019
ok now time to read the list of best video editor apks for Android….

Best Free+Paid Video Editor APKs of 2019

Google Sheets – How to preserve colors of each series from changing when inserting new data in Chart Editor?

This issue occurs on every chart type. As an example, I have a pie chart created from a long table of data where each column is assigned a specific text color, so each slice of the pie corresponds to the color of that column. I maintain this color coding on various other graphs of the same data to aid in reading the data.

When I insert a new column into the table data, I want to assign it a new color, and have its slice take that color. The new data is inserted into the series of the pie chart. However, the series will not keep their assigned colors, instead the inserted series will take the color of the series that was in its place, causing a domino effect as every series after will shift its color. The last series will have a new color. As such all the slices in the chart after the inserted slice will no longer correspond to the color of its column.

Chart before and after inserting new data

I then have to manually change each series back to its original assigned color which is extremely time-consuming and frustrating every time I want to insert new data.

How can I preserve the color of each slice/series so that the colors don’t all change when I insert new data?

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 SharePoint Online and in all previous versions that I have worked with, there was the versatile, efficient “Content Editor Web Part” that could be Edited and Added onto SharePoint Sites.

Where can I find / enable Content Editor Web Parts? Or are they removed from SharePoint Online functionality?

Short GIF of Frustration:

https://gyazo.com/eb5d2aca2c1dfb264579d5dd07e70be0