Showing 48 of 145 total issues
File epiceditor.js
has 1922 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* EpicEditor - An Embeddable JavaScript Markdown Editor (https://github.com/OscarGodson/EpicEditor)
* Copyright (c) 2011-2012, Oscar Godson. (MIT Licensed)
*/
File marked.js
has 901 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
/**
* marked - a markdown parser
* Copyright (c) 2011-2014, Christopher Jeffrey. (MIT Licensed)
* https://github.com/chjj/marked
*/
Function load
has 422 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EpicEditor.prototype.load = function (callback) {
// Get out early if it's already loaded
if (this.is('loaded')) { return this; }
Function token
has 213 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Lexer.prototype.token = function(src, top, bq) {
var src = src.replace(/^ +$/gm, '')
, next
, loose
, cap
Function token
has 201 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Lexer.prototype.token = function(src, top) {
var src = src.replace(/^ +$/gm, '')
, next
, loose
, cap
Function EpicEditor
has 132 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function EpicEditor(options) {
// Default settings will be overwritten/extended by options arg
var self = this
, opts = options || {}
, _defaultFileSchema
Function tok
has 128 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Parser.prototype.tok = function() {
switch (this.token.type) {
case 'space': {
return '';
}
Function output
has 112 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
InlineLexer.prototype.output = function(src) {
var out = ''
, link
, text
, href
Function output
has 105 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
InlineLexer.prototype.output = function(src) {
var out = ''
, link
, text
, href
Function tok
has 92 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
Parser.prototype.tok = function() {
switch (this.token.type) {
case 'space': {
return '';
}
Function getContentEditor
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
OratorWiki.getContentEditor = function(pContentHash, fComplete)
{
var tmpComplete = (typeof(fComplete) === 'function') ? fComplete : function(){};
var tmpContentHash = (typeof(pContentHash) === 'string') ? pContentHash : 'TableOfContents';
Function _goFullscreen
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self._goFullscreen = function (el) {
this._fixScrollbars('auto');
if (self.is('fullscreen')) {
self._exitFullscreen(el);
Function marked
has 67 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function marked(src, opt, callback) {
if (callback || typeof opt === 'function') {
if (!callback) {
callback = opt;
opt = null;
Function oratorWikiListWikiContent
has 58 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var oratorWikiListWikiContent = function(pOrator, fCallBack)
{
var tmpCallback = (typeof(fCallback) === 'function') ? fCallback : function() {};
pOrator.webServer.post
Function _autogrow
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EpicEditor.prototype._autogrow = function () {
var editorHeight
, newHeight
, minHeight
, maxHeight
Function _mergeObjs
has 41 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function _mergeObjs() {
// copy reference to target object
var target = arguments[0] || {}
, i = 1
, length = arguments.length
Function save
has 37 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EpicEditor.prototype.save = function (_isPreviewDraft, _isAuto) {
var self = this
, storage
, isUpdate = false
, file = self.settings.file.name
Function OratorWiki
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var OratorWiki = function()
{
function createNew(pOrator)
{
// If a valid Orator object isn't passed in, return a constructor
Function _exitFullscreen
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
self._exitFullscreen = function (el) {
this._fixScrollbars();
_saveStyleState(self.element, 'apply', _elementStates.element);
_saveStyleState(self.iframeElement, 'apply', _elementStates.iframeElement);
Function reflow
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
EpicEditor.prototype.reflow = function (kind, callback) {
var self = this
, widthDiff = _outerWidth(self.element) - self.element.offsetWidth
, heightDiff = _outerHeight(self.element) - self.element.offsetHeight
, elements = [self.iframeElement, self.editorIframe, self.previewerIframe]