code
stringlengths
1
2.08M
language
stringclasses
1 value
/* * Flexigrid for jQuery - v1.1 * * Copyright (c) 2008 Paulo P. Marinas (code.google.com/p/flexigrid/) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * */ (function ($) { /* * jQuery 1.9 support. browser object has been removed in 1.9 */ var browser = $....
JavaScript
// script.aculo.us unittest.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 // Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // (c) 2005, 2006 Jon Tirsen (http://www.tirsen.com) // (c) 2005, 2006 Michael Schuerig (http://www.schuerig.de/michael/) // // script.aculo.us ...
JavaScript
// script.aculo.us slider.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 // Copyright (c) 2005, 2006 Marty Haught, Thomas Fuchs // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ if(!Control) var Control = {}; Cont...
JavaScript
// script.aculo.us scriptaculous.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 // Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // Permission is hereby granted, free of charge, to any person obtaining // a copy of this software and associated documentation files (the // "Software"),...
JavaScript
// script.aculo.us builder.js v1.7.0, Fri Jan 19 19:16:36 CET 2007 // Copyright (c) 2005, 2006 Thomas Fuchs (http://script.aculo.us, http://mir.aculo.us) // // script.aculo.us is freely distributable under the terms of an MIT-style license. // For details, see the script.aculo.us web site: http://script.aculo.us/ var...
JavaScript
/////////////////////////////////////////////// // 作者: Chen Minqiang<ptpt52@gmail.com> // 时间: Monday, July 13 2009 ////////////////////////////////////////////// /////////////////////////////////////////////// // // 用法,页面加载完成后调用 Menu.load(id) 即可, id 为菜单最外层的 div 的 id // // 下面是用户定义函数说明 // // 注意: 以下的用户定义函数一般...
JavaScript
Menu.load("menu"); cf=Dom.$("contentFrame"); lp=Dom.$("menu"); function fixIframeHeight(){ var RH=cf.contentWindow.document.body.scrollHeight; if(document.all)RH=cf.contentWindow.document.body.scrollHeight; //IE 太没道理了,居然用这个 cf.style.height=(lp.offsetHeight>=RH?lp.offsetHeight:RH)+'px'; } Menu.onclick=function(a,...
JavaScript
var WebjxCom = (document.createElement() && document.getElementsByTagName()); window.onload = pinballEffect; function pinballEffect() { if (!WebjxCom) return; var allElements = document.getElementsByTagName('div'); var originalBackgrounds=new Array(); for (var i=0; i<allElements.length; i++) ...
JavaScript
function reinitIframe(){ var iframe = document.getElementById("contentFrame"); try{ var bHeight = iframe.contentWindow.document.body.scrollHeight; var dHeight = iframe.contentWindow.document.documentElement.scrollHeight; var height = Math.max(bHeight, dHeight); iframe.height = height; }catch (ex){} } window.s...
JavaScript
/* Default class modification */ $.extend( $.fn.dataTableExt.oStdClasses, { "sWrapper": "dataTables_wrapper form-inline" } ); /* API method to get paging information */ $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings ) { return { "iStart": oSettings._iDisplayStart, "iEnd": ...
JavaScript
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S ALL JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ !function ($) { $(function(){ // Disable certain links in docs $('section [href^=#]').click(function (e) { e.preventDefault() }) // make code pretty ...
JavaScript
/* Default class modification */ $.extend( $.fn.dataTableExt.oStdClasses, { "sWrapper": "dataTables_wrapper form-inline" } ); /* API method to get paging information */ $.fn.dataTableExt.oApi.fnPagingInfo = function ( oSettings ) { return { "iStart": oSettings._iDisplayStart, "iEnd": oSettings....
JavaScript
// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT // IT'S ALL JUST JUNK FOR OUR DOCS! // ++++++++++++++++++++++++++++++++++++++++++ !function ($) { $(function(){ // Disable certain links in docs $('section [href^=#]').click(function (e) { e.preventDefault() }) // make code pretty window.pret...
JavaScript
var orderDetail = { extract: function() { openCenterWindow({ url:projectName+'/productManage/product/listProductForOrder.jsp', width:1000, height:600 }); } };
JavaScript
var arriveOrder = { add : function(id) { new WindowPanel( { id : 'saveArriveOrder', title : '生成', width : 650, height : 400, closeConfirm : true, maximizable : false, html : '<iframe name="arriveOrderSaveFrame" id="arriveOrderSaveFrame" src="' + projectName ...
JavaScript
var inOrder = { add : function(flag,id) { var html = ""; if(flag == 0) { html = '<iframe name="inOrderSaveFrame" id="inOrderSaveFrame" src="' + projectName + '/stock/inOrder/save.t4m?' + getFlushParam('saveInOrder') + '&arriveOrderId=' + id + '" frameborder="0" scrolling="auto"...
JavaScript
var outOrder = { save : function(id) { new WindowPanel({ id: 'saveOutOrder', title: '保存出库单', width: 650, height: 400, closeConfirm : true, maximizable: false, html : '<iframe name="outOrderSaveFrame" id="outOrderSave...
JavaScript
var supplier = { add : function() { new WindowPanel({ id: 'saveSupplier', title: '新增供应商信息', width: 620, height: 420, closeConfirm : true, maximizable: false, html : '<iframe name="supplierSaveFrame" id="supplierSaveFrame" src="'+projectName+'/purchase/supplier/to...
JavaScript
var stock = { choose : function() { openCenterWindow({ url:projectName+'/product/stock/choose.t4m', width:850, height:500 }); }, chooseBack : function() { openCenterWindow({ url:projectName+'/product/stock/chooseBack.t4m', width:850, height:500 ...
JavaScript
var salesOrder = { add : function() { new WindowPanel( { id : 'saveSalesOrder', title : '新增销售订单', width : 710, height : 440, closeConfirm : true, maximizable : false, html : '<iframe name="salesOrderSaveFrame" id="salesOrderSaveFrame" src="' + projectName ...
JavaScript
var productTypeFunctions = { openSaveProductTypeWindow : function(productTypeId) { new WindowPanel( { id : 'saveProductType', title : '添加货品类别', width : 370, height : 220, closeConfirm : true, html : '<iframe name="productTypeSaveFrame" id="productTypeSaveFrame" src="' ...
JavaScript
var stockFunctions = { openSaveWindow : function(){ new WindowPanel({ id: 'saveStock', title: '添加库存', width: 500, height: 400, maximizable: false, closeConfirm : true, html : '<iframe name="stockSaveFrame" id="stockSaveFrame" src="' +projectName+'/product...
JavaScript
var wareHouseFunctions = { openSaveWindow : function() { new WindowPanel( { id : 'saveWareHouse', title : '添加仓库', width : 600, height : 300, closeConfirm : true, html : '<iframe name="wareHouseSaveFrame" id="wareHouseSaveFrame" src="' + projectName + '/produ...
JavaScript
var productFunctions = { openSaveProductWindow : function(productTypeId) { new WindowPanel( { id : 'saveProduct', title : '添加货品信息', width : 550, height : 350, closeConfirm : true, html : '<iframe name="productSaveFrame" id="productSaveFrame" src="' + projectName ...
JavaScript
var productionOrder = { save : function() { new WindowPanel({ id: 'save', title: '保存', width: 650, height: 400, closeConfirm : true, maximizable: false, html : '<iframe name="saveFrame" id="saveFrame" src="'+projectN...
JavaScript
var purchaseOrder = { add : function() { new WindowPanel( { id : 'savePurchaseOrder', title : '新增采购订单', width : 710, height : 440, closeConfirm : true, maximizable : false, html : '<iframe name="purchaseOrderSaveFrame" id="purchaseOrderSaveFrame" src="' + proj...
JavaScript
var customer = { add : function() { new WindowPanel({ id: 'saveCustomer', title: '新增客户信息', width: 620, height: 420, closeConfirm : true, maximizable: false, html : '<iframe name="customerSaveFrame" id="customerSaveFrame" src="'+projectName+'/sales/customer/toSave...
JavaScript
var dictionaryFunctions = { openSaveDictionaryWindow : function(superId){ new WindowPanel({ id: 'saveDictionary', title: '添加字典', width: 323, height: 175, closeConfirm : true, html : '<iframe name="dictionarySaveFrame" id="dictionarySaveFrame" src="'+projectName+'/system...
JavaScript
var backPurchase = { save : function() { new WindowPanel({ id: 'saveBackPurchase', title: '采购退货单', width: 800, height: 400, closeConfirm : true, maximizable: false, html : '<iframe name="backPurchaseS...
JavaScript
var blog = { add : function() { new WindowPanel({ id: 'saveBlog', title: '添加日志', width: 650, height: 400, closeConfirm : true, html : '<iframe name="blogSaveFrame" id="blogSaveFrame" src="'+projectName+'/daily/blog/toSave.t4m?'+getFlushParam('saveBlog')+'" frameborder="...
JavaScript
var salesBackOrder = { add : function() { new WindowPanel( { id : 'saveSalesBackOrder', title : '新增销售退单', width : 640, height : 390, closeConfirm : true, maximizable : false, html : '<iframe name="salesBackOrderSaveFrame" id="salesBackOrderSaveFrame" src="' + ...
JavaScript
var Toolbar = function(config){ this.id = this.getId(); this.items = config.items || []; this.border = config.border || 'bottom'; this.renderTo = config.renderTo; this.icon = config.icon; this.render = typeof this.renderTo == 'string' ? $('#' + this.renderTo) : $('body'); this._init(); }; Toolbar.AUTO...
JavaScript
/** * 供应商选择控件 */ CustomerSelect = function(config) { this.url = config.url; this.width = config.width; this.windowWidth = config.windowWidth || 500; this.windowHeight = config.windowHeight || 300; this.avgWidth = (this.windowWidth - 89) / 3; this.inputId = config.inputId; this.windowTitle = config.ti...
JavaScript
/** * 上传控件类 * Marker.King */ Upload = function(config){ this.renderTo = config.renderTo || $(document.body); this.title = config.title || '添加附件'; this.multiple = config.multiple; this.renamable = config.renamable; this.include = config.include; this.allowString = config.allowString; this.ren...
JavaScript
RadioSelect = function(config) { this.boxName = config.boxName; this.handler = config.handler; this.init(); } RadioSelect.prototype = { init : function(){ //选择控件实体 var radioSelectEntity = this; //tr集合 this.trs = []; //获得所有namebox this.boxes = $('input:radio[name="'+this.b...
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
/** * 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 = []; }; MCTabs.prototype.init = function(settings) { this.s...
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
/** * 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
tinyMCE.addI18n({en:{ common:{ edit_confirm:"Do you want to use the WYSIWYG mode for this textarea?", apply:"Apply", insert:"Insert", update:"Update", cancel:"Cancel", close:"Close", browse:"Browse", class_name:"Class", not_set:"-- Not set --", clipboard_msg:"Copy/Cut/Paste is not available in Mozilla and Fi...
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(url) + '"></script>'); }, ...
JavaScript
tinyMCE.addI18n('en.advimage_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 code", long_desc:"Long description link", style...
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.AdvancedImagePlugin', { init : function(...
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.PageBreakPlugin', { init : function(ed, ...
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) { var t = th...
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() { var each = tinymce.each; tinymce.create('tinymce.plugins.AdvListPlugin'...
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.Layer', { 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.IESpell', { 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() { var DOM = tinymce.DOM, Element = tinymce.dom.Element, Event = tinymce.dom.E...
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 Event = tinymce.dom.Event, each = tinymce.each, DOM = tinymce.DOM; ...
JavaScript
tinyMCEPopup.requireLangPack(); var oldWidth, oldHeight, ed, 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 init() { var pl = "", f,...
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
tinyMCE.addI18n('en.media_dlg',{ title:"Insert / edit embedded media", general:"General", advanced:"Advanced", file:"File/URL", list:"List", size:"Dimensions", preview:"Preview", constrain_proportions:"Constrain proportions", type:"Type", id:"Id", name:"Name", class_name:"Class", vspace:"V-Space", hspace:...
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 each = tinymce.each; tinymce.create('tinymce.plugins.MediaPlugin', ...
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.BBCodePlugin', { 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() { var DOM = tinymce.DOM; tinymce.create('tinymce.plugins.FullScreenPlugin...
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.Save', { init : function(ed, url) { ...
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
tinyMCE.addI18n('en.advlink_dlg',{ title:"Insert/edit link", url:"Link URL", target:"Target", titlefield:"Title", is_email:"The URL you entered seems to be an email address, do you want to add the required mailto: prefix?", is_external:"The URL you entered seems to external link, do you want to add the required h...
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
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 * * Adds auto-save capability to the TinyMCE text editor to rescue content * inadvertently lo...
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.InsertDateTime', { init : function(ed, u...
JavaScript
tinyMCEPopup.requireLangPack(); var EmotionsDialog = { init : function(ed) { tinyMCEPopup.resizeToInnerSize(); }, insert : function(file, title) { var ed = tinyMCEPopup.editor, dom = ed.dom; tinyMCEPopup.execCommand('mceInsertContent', false, dom.createHTML('img', { src : tinyMCEPopup.getWindo...
JavaScript
tinyMCE.addI18n('en.emotions_dlg',{ title:"Insert emotion", desc:"Emotions", cool:"Cool", cry:"Cry", embarassed:"Embarassed", foot_in_mouth:"Foot in mouth", frown:"Frown", innocent:"Innocent", kiss:"Kiss", laughing:"Laughing", money_mouth:"Money mouth", sealed:"Sealed", smile:"Smile", surprised:"Surprised...
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) { tinymce.create('tinymce.plugins.EmotionsPlugin', { init : functio...
JavaScript
tinyMCEPopup.requireLangPack(); var PasteTextDialog = { init : function() { this.resize(); }, insert : function() { var h = tinyMCEPopup.dom.encode(document.getElementById('content').value), lines; // Convert linebreaks into paragraphs if (document.getElementById('linebreaks').checked) { li...
JavaScript
tinyMCEPopup.requireLangPack(); var PasteWordDialog = { init : function() { var ed = tinyMCEPopup.editor, el = document.getElementById('iframecontainer'), ifr, doc, css, cssHTML = ''; // Create iframe el.innerHTML = '<iframe id="iframe" src="javascript:\'\';" frameBorder="0" style="border: 1px solid gra...
JavaScript
tinyMCE.addI18n('en.paste_dlg',{ text_title:"Use CTRL+V on your keyboard to paste the text into the window.", text_linebreaks:"Keep linebreaks", word_title:"Use CTRL+V on your keyboard to paste the text into the window." });
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 each = tinymce.each, entities = null, defs = { paste_auto_cle...
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 Event = tinymce.dom.Event; tinymce.create('tinymce.plugins.NonEdita...
JavaScript
/** * fullpage.js * * Copyright 2009, Moxiecode Systems AB * Released under LGPL License. * * License: http://tinymce.moxiecode.com/license * Contributing: http://tinymce.moxiecode.com/contributing */ tinyMCEPopup.requireLangPack(); var doc; var defaultDocTypes = 'XHTML 1.0 Transitional=<!DO...
JavaScript
tinyMCE.addI18n('en.fullpage_dlg',{ title:"Document properties", meta_tab:"General", appearance_tab:"Appearance", advanced_tab:"Advanced", meta_props:"Meta information", langprops:"Language and encoding", meta_title:"Title", meta_keywords:"Keywords", meta_description:"Description", meta_robots:"Robots", doct...
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.FullPagePlugin', { init : function(ed, u...
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 DOM = tinymce.DOM, Event = tinymce.dom.Event, each = tinymce.each, expl...
JavaScript
var AdvHRDialog = { init : function(ed) { var dom = ed.dom, f = document.forms[0], n = ed.selection.getNode(), w; w = dom.getAttrib(n, 'width'); f.width.value = w ? parseInt(w) : (dom.getStyle('width') || ''); f.size.value = dom.getAttrib(n, 'size') || parseInt(dom.getStyle('height')) || ''; f.noshad...
JavaScript
tinyMCE.addI18n('zh.advhr_dlg',{size:"\u9ad8\u5ea6",noshade:"\u65e0\u9634\u5f71",width:"\u5bbd\u5ea6"});
JavaScript
tinyMCE.addI18n('en.advhr_dlg',{ width:"Width", size:"Height", noshade:"No shadow" });
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.AdvancedHRPlugin', { init : function(ed,...
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
/** * 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
/** * 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
/** * 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
/** * 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
/** * 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
tinyMCE.addI18n('en.xhtmlxtras_dlg',{ attribute_label_title:"Title", attribute_label_id:"ID", attribute_label_class:"Class", attribute_label_style:"Style", attribute_label_cite:"Cite", attribute_label_datetime:"Date/Time", attribute_label_langdir:"Text Direction", attribute_option_ltr:"Left to right", attribut...
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
tinyMCEPopup.requireLangPack(); var TemplateDialog = { preInit : function() { var url = tinyMCEPopup.getParam("template_external_list_url"); if (url != null) document.write('<sc'+'ript language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></sc'+'...
JavaScript
tinyMCE.addI18n('en.template_dlg',{ title:"Templates", label:"Template", desc_label:"Description", desc:"Insert predefined template content", select:"Select a template", preview:"Preview", warning:"Warning: Updating a template with a different one may cause data loss.", mdate_format:"%Y-%m-%d %H:%M:%S", cdate_...
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 each = tinymce.each; tinymce.create('tinymce.plugins.TemplatePlugin...
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.Nonbreaking', { init : function(ed, url)...
JavaScript
tinyMCEPopup.requireLangPack(); var action, orgTableWidth, orgTableHeight, dom = tinyMCEPopup.editor.dom; function insertTable() { var formObj = document.forms[0]; var inst = tinyMCEPopup.editor, dom = inst.dom; var cols = 2, rows = 2, border = 0, cellpadding = -1, cellspacing = -1, align, width, height, cl...
JavaScript
tinyMCEPopup.requireLangPack(); function init() { tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTM...
JavaScript
tinyMCEPopup.requireLangPack(); var ed; function init() { ed = tinyMCEPopup.editor; tinyMCEPopup.resizeToInnerSize(); document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table'); document.getElementById('bordercolor_pi...
JavaScript
tinyMCEPopup.requireLangPack(); var MergeCellsDialog = { init : function() { var f = document.forms[0]; f.numcols.value = tinyMCEPopup.getWindowArg('cols', 1); f.numrows.value = tinyMCEPopup.getWindowArg('rows', 1); }, merge : function() { var func, f = document.forms[0]; tinyMCEPopup.rest...
JavaScript
tinyMCE.addI18n('en.table_dlg',{ general_tab:"General", advanced_tab:"Advanced", general_props:"General properties", advanced_props:"Advanced properties", rowtype:"Row in table part", title:"Insert/Modify table", width:"Width", height:"Height", cols:"Cols", rows:"Rows", cellspacing:"Cellspacing", cellpaddin...
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) { var each = tinymce.each; // Checks if the selection/caret is at ...
JavaScript
tinyMCEPopup.requireLangPack(); var defaultFonts = "" + "Arial, Helvetica, sans-serif=Arial, Helvetica, sans-serif;" + "Times New Roman, Times, serif=Times New Roman, Times, serif;" + "Courier New, Courier, mono=Courier New, Courier, mono;" + "Times New Roman, Times, serif=Times New Roman, Times, serif;"...
JavaScript