code
stringlengths
1
2.08M
language
stringclasses
1 value
tinyMCE.addI18n('en_us.umbracomacro',{ desc : 'Insert macro' });
JavaScript
tinyMCE.addI18n('sv.example_dlg',{ title : 'Detta är bar ett exempel på en titel' });
JavaScript
tinyMCE.addI18n('ja.umbracomacro',{ desc : 'マクロの挿入' });
JavaScript
tinyMCE.addI18n('en.umbracomacro',{ desc : 'Insert macro' });
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.AdvancedLinkPlugin', { init : function(e...
JavaScript
/* Functions for the advlink plugin popup */ tinyMCEPopup.requireLangPack(); var templates = { "window.open" : "window.open('${url}','${target}','${options}')" }; function preinit() { var url; if (url = tinyMCEPopup.getParam("external_link_list_url")) document.write('<script language="javascript" t...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing * * Adds auto-save capability to the TinyMCE text editor to rescue content * inadvertently lo...
JavaScript
tinyMCE.addI18n('en_us.autosave',{ restore_content: "Restore auto-saved content", warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" });
JavaScript
tinyMCE.addI18n('en.autosave',{ restore_content: "Restore auto-saved content", warning_message: "If you restore the saved content, you will lose all the content that is currently in the editor.\n\nAre you sure you want to restore the saved content?" });
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { function findParentLayer(node) { do { if (node.className && node.cla...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.Print', { init : function(ed, url) { ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { // Load plugin specific language pack tinymce.PluginManager.requireLangPa...
JavaScript
tinyMCEPopup.requireLangPack(); var ExampleDialog = { init : function() { var f = document.forms[0]; // Get the selected contents as text and place it in the input f.someval.value = tinyMCEPopup.editor.selection.getContent({format : 'text'}); f.somearg.value = tinyMCEPopup.getWindowArg('some_custom_a...
JavaScript
tinyMCE.addI18n('en.example_dlg',{ title : 'This is just a example title' });
JavaScript
tinyMCE.addI18n('en.example',{ desc : 'This is just a template button' });
JavaScript
/** * editor_plugin_src.js * * Copyright 2012, Umbraco * Released under MIT License. * * License: http://opensource.org/licenses/mit-license.html */ (function () { var Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; /** * This plugin modifies the standard TinyMCE paste, wi...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.WordCount', { block : 0, id : null, ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2012, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.VisualBlocks', { init : function(ed, url...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.ExampleDependencyPlugin', { /** * ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var rootAttributes = tinymce.explode('id,name,width,height,style,align,clas...
JavaScript
/** * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. */ function writeFlash(p) { writeEmbed( 'D27CDB6E-AE6D-11cf-96B8-444553540000', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', 'application/x-s...
JavaScript
(function() { var url; if (url = tinyMCEPopup.getParam("media_external_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); function get(id) { return document.getElementById(id); } function c...
JavaScript
tinyMCE.addI18n('es.media_dlg',{ title:"Insertar/editar medio embebido", general:"General", advanced:"Avanzado", file:"Archivo/URL", list:"Lista", size:"Dimensiones", preview:"Vista Previa", constrain_proportions:"Bloquear relaci\u00F3n de aspecto", type:"Tipo", id:"Id", name:"Nombre", class_name:"Clase", ...
JavaScript
/** * This script contains embed functions for common plugins. This scripts are complety free to use for any purpose. */ function writeFlash(p) { writeEmbed( 'D27CDB6E-AE6D-11cf-96B8-444553540000', 'http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0', 'application/x-s...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.Preview', { init : function(ed, url) { ...
JavaScript
(function () { tinymce.create('tinymce.plugins.Umbracoshortcut', { init: function (ed, url) { var t = this; var ctrlPressed = false; t.editor = ed; ed.onKeyDown.add(function (ed, e) { if (e.keyCode == 17) ctrlP...
JavaScript
var ImageDialog = { preInit: function() { var url; tinyMCEPopup.requireLangPack(); if (url = tinyMCEPopup.getParam("external_image_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(ur...
JavaScript
tinyMCE.addI18n('it.umbimage_dlg', { tab_general: 'Generale', tab_appearance: 'Aspetto', tab_advanced: 'Avanzate', general: 'Generale', title: 'Titolo', preview: 'Anteprima', constrain_proportions: 'Vincola proporzioni', langdir: 'Direzione lingua', langcode: 'Codice lingua...
JavaScript
tinyMCE.addI18n('en_us.umbimage_dlg', { tab_general: 'General', tab_appearance: 'Appearance', tab_advanced: 'Advanced', general: 'General', title: 'Title', preview: 'Preview', constrain_proportions: 'Constrain proportions', langdir: 'Language direction', langcode: 'Language...
JavaScript
tinyMCE.addI18n('en.umbimage_dlg', { tab_general: 'General', tab_appearance: 'Appearance', tab_advanced: 'Advanced', general: 'General', title: 'Title', preview: 'Preview', constrain_proportions: 'Constrain proportions', langdir: 'Language direction', langcode: 'Language co...
JavaScript
tinyMCE.addI18n('ja.umbimage_dlg', { tab_general: '一般', tab_appearance: '表示', tab_advanced: '高度な設定', general: '一般', title: 'タイトル', preview: 'プレビュー', constrain_proportions: '縦横比の維持', langdir: '文章の方向', langcode: '言語コード', long_desc: '詳細な説明のリンク', style: 'スタイル', c...
JavaScript
tinyMCE.addI18n('zh.umbimage_dlg', { tab_general: '普通', tab_appearance: '外观', tab_advanced: '高级', general: '普通', title: '标题', preview: '预览', constrain_proportions: '约束比例', langdir: '语言书写方向', langcode: '语言代码', long_desc: '长原文链接', style: '样式', classes: '类', ...
JavaScript
tinyMCE.addI18n('ru.umbimage_dlg', { tab_general: 'Общее', tab_appearance: 'Вид', tab_advanced: 'Дополнительно', general: 'Общие свойства', title: 'Заголовок', preview: 'Предпросмотр', constrain_proportions: 'Сохранять пропорции', langdir: 'Направление языка', langcode: 'Ко...
JavaScript
tinyMCE.addI18n('he.umbimage_dlg', { tab_general: 'General', tab_appearance: 'Appearance', tab_advanced: 'Advanced', general: 'General', title: 'Title', preview: 'Preview', constrain_proportions: 'Constrain proportions', langdir: 'Language direction', langcode: 'Language co...
JavaScript
tinyMCE.addI18n('sv.umbimage_dlg', { tab_general: 'Generellt', tab_appearance: 'Utseende', tab_advanced: 'Avancerat', general: 'Generellt', title: 'Titel', preview: 'Förhandsgranska', constrain_proportions: 'Bibehåll proportioner', langdir: 'Språkdirektion', langcode: 'Språ...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { var TreeWalker = tinymce.dom.TreeWalker; var externalName = 'contentedita...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.VisualChars', { init : function(ed, url)...
JavaScript
/** * editor_plugin_src.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ (function() { tinymce.create('tinymce.plugins.XHTMLXtrasPlugin', { init : function(ed,...
JavaScript
/** * element_common.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ tinyMCEPopup.requireLangPack(); function initCommonAttributes(elm) { var formObj = docume...
JavaScript
/** * abbr.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('abbr'); if (SXE.currentAction == "update") { SXE.showRem...
JavaScript
/** * cite.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('cite'); if (SXE.currentAction == "update") { SXE.showRem...
JavaScript
/** * del.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('del'); if (SXE.currentAction == "update") { setFormValue(...
JavaScript
/** * ins.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('ins'); if (SXE.currentAction == "update") { setFormValue(...
JavaScript
/** * acronym.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { SXE.initElementDialog('acronym'); if (SXE.currentAction == "update") { SXE.s...
JavaScript
/** * attributes.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function init() { tinyMCEPopup.resizeToInnerSize(); var inst = tinyMCEPopup.editor; var dom ...
JavaScript
/** * validate.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ /** // String validation: if (!Validator.isEmail('myemail')) alert('Invalid email.'); /...
JavaScript
/** * mctabs.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ function MCTabs() { this.settings = []; this.onChange = tinyMCEPopup.editor.windowManager.createIn...
JavaScript
/** * editable_selects.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ var TinyMCE_EditableSelects = { editSelectElm : null, init : function() { var nl = ...
JavaScript
/** * form_utils.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ var themeBaseURL = tinyMCEPopup.editor.baseURI.toAbsolute('themes/' + tinyMCEPopup.getParam("theme...
JavaScript
function resizePanel(PanelName, hasMenu, redoOnResize) { var clientHeight = jQuery(window).height(); var clientWidth = jQuery(window).width(); if (top.document.location == document.location) resizePanelTo(PanelName, hasMenu, clientWidth - 12, clientHeight - 20); else resizePanelT...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Dialogs"); (function ($) { Umbraco.Dialogs.EditMacro = base2.Base.extend({ /// <summary>Defines the EditMacro class to controll the UI interaction and code insertion for the macro syntax for the code editor</summary> //private methods/variables ...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Dialogs"); (function($) { Umbraco.Dialogs.UmbracoField = base2.Base.extend({ //private methods/variables _opts: null, // Constructor constructor: function (opts) { // Merge options w...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Dialogs"); (function ($) { Umbraco.Dialogs.SortDialog = base2.Base.extend({ //private methods/variables _opts: null, _setupTableSorter: function () { //adds a custom sorter to the tablesorter based on the current cultures date...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Dialogs"); (function ($) { // register AssignDomain dialog Umbraco.Dialogs.AssignDomain2 = base2.Base.extend({ _opts: null, _isRepeated: function (element) { var inputs = $('#form1 input.domain'); var ...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Dialogs"); (function ($) { Umbraco.Dialogs.PublishDialog = base2.Base.extend({ //private methods/variables _opts: null, _koViewModel: null, // Constructor constructor: function () { }, ...
JavaScript
var activeDragId = ""; function expandCollapse(theId) { var edit = document.getElementById("edit" + theId); if (edit.style.display == 'none') { edit.style.display = 'block'; document.getElementById("desc" + theId).style.display = 'none'; } else { edit.style.display = ...
JavaScript
var step = 8; var padding = 10; function progressBarUpdate(id, percent) { var total = document.getElementById("progressBar" + id).style.width; total = Math.round(total.substring(0, total.length-2))-padding; var onePercent = total / 100; var progress = Math.round(onePercent*percent); if (progress % step =...
JavaScript
/*! * jQuery contextMenu - Plugin for simple contextMenu handling * * Version: 1.5.22 * * Authors: Rodney Rehm, Addy Osmani (patches for FF) * Web: http://medialize.github.com/jQuery-contextMenu/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * GPL v3 http://open...
JavaScript
/*! Copyright (c) 2010 Brandon Aaron (http://brandonaaron.net) * Licensed under the MIT License (LICENSE.txt). * * Thanks to: http://adomas.org/javascript-mouse-wheel/ for some pointers. * Thanks to: Mathias Bank(http://www.mathias-bank.de) for a scope bug fix. * * Version: 3.0.3-pre * * Requires: 1.2....
JavaScript
/// <reference path="/umbraco_client/Application/NamespaceManager.js" /> Umbraco.Sys.registerNamespace("Umbraco.Controls.CodeEditor"); (function($) { Umbraco.Controls.CodeEditor.UmbracoEditor = function(isSimpleEditor, controlId) { //initialize var _isSimpleEditor = isSimpleEditor; ...
JavaScript
function resizeTextArea(textEditor, offsetX, offsetY) { var clientHeight = getViewportHeight(); var clientWidth = getViewportWidth(); if (textEditor != null) { // textEditor.style.width = (clientWidth - offsetX) + "px"; textEditor.style.height = (clientHeight - getY(textEditor) - offse...
JavaScript
/*! * jQuery UI Timepicker 0.2.1 * * Copyright (c) 2009 Martin Milesich (http://milesich.com/) * * Some parts are * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) * * $Id: timepicker.js 28 2009-08-11 20:31:23Z majlo $ * * Depends: * ui.core.js * ui.datepicker.js * ui.slider.js */ (functio...
JavaScript
(function($) { $.fn.umbDateTimePicker = function(showTime, chooseDateTxt, noDateTxt, removeDateTxt) { return $(this).each(function() { //create the date/time picker $(this).datepicker({ duration: "", showTime: showTime, constr...
JavaScript
/* * Class: fileUploader * Use: Upload multiple files using jquery * Author: Matt Brailsford * Version: 1.0 */ (function ($, window, document, undefined) { $.event.props.push('dataTransfer'); var defaultOptions = { autoUpload: false, limit: false, allowedExtension: 'jpg|...
JavaScript
/// <reference path="/umbraco_client/Application/NamespaceManager.js" /> /// <reference path="UmbracoUtils.js" /> /// <reference path="/umbraco_client/modal/modal.js" /> /// <reference path="language.aspx" /> /// <reference name="MicrosoftAjax.js"/> Umbraco.Sys.registerNamespace("Umbraco.Application"); Umbra...
JavaScript
/// <reference path="/umbraco_client/Application/NamespaceManager.js" /> Umbraco.Sys.registerNamespace("Umbraco.Utils"); Umbraco.Utils.generateRandom = function() { /// <summary>Returns a random integer for use with URLs</summary> day = new Date() z = day.getTime() y = (z - (parseInt(z / 1000...
JavaScript
/// <reference path="/umbraco_client/Application/NamespaceManager.js" /> /// <reference path="/umbraco_client/Application/HistoryManager.js" /> /// <reference path="/umbraco_client/ui/jquery.js" /> /// <reference path="/umbraco_client/Tree/UmbracoTree.js" /> /// <reference name="MicrosoftAjax.js"/> Umbraco.Sys....
JavaScript
(function($) { $.fn.VerticalAlign = function(opts) { return this.each(function() { var top = (($(this).parent().height() - $(this).height()) / 2); $(this).css('margin-top', top); }); }; })(jQuery);
JavaScript
/* * jQuery Autocomplete plugin 1.1 * * Copyright (c) 2009 Jörn Zaefferer * * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * * Revision: $Id: jquery.autocomplete.js 15 2009-08-22 10:30:27Z joern.zaefferer $ */ ; (functio...
JavaScript
//used for live editing to invoke no conflict after jquery has loaded with lazy loading //alert("jquery.noConflict: " + jQuery.noConflict); jQuery.noConflict();
JavaScript
/*! * jQuery idleTimer plugin * version 0.9.100511 * by Paul Irish. * http://github.com/paulirish/yui-misc/tree/ * MIT license * adapted from YUI idle timer by nzakas: * http://github.com/nzakas/yui-misc/ */ /* * Copyright (c) 2009 Nicholas C. Zakas * * Permission is hereby granted, free of charge...
JavaScript
/** * Cookie plugin * * Copyright (c) 2006 Klaus Hartl (stilbuero.de) * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html * */ /** * Create a cookie with the given name and value and other optional parameters. ...
JavaScript
/* * jQuery Hotkeys Plugin * Copyright 2010, John Resig * Dual licensed under the MIT or GPL Version 2 licenses. * * Based upon the plugin by Tzury Bar Yochay: * http://github.com/tzuryby/hotkeys * * Original idea by: * Binny V A, http://www.openjs.com/scripts/events/keyboard_shortcuts/ */ (functi...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Utils"); Umbraco.Utils.UrlEncoder = { // public method for url encoding encode: function(string) { return escape(this._utf8_encode(string)); }, // public method for url decoding decode: function(string) { return this._utf8_decode(...
JavaScript
if (typeof Umbraco == 'undefined') var Umbraco = {}; if (!Umbraco.Sys) Umbraco.Sys = {}; Umbraco.Sys.registerNamespace = function(namespace) { /// <summary> /// Used to easily register namespaces for classes without doing the syntax listed on line 1/2 for each class. /// Pretty much the same as ASP....
JavaScript
/// <reference path="/umbraco_client/Application/NamespaceManager.js" /> /// <reference name="MicrosoftAjax.js"/> /// <reference path="/umbraco_client/Application/JQuery/jquery.ba-bbq.min.js" /> Umbraco.Sys.registerNamespace("Umbraco.Controls"); (function($) { Umbraco.Controls.HistoryManager = function(...
JavaScript
// // password_strength_plugin.js // Copyright (c) 2009 myPocket technologies (www.mypocket-technologies.com) // This program is free software: you can redistribute it and/or modify // it under the terms of the GNU General Public License as published by // the Free Software Foundation, either version 3 of the ...
JavaScript
/* * Jeditable - jQuery in place edit plugin * * Copyright (c) 2006-2009 Mika Tuupola, Dylan Verheul * * Licensed under the MIT license: * http://www.opensource.org/licenses/mit-license.php * * Project home: * http://www.appelsiini.net/projects/jeditable * * Based on editable by Dylan Verheul <dylan_at_...
JavaScript
/** * * Color picker * Author: Stefan Petre www.eyecon.ro * * Dual licensed under the MIT and GPL licenses * */ (function ($) { var ColorPicker = function () { var ids = {}, inAction, charMin = 65, visible, tpl = '<div class="colorpicker"><div class="colorpicker_color"><div><di...
JavaScript
/* jQuery Tags Input Plugin 1.3.3 Copyright (c) 2011 XOXCO, Inc Documentation for this plugin lives here: http://xoxco.com/clickable/jquery-tags-input Licensed under the MIT license: http://www.opensource.org/licenses/mit-license.php ben@xoxco.com */ (function($) { var delimiter = n...
JavaScript
Umbraco.Sys.registerNamespace("Umbraco.Dashboards"); (function ($) { Umbraco.Dashboards.ExamineManagement = base2.Base.extend({ //private methods/variables _opts: null, _koViewModel: null, _mapSearcherModelProperties: function (indexerModel) { var self = t...
JavaScript
(function($) { $.extend({ tablesorter: new function() { var parsers = [], widgets = []; this.defaults = { cssHeader: "header", cssAsc: "headerSortUp", cssDesc: "headerSortDown", sortInitialOrder: "asc", sortMultiSortKey: "shiftKey", sortForce: null, sortAppend: null, textExtract...
JavaScript
// // @author daemach // daemach = function() { this.name = "Daemach's Toolbox"; this.version = "2.0"; this.debug = false; // load extensions this.cw = new colorWeasel(this); this.cm = new cssMonkey(this); }; jQuery.extend(daemach, { prototype: { log: function() {...
JavaScript
// // TableDnD plug-in for JQuery, allows you to drag and drop table rows // You can set up various options to control how the system will work // Copyright (c) Denis Howlett <denish@isocra.com> // Licensed like jQuery, see http://docs.jquery.com/License. // // Configuration options: // // onDragStyle // ...
JavaScript
/// <reference path="../Application/NamespaceManager.js" /> Umbraco.Sys.registerNamespace('Umbraco.Controls'); Umbraco.Controls.TabView = (function () { var onChangeEvents = []; var obj = { setActiveTab: function (tabviewid, tabid, tabs) { for (var i = 0; i < tabs.length; i++) { ...
JavaScript
// CodeMirror version 2.34 // All functions that need access to the editor's state live inside // the CodeMirror function. Below that, at the bottom of the file, // some utilities are defined. // CodeMirror is the only global var we claim window.CodeMirror = (function() { "use strict"; // This is the fun...
JavaScript
(function () { CodeMirror.simpleHint = function (editor, getHints) { // We want a single cursor position. if (editor.somethingSelected()) return; //don't show completion if the token is empty var tempToken = editor.getTokenAt(editor.getCursor()); if (!(/[\S]/gi.test(tem...
JavaScript
(function(){ function SearchCursor(cm, query, pos, caseFold) { this.atOccurrence = false; this.cm = cm; if (caseFold == null && typeof query == "string") caseFold = false; pos = pos ? cm.clipPos(pos) : {line: 0, ch: 0}; this.pos = {from: pos, to: pos}; // The matches method is filled in ...
JavaScript
// Utility function that allows modes to be combined. The mode given // as the base argument takes care of most of the normal mode // functionality, but a second (typically simple) mode is used, which // can override the style of text. Both modes get to parse all of the // text, but when both assign a non-null styl...
JavaScript
CodeMirror.multiplexingMode = function(outer /*, others */) { // Others should be {open, close, mode [, delimStyle]} objects var others = Array.prototype.slice.call(arguments, 1); var n_others = others.length; function indexOf(string, pattern, from) { if (typeof pattern == "string") return string.ind...
JavaScript
(function() { CodeMirror.simpleHint = function(editor, getHints, givenOptions) { // Determine effective options based on given values and defaults. var options = {}, defaults = CodeMirror.simpleHint.defaults; for (var opt in defaults) if (defaults.hasOwnProperty(opt)) options[opt] = (g...
JavaScript
// Define search commands. Depends on dialog.js or another // implementation of the openDialog method. // Replace works a little oddly -- it will do the replace on the next // Ctrl-G (or whatever is bound to findNext) press. You prevent a // replace by making sure the match is no longer selected when hitting // ...
JavaScript
// Open simple dialogs on top of an editor. Relies on dialog.css. (function() { function dialogDiv(cm, template) { var wrap = cm.getWrapperElement(); var dialog = wrap.insertBefore(document.createElement("div"), wrap.firstChild); dialog.className = "CodeMirror-dialog"; dialog.innerHTML = '<div...
JavaScript
(function () { function forEach(arr, f) { for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]); } function arrayContains(arr, item) { if (!Array.prototype.indexOf) { var i = arr.length; while (i--) { if (arr[i] === item) { return true; } } ...
JavaScript
// ============== Formatting extensions ============================ (function() { // Define extensions for a few modes CodeMirror.extendMode("css", { commentStart: "/*", commentEnd: "*/", wordWrapChars: [";", "\\{", "\\}"], autoFormatLineBreaks: function (text) { return text.replace(n...
JavaScript
(function () { function forEach(arr, f) { for (var i = 0, e = arr.length; i < e; ++i) f(arr[i]); } function arrayContains(arr, item) { if (!Array.prototype.indexOf) { var i = arr.length; while (i--) { if (arr[i] === item) { return true; } } ...
JavaScript
(function() { CodeMirror.xmlHints = []; CodeMirror.xmlHint = function(cm, simbol) { if(simbol.length > 0) { var cursor = cm.getCursor(); cm.replaceSelection(simbol); cursor = {line: cursor.line, ch: cursor.ch + 1}; cm.setCursor(cursor); ...
JavaScript
(function() { CodeMirror.razorHints['@'] = [ 'inherits', 'Library', 'Model', 'Parameter', 'using', 'Dictionary', ['if/else', 'if(SomeCondition){\n\n}else{\n\n}\n'], ['if', 'if(SomeCondition){\...
JavaScript
// the tagRangeFinder function is // Copyright (C) 2011 by Daniel Glazman <daniel@glazman.org> // released under the MIT license (../../LICENSE) like the rest of CodeMirror CodeMirror.tagRangeFinder = function(cm, line, hideEnd) { var nameStartChar = "A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-...
JavaScript
// Define match-highlighter commands. Depends on searchcursor.js // Use by attaching the following function call to the onCursorActivity event: //myCodeMirror.matchHighlight(minChars); // And including a special span.CodeMirror-matchhighlight css class (also optionally a separate one for .CodeMirror-focused -- see ...
JavaScript