Hot answers tagged

3

The code editor web part is specifically designed to show source code on the web page. So what you're seeing is by design. If you'd like to enter HTML to be displayed, there is no OOTB method that I'm aware of. One option is to create a custom SPFx part, which enables to you render any HTML you want. Of course, this is not a trivial undertaking and ...


3

reference Search for ID="PlaceHolderTopNavbar" Bring the Sharepoint:AspMenu control outside of this placeholder and delete asp:ContentPlaceHolder tag


2

You can add a new Ribbon button by targeting two areas Ribbon.EditingTools.CPEditTab and Ribbon.EditingTools.CPEditTab.Font Once you place the button, the button should use JavaScript or Other API's to format the text. http://www.webdesignbooth.com/9-useful-javascript-syntax-highlighting-scripts/


2

To get the snippets you must have the design file (HTML file) and these snippets should be copied to only .html files but not .aspx files. You can create a page layout from the Deisgn Manager -> Edit Page Layouts -> Create a page layout option. This comes with design file.


1

You can use _spPageContectInfo object to get the current web url. I have little modified your code to make url dynamic: <script type="text/javascript"> function displayLayover(url) { var options = SP.UI.$create_DialogOptions(); options.url = url; options.dialogReturnValueCallback = Function.createDelegate(null, null); ...


1

To replicate the same snippet on several pages without having to re-enter the web part on each page you can simple copy the page once the snippet is entered and re-name the page copy to suit. Follow these steps: - Navigate to the Site Pages library (of the site where you have created the page with the snippet on) - Locate your page and click the ... to the ...


1

Okay, I figured it out by luck. At the "Edit Page Layouts" page, click on the "Enterprise Wiki Page". (Idk how else to navigate to the following page, anyone with an idea, please comment) At the following page, click on "Add from existing site columns" (this is assuming that you have already created the custom columns) and it will then launch you to this ...


Only top voted, non community-wiki answers of a minimum length are eligible