app/scripts/directives/sf-aloha-format-link.js
Function directiveConstructor
has 175 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function directiveConstructor($rootScope, $modal, $window, toaster) {
var template = [
'<div>',
' <button class="btn btn-default btn-sm" title="Add Link">',
' <i class="fa fa-link"></i>',
Function postLink
has 156 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function postLink(scope, element, attrs) {
var children,
cmdLinkEnabled,
cmdLinkSupported,
cmdUnlinkEnabled,
Function updateButtonsMode
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateButtonsMode() {
var editables,
blocks,
selection = $window.getSelection(),
testRange,