bower_components/tinymce/plugins/fullpage/plugin.js
Function dataToHtml
has 153 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function dataToHtml(data) {
var headerFragment, headElement, html, elm, value, dom = editor.dom;
function setAttr(elm, name, value) {
elm.attr(name, value ? value : undefined);
File plugin.js
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* plugin.js
*
* Copyright, Moxiecode Systems AB
* Released under LGPL License.
Function setContent
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setContent(evt) {
var startPos, endPos, content = evt.content, headerFragment, styles = '', dom = editor.dom, elm;
if (evt.selection) {
return;
Function htmlToData
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function htmlToData() {
var headerFragment = parseHeader(), data = {}, elm, matches;
function getAttr(elm, name) {
var value = elm.attr(name);
Consider simplifying this complex logical expression. Open
Open
if (elm) {
dom.setAttribs(editor.getBody(), {
style: elm.attr('style') || '',
dir: elm.attr('dir') || '',
vLink: elm.attr('vlink') || '',