Category: Web Development
Some GrapesJS Editor Customization Tips
GrapesJS is an open-source, Web Builder Framework to build HTML templates without any knowledge of coding. Some tips for customizing GrapesJS Editor: 1. To add custom blocks in block manager. Add this code to block manager json with other blocks:
CSS | Some good practices
Below are some CSS best practices that every developer and designer should follow to write better code. Reset user agent stylesheet or default styling of the browser : There are default CSS properties in website pages that come from “user
Add floating buttons with simple HTML and CSS
Add float button with CSS and html without using any external library with on hover show/hide effect. Mostly people use third party plugins or complex and unnecessary long css to add floating buttons, but we can create the same button
Document Spring based Restful API using Swagger
Swagger is a very powerful tool to generate documentation of your Rest based web services API containing Spring annotations. You don’t need to add any type of comments to your code to generate documentation. It will pick the Spring annotations
Postgres | Function to remove HTML tags from text
Problem: How to create a function in Postgres that will remove HTML tags from a piece of text? Solution: Create function in Postgres : CREATE OR REPLACE FUNCTION strip_tags(TEXT) RETURNS TEXT AS $$ SELECT regexp_replace($1, ‘]*>’, ”, ‘g’) $$ LANGUAGE
Dynamic CSS | How to start your project in SCSS
Before understanding how to maintain or start a project in SCSS we should understand what is SCSS and why it is used? SCSS is a special type of file for SASS, a program written in Ruby that assembles CSS style
JQuery | Draggable conflict with Contenteditable
JQuery Draggable function conflict with Contenteditable Dom attribute I am creating HTML editor in which I have the requirement to add an editable and draggable div. I have applied both the properties to the div: draggable and Contenteditable, but only
Wordprerss | Upload SVG or other files in Media Library
In WordPress, by default svg type of files are not permitted to upload. So in order to upload the SVG files to WordPress media library, we will need to add following code to child theme’s functions.php file: //To allow svg
Asp.NET | Adding New table Mapping to .edmx file manually
Asp.NET: Adding New table Mapping to Existing entity framework Designer .edmx manually from Xml View As we know that .edmx designer entity framework mapping is generated either from ‘Database First Approach’ or from ‘Model First Approach’ (in case ‘Code First
