Showing 200 of 421 total issues
Function draggable
has 65 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function draggable(element, onmove, onstart, onstop) {
onmove = onmove || function () { };
onstart = onstart || function () { };
onstop = onstop || function () { };
var doc = document;
Function exec
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
exec: function( editor ) {
var sHTML,
config = editor.config,
baseTag = config.baseHref ? '<base href="' + config.baseHref + '"/>' : '',
eventData;
Function check
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
check: function () {
if (!this.enabled || this.enabling) {
return;
}
Function init
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
init : function(editor)
{
var host='latex.codecogs.com';
var http=('https:' == document.location.protocol ? 'https://' : 'http://');
Function updateCounter
has 61 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateCounter(editorInstance) {
var paragraphs = 0,
wordCount = 0,
charCount = 0,
text;
Function init
has 60 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var init = function () {
/**
* @license Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
* For licensing, see LICENSE.md or http://ckeditor.com/license
*/
Function loader
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var loader = function( pluginId, ext, allowExts, compile ) {
if ( arguments.length == 3 ) {
compile = allowExts;
allowExts = undefined;
} else if ( arguments.length == 2 ) {
Function checkLoaded
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function checkLoaded() {
var err, usingPathFallback,
waitInterval = config.waitSeconds * 1000,
//It is possible to disable the wait interval by using waitSeconds of 0.
expired = waitInterval && (context.startTime + waitInterval) < new Date().getTime(),
Function Liner
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Liner( editor, def ) {
var editable = editor.editable();
CKEDITOR.tools.extend( this, {
editor: editor,
Function onLoad
has 56 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
onLoad: function() {
CKEDITOR.addCss(
'.cke_widget_wrapper{' +
'position:relative;' +
'outline:none' +
Function stringInputToObject
has 54 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function stringInputToObject(color) {
color = color.replace(trimLeft,'').replace(trimRight, '').toLowerCase();
var named = false;
if (names[color]) {
Function copySingleWidget
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function copySingleWidget( widget, isCut ) {
var editor = widget.editor,
doc = editor.document;
// We're still handling previous copy/cut.
Function setupWidgetsLifecycleStart
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupWidgetsLifecycleStart( widgetsRepo ) {
var editor = widgetsRepo.editor,
processedWidgetOnly,
snapshotLoaded;
Function updateUI
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function updateUI() {
textInput.removeClass("sp-validation-error");
updateHelperLocations();
Function makeModuleMap
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function makeModuleMap(name, parentModuleMap, isNormalized, applyMap) {
var url, pluginModule, suffix, nameParts,
prefix = null,
parentName = parentModuleMap ? parentModuleMap.name : null,
originalName = name,
Function create__createDuration
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function create__createDuration (input, key) {
var duration = input,
// matching against regexp is expensive, do it on demand
match = null,
sign,
Function setupWidgetsLifecycleEnd
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupWidgetsLifecycleEnd( widgetsRepo ) {
var editor = widgetsRepo.editor,
downcastingSessions = {};
// Listen before htmlDP#htmlFilter is applied to cache all widgets, because we'll
Function addWidgetCommand
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function addWidgetCommand( editor, widgetDef ) {
editor.addCommand( widgetDef.name, {
exec: function( editor, commandData ) {
var focused = editor.widgets.focused;
// If a widget of the same type is focused, start editing.
Function normalize
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function normalize(name, baseName, applyMap) {
var pkgMain, mapValue, nameParts, i, j, nameSegment, lastIndex,
foundMap, foundI, foundStarMap, starI, normalizedBaseParts,
baseParts = (baseName && baseName.split('/')),
map = config.map,
Function setupMouseObserver
has 51 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function setupMouseObserver( widgetsRepo ) {
var editor = widgetsRepo.editor;
editor.on( 'contentDom', function() {
var editable = editor.editable(),