Pasting rich text as plain text into contenteditable in angularjs is tricky to implement, but once you know how, it just peice of cake. I will be using ng-paste directive onto the contenteditable div to capture paste event. This could also be done using a directive, that we could place onto contenteditable div.
Dark themes causes strain on eyes after staring at screen for long. So, light themes are best suited for long hours of coding. One of the best light theme that i found was Soda theme for sublime. But atom editor has a better inbuild theme which is colorful and vibrant, i.e. One Light theme.
When creating a footer, we often have to create it such that it should stay at the bottom and not be fixed at the same time.
- relative (relative to document flow)
- absolute (relative to nearest ancestor)
Disclaimer: Article is for newbies of atom editor 😛 Install ‘custom title’ the settings view by searching for ‘custom title’ and installing the same. Settings -> custom-title.Settings -> template -> <%= fileName %>
- The Core (based on ECMAScript spec)
- The Browser Object Model (BOM)
- The Document Object Model (DOM)
Prototype property (prototype)This property is used to add attributes and methods to an function constructor. This property cannot be looped through as its not enumerable.
A function declared within a function forms a closure. A closure has access to the:
- variables of function it is defined in.
- variables on the global scope.
We need a way of identifying and referring to the object that we’re currently working with. When we execute a function, it gets a ‘this’ property, where ‘this’ points to the object which invokes the function. In the following example, ‘this.age’ would point to age property of ‘person’ object.