app/assets/javascripts/directives/openclass.wysihtml5.editor.js
Function factory
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
.directive('wysihtml5', ['$timeout', 'eventConstants', function factory($timeout, eventConstants) {
var directive = {
restrict: 'C',
require: '?ngModel',
Function link
has 47 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
link: function (scope, element, attrs, ngModelCtrl) {
var editor = new wysihtml5.Editor(element.get(0), {
parserRules: wysihtml5ParserRules,
toolbar: element.siblings('.toolbar').get(0),