"), e.document.close() }, refresh: function (t) { var o = this; e.each(this.defaultLocalization, function (e, t) { o.localization[e] || (o.localization[e] = t) }), o._removeHandlers(), o.toolbar.addClass(o.toThemeProperty("jqx-widget-header")), o.content ? (o.widget.css("width", o.width), o.widget.css("height", o.height), o.widget.addClass(o.toThemeProperty("jqx-editor")), o.widget.addClass(o.toThemeProperty("jqx-widget")), o.widget.addClass(o.toThemeProperty("jqx-rc-all")), o.widget.addClass(o.toThemeProperty("jqx-widget-header")), o.content.addClass(o.toThemeProperty("jqx-widget-content")), o.container.addClass(o.toThemeProperty("jqx-editor-container"))) : (o.toolbarContainer.addClass(o.toThemeProperty("jqx-widget-header")), o.toolbarContainer.addClass(o.toThemeProperty("jqx-editor-toolbar-inline")), o.toolbarContainer.addClass(o.toThemeProperty("jqx-widget")), o.toolbarContainer.addClass(o.toThemeProperty("jqx-rc-all")), o.toolbarContainer.hide(), o.toolbarContainer.css("position", "absolute"), o.editor.addClass(o.toThemeProperty("jqx-editor-inline")), o.toolbarContainer.css("width", o.host.outerWidth() + "px")); var i = o.toolbarContainer.index(); if ("top" == o.toolbarPosition && 0 != i || "bottom" == o.toolbarPosition && 1 != i) switch (o.toolbarPosition) { case "bottom": o.toolbarContainer.insertAfter(o.content); break; case "top": default: o.toolbarContainer.insertBefore(o.content) } var r = o.tools; if (r !== !1) { var n = r.split(" "), a = r.split(" | "), l = function (t, i) { e.each(i, function (r, n) { var a = o.commands[this]; if (a) { if (o.createCommand) { var l = o.createCommand(this.toString()); a = e.extend(a, l) } } else { if (!o.createCommand) return !0; if (a = o.createCommand(this.toString()), !a) return !0; o.commands[this] || (o.commands[this] = a) } switch (o.localization[this] && (a.tooltip = o.localization[this]), a.type) { case "list": a.widget && a.widget.jqxDropDownList("destroy"); var d = function (e, t, o) { return "formatblock" == a.command ? "<" + o + ' unselectable="on" style="padding: 0px; margin: 0px;">' + t + "" + o + ">" : "fontname" == a.command ? '' + t + "" : "fontsize" == a.command ? '' + t + "" : void 0 }, s = function () { var e = o.toThemeProperty("jqx-editor-toolbar-icon") + " " + o.toThemeProperty("jqx-editor-toolbar-icon-" + a.command), t = ""; return t }, c = "formatblock" == a.command || "fontname" == a.command || "fontsize" == a.command, u = a.value || [], g = new Array, p = a.placeHolder || "Please Choose:"; "fontname" == a.command ? e.each(u, function () { var e = o.localization[this.label]; g.push({ label: e, value: this.value }) }) : "formatblock" == a.command ? (p = o.localization.format, e.each(u, function () { if (this.label.indexOf("Header") >= 0) var e = this.label.replace("Header", o.localization.Header); else var e = o.localization[this.label]; g.push({ label: e, value: this.value }) })) : g = u; var m = { enableBrowserBoundsDetection: !0, touchMode: o.touchMode, width: a.width || 100, height: a.height || 25, dropDownWidth: a.dropDownWidth || "auto", autoDropDownHeight: (a.value && a.value.length) < 12 ? !0 : !1, placeHolder: p, source: g, theme: o.theme, keyboardSelection: !1, focusable: !1, disabled: o.disabled, rtl: o.rtl, selectionRenderer: "fontsize" == a.command ? s : null, renderer: c ? d : null }, h = "jqx-disableselect " + o.toThemeProperty("jqx-editor-dropdownlist") + " " + o.toThemeProperty("jqx-editor-toolbar-item"), f = e(""); f.appendTo(t), f.jqxDropDownList(m), a.init && a.init(f); var n = null, v = null, b = ""; o.addHandler(f, "mousedown", function (t) { if (e(".jqx-editor-dropdownpicker").length > 0 && e(".jqx-editor-dropdownpicker").jqxDropDownButton("close"), e(".jqx-editor-dropdownlist").length > 0) { var o = e(".jqx-editor-dropdownlist"); e.each(o, function (t, o) { o != f[0] && e(o).jqxDropDownList("close") }) } }), o.addHandler(f, "open", function (e) { o.focused || o.focus(), o.updating = !0, o.activeElement = f, n = f.val(), b = "" }), o.addHandler(f, "change", function (t) { o.updating = !1, o.activeElement = null, v = f.val(), b = t.args.type, e.jqx.browser.msie && e.jqx.browser.version < 9 && o.focus() }), o.addHandler(f, "close", function (e) { o.updating = !1, o.activeElement = null, n != v && ("mouse" == b || "keyboard" == b) && o._refreshTools() }), o._addCommandHandler(f, "change", a.command, null, a); break; case "colorPicker": a.widget && (e(a.colorPicker).remove(), a.widget.jqxDropDownButton("destroy")); var x = e('').attr("id", "picker-" + a.command), h = "jqx-disableselect " + o.toThemeProperty("jqx-editor-dropdownpicker") + " " + o.toThemeProperty("jqx-editor-toolbar-item"), f = e(""); f.appendTo(t), f.append(x), f.jqxDropDownButton({ touchMode: o.touchMode, disabled: o.disabled, enableBrowserBoundsDetection: !0, width: a.width || 45, height: a.height || 25, rtl: o.rtl, focusable: !1, theme: o.theme }); var y = e(' '), w = o.toThemeProperty("jqx-editor-toolbar-icon") + " " + o.toThemeProperty("jqx-editor-toolbar-icon-" + a.command), k = e(" "); y.append(k); var _ = e(' ').attr("id", "bar-" + a.command).css("background-color", a.value); y.append(_), f.jqxDropDownButton("setContent", y), x.append(e(o.colorPickerTemplate)), a.colorPicker = x, a.init && a.init(f), x.find("tr").attr("role", "row").attr("unselectable", "on"), x.find("td").attr("role", "gridcell").attr("unselectable", "on").css("-webkit-user-select", "none"), x.find("div").attr("unselectable", "on"), o.addHandler(f, "mousedown", function (t) { if (e(".jqx-editor-dropdownlist").length > 0 && e(".jqx-editor-dropdownlist").jqxDropDownList("close"), e(".jqx-editor-dropdownpicker").length > 0) { var o = e(".jqx-editor-dropdownpicker"); e.each(o, function (t, o) { o != f[0] && e(o).jqxDropDownButton("close") }) } }), o.addHandler(f, "open", function () { o.focused || o.focus(), o.updating = !0, o.activeElement = x }), o.addHandler(f, "close", function (e) { o.updating = !1, o.activeElement = null, n != v && ("mouse" == b || "keyboard" == b) && o._refreshTools() }), o.addHandler(x, "keydown", function (t) { var o = t.keyCode, i = e(x).find(".jqx-editor-color-picker-selected-cell"), r = x.find("tr"), n = r.length, l = i.parent().children().length, d = i.index(), s = -999, c = i.parent(); switch (e.each(r, function (e, t) { return this == c[0] ? (s = e, !1) : void 0 }), o) { case 27: f.jqxDropDownButton("close"); break; case 13: e(i).trigger("mousedown"); break; case 38: s--; break; case 40: s++; break; case 39: d++; break; case 37: d-- } if (s >= 0 && n >= s && d >= 0 && l >= d) { var c = x.find("tr")[s], u = e(c).children()[d], g = e(u).children().css("background-color"); a.val(g) } }); var T = e(x).find("td"); a.val = function (t) { var i = o._rgbToHex(t); e.each(T, function () { var t = e(this).children().css("background-color"), r = o._rgbToHex(t); return r == i ? (T.removeClass("jqx-editor-color-picker-selected-cell"), e(this).addClass("jqx-editor-color-picker-selected-cell"), e("#bar-" + a.command).css("background", t), !1) : void 0 }) }, a.val(a.value), o._addCommandHandler(T, "mousedown", a.command, null, a); break; case "button": case "toggleButton": default: a.widget && ("button" == a.type ? a.widget.jqxButton("destroy") : a.widget.jqxToggleButton("destroy")); var j = a.command, q = a.action, w = o.toThemeProperty("jqx-editor-toolbar-icon") + " " + o.toThemeProperty("jqx-editor-toolbar-icon-" + j), k = e(" "), f = e(" ").addClass("jqx-disableselect").addClass(o.toThemeProperty("jqx-editor-toolbar-button")); a.init ? j && f.append(k) : f.append(k), f.appendTo(t), "button" == a.type ? f.jqxButton({ disabled: o.disabled, rtl: o.rtl, theme: o.theme }) : "toggleButton" == a.type && f.jqxToggleButton({ disabled: o.disabled, rtl: o.rtl, uiToggle: !1, theme: o.theme }), a.init && a.init(f), a.toggled = !1, a.toggle = function () { a.toggled = !a.toggled }, o.addHandler(f, "mousedown", function (e) { return e.preventDefault && e.preventDefault(), e.stopPropagation && e.stopPropagation(), !1 }), e.jqx.mobile.isTouchDevice() ? o._addCommandHandler(f, "mousedown", j, q, a) : o._addCommandHandler(f, "click", j, q, a) } if (a.widget = f, f) { try { "" != a.tooltip && (a.widget.attr("title", a.tooltip), a.widget.attr("data-tooltip", a.tooltip)), a.command && a.widget.attr("data-command", a.command), a.widget.attr("aria-label", a.tooltip) } catch (R) { } ("button" == a.type || "toggleButton" == a.type) && (i.length > 2 && (0 == r ? (f.css("border-right-radius", "0px"), f.addClass(o.toThemeProperty("jqx-rc-l"))) : r == i.length - 1 && (f.css("border-left-radius", "0px"), f.addClass(o.toThemeProperty("jqx-rc-r"))), f.removeClass(o.toThemeProperty("jqx-rc-all"))), 0 != r && r != i.length - 1 && i.length > 2 ? (f.css("border-left-radius", "0px"), f.css("border-right-radius", "0px"), f.removeClass(o.toThemeProperty("jqx-rc-all"))) : 2 == i.length ? (0 == r ? (f.css("border-right-radius", "0px"), f.addClass(o.toThemeProperty("jqx-rc-l"))) : (f.css("border-left-radius", "0px"), f.addClass(o.toThemeProperty("jqx-rc-r"))), f.removeClass(o.toThemeProperty("jqx-rc-all"))) : 1 == i.length && f.css("margin-right", "0px")) } }) }; if (o.toolbar.css("direction", this.rtl ? "rtl" : "ltr"), 0 == a.length) l(o.toolbar, n); else { for (var d = 0; d < a.length; d++) { var s = a[d], n = s.split(" "), c = o.toThemeProperty("jqx-editor-toolbar-group") + " " + o.toThemeProperty("jqx-fill-state-normal"), u = e(" "); u.addClass(o.toThemeProperty("jqx-rc-all")), o.toolbar.append(u), l(u, n) } for (var g = o.toolbar.find(".jqx-editor-toolbar-group"), p = g.length, d = 0; p > d; d++) 0 == e(g[d]).children().length && e(g[d]).remove() } e.jqx.browser.msie && e.jqx.browser.version < 8 && (e(".jqx-editor-toolbar-group").css("float", "left"), e(".jqx-editor-toolbar-group").children().css("float", "left"), e(".jqx-editor-toolbar-group").css("zoom", "1"), e(".jqx-editor-toolbar-group").children().css("zoom", "1")) } o._arrange(), o._addHandlers() }, _arrange: function () { var t = this; t.content && ("" == t.tools || 0 == t.tools ? (t.content.height(t.container.outerHeight() - parseInt(t.container.css("padding-top")) - parseInt(t.container.css("padding-bottom")) - 6), t.content.css("margin-top", "4px"), t.toolbar.hide()) : (t.toolbar.show(), t.content.css("margin-top", "0px"), t.content.height(t.container.outerHeight() - t.toolbar.outerHeight() - parseInt(t.container.css("padding-top")) - parseInt(t.container.css("padding-bottom")) - 2), "top" != t.toolbarPosition && (t.content.css("margin-top", "4px"), t.content.css("margin-bottom", "0px"))), e.jqx.browser.msie && e.jqx.browser.version < 8 && (t.content.css("margin-top", "4px"), t.content.height(t.container.height() - t.toolbar.outerHeight() - 2 * parseInt(t.container.css("padding-bottom")) - 10), t.content.width(t.container.width() - 2 * parseInt(t.container.css("padding-left")) - 2)), t.editor.height() < t.content.height() && t.editor.height(t.content.height())) }, propertyChangedHandler: function (t, o, i, r) { var n = t; if (void 0 != n.isInitialized && 0 != n.isInitialized && "pasteMode" != o && "lineBreak" != o && "editable" != o) { if ("disabled" == o && t._refreshTools(), "width" == o || "height" == o || "toolbarPosition" == o) return void t._arrange(); "theme" == o && e.jqx.utilities.setTheme(i, r, t.host), t.refresh() } }, selectRange: function (e) { var t = this; e || (e = t.getRange()), t.selection.selectRange(e) }, getRange: function () { var e = this; return e.selection.getRange() }, getSelectedElement: function () { var e, t, o, i, r = this; try { if (r.editorDocument.getSelection) { var n = r.editorDocument.getSelection(); return e = n.getRangeAt(n.rangeCount - 1), o = e.startContainer, i = e.endContainer, t = e.commonAncestorContainer, "#text" == o.nodeName && (t = t.parentNode), "#text" == o.nodeName && (o = o.parentNode), "body" == o.nodeName.toLowerCase() && (o = o.firstChild), "#text" == i.nodeName && (i = i.parentNode), "body" == i.nodeName.toLowerCase() && (i = i.lastChild), o == i && (t = o), i } if (r.editorDocument.selection) { if (e = r.editorDocument.selection.createRange(), !e.duplicate) return null; t = e.parentElement(); var a = e.duplicate(), l = e.duplicate(); return a.collapse(!0), l.moveToElementText(a.parentElement()), l.setEndPoint("EndToStart", a), o = a.parentElement(), a = e.duplicate(), l = e.duplicate(), l.collapse(!1), a.moveToElementText(l.parentElement()), a.setEndPoint("StartToEnd", l), i = l.parentElement(), "body" == o.nodeName.toLowerCase() && (o = o.firstChild), "body" == i.nodeName.toLowerCase() && (i = i.lastChild), o == i && (t = o), i } } catch (d) { return null } return null }, _addHandlers: function () { var t = this; t.addHandler(t.toolbar, "mousedown.editor" + t.element.id, function (e) { return e.preventDefault && e.preventDefault(), e.stopPropagation && e.stopPropagation(), !1 }); var o = function () { if (t._textArea && (t.updating || (t._textArea.value = t.val())), t.changed && (t._raiseEvent("change"), t.changed = !1), t.focused = !1, t.inline) { if (t.host.removeClass(t.toThemeProperty("jqx-fill-state-focus")), t.host.removeClass(t.toThemeProperty("jqx-editor-inline-focus")), "" == t.tools || null == t.tools) return; t.toolbarContainer.fadeOut("fast") } }, i = function () { if (t.focused = !0, t.inline) { if (t.host.addClass(t.toThemeProperty("jqx-fill-state-focus")), t.host.addClass(t.toThemeProperty("jqx-editor-inline-focus")), t.host.addClass(t.toThemeProperty("jqx-rc-all")), "" == t.tools || null == t.tools) return; t.toolbarContainer.fadeIn("fast"); var e = t.host.coord(); "bottom" != t.toolbarPosition ? t.toolbarContainer.offset({ left: e.left, top: e.top - t.toolbarContainer.outerHeight() - 5 }) : t.toolbarContainer.offset({ left: e.left, top: e.top + 5 + t.host.height() }) } }; e.jqx.browser.mozilla && this.addHandler(e(document), "mousedown.editor" + t.element.id, function (e) { o() }), t.addHandler(t.editor, "blur.editor" + t.element.id, function (e) { o() }), t.addHandler(t.editor, "focus.editor" + t.element.id, function (e) { i() }), t.addHandler(t.editor, "beforedeactivate.editor" + t.element.id, function (e) { t.range = t.getRange() }), t.addHandler(t.editor, "mousedown.editor" + t.element.id, function (o) { o.target.href || t.linkPopup && t.linkPopup.remove(), t.range = t.getRange(), e.jqx.browser.mozilla && (i(), o.stopPropagation()), e(".jqx-editor-dropdownpicker").length > 0 && e(".jqx-editor-dropdownpicker").jqxDropDownButton("close"), e(".jqx-editor-dropdownlist").length > 0 && e(".jqx-editor-dropdownlist").jqxDropDownList("close"), t.inline && t.editor.focus() }), e.jqx.mobile.isTouchDevice() && (t.addHandler(e(t.editorDocument), "selectionchange.editor" + t.element.id, function () { t.editorDocument.activeElement != t.editor[0] && setTimeout(function () { t.iframe && t.iframe[0].contentWindow.focus() }, 500) }), t.addHandler(e(t.editorDocument), "touchstart.editor" + t.element.id, function () { setTimeout(function () { t.iframe && t.iframe[0].contentWindow.focus() }, 500) })), t.addHandler(t.editor, "mouseup.editor" + t.element.id, function (e) { return "source" == t._documentMode ? !0 : (t.range = t.getRange(), void t._refreshTools(null, !0)) }), t.addHandler(t.editor, "keydown.editor" + t.element.id, function (o) { if (t.keyPressed && t.keyPressed(o), "source" == t._documentMode) return !0; if (e.jqx.browser.mozilla && (t.focused || i()), t.disabled) return o.preventDefault && o.preventDefault(), !1; if (t.updating) { if (t.activeElement) { var r = e.Event("keydown"); e.extend(r, o), t.activeElement.trigger(r) } return o.preventDefault && o.preventDefault(), !1 } var n = o || window.event, a = n.keyCode, l = String.fromCharCode(a).toLowerCase(); if (!t.editable) { var d = [9, 33, 34, 35, 36, 37, 38, 39, 40, 40, 45]; -1 != e.inArray(n.keyCode, d) || n.ctrlKey && "c" == l || n.ctrlKey && "a" == l || o.preventDefault() } if (t.selection.getText().length > 0 || t.linkPopup) { var d = [8, 9, 13, 33, 34, 35, 36, 37, 38, 39, 40, 40, 45, 46]; (-1 != !e.inArray(n.keyCode, d) || 65 == n.keyCode && n.ctrlKey && !n.altKey && !n.shiftKey) && (t._refreshToolsTimer && clearTimeout(t._refreshToolsTimer), t._refreshToolsTimer = setTimeout(function () { t._refreshTools(null, !0, n.keyCode) }, 10)) } if (13 == a && "default" != t.lineBreak) { var s = t.getSelectedElement(); if (s) { var c = s.nodeName.toLowerCase(); switch (c) { case "pre": case "li": case "ul": case "ol": case "h1": case "h2": case "h3": case "h4": case "h5": case "h6": return !0 } for (var u = s; null != u;) { if ("#document" == u.nodeName) { u = t.editorDocument.body; break } if (u.parentNode == t.editorDocument.body || u == t.editorDocument.body) break; u = u.parentNode } } if (u) { var g = t.getRange(); " " == t.editorDocument.body.innerHTML && "br" != t.lineBreak && t.selection.insertContent(""), "div" == t.lineBreak ? u == t.editorDocument.body ? e(u).append(" ") : e(" ").insertAfter(u) : "p" == t.lineBreak ? u == t.editorDocument.body ? e(u).append(" ") : e(" ").insertAfter(u) : t.execute("insertHTML", " " + e + " ", e = e.replace(/\n/g, " "), e = e.replace(/ \s<\/p>/gi, "")) : e = e.replace(/\n/g, "
"), t.selectRange(g); var p = e(t.editorDocument).find("#INSERTION_MARKER"); return "br" != t.lineBreak ? t.selection.selectNode(e(p).prev()[0], !0) : (t.selection.selectNode(p[0], !0), t.getRange().setStartAfter && t.getRange().setStartAfter(p[0])), p.remove(), t.selection.collapse(!1), u && u.nodeName && "br" == t.lineBreak && "#text" != u.nodeName.toLowerCase() && (t.selection.selectNode(u, !0), t.getRange().setStartAfter && t.getRange().setStartAfter(u), t.selection.collapse(!1)), "br" != t.lineBreak && (g = t.getRange(), g.select && g.select()), o.preventDefault && o.preventDefault(), !1 } } if (n.ctrlKey && ("k" == l || "u" == l || "b" == l || "i" == l)) { o.preventDefault && o.preventDefault(); var m = null; switch (l) { case "k": m = "link"; break; case "u": m = "underline"; break; case "b": m = "bold"; break; case "i": m = "italic" } return t.commands[m].widget && t.commands[m].widget.trigger("click"), !1 } }), t.addHandler(t.editor, "paste.editor" + t.element.id, function (o) { if ("source" == t._documentMode) return !0; if (t.readOnly) return !0; t.updating = !0, t.readOnly = !0; var i = function (e, o) { if (o) t.paragraphise ? (e = "
"); else { if (e = e.replace(/]*?>(.*)/gim, "$1"), e = e.replace(/<\/html>/gi, ""), e = e.replace(/
Al Nahrain Printing Press (2023)
References
Author: Clemencia Bogisich Ret
Last Updated: 06/26/2023
Views: 6317
Rating: 5 / 5 (80 voted)
Reviews: 95% of readers found this page helpful
Name: Clemencia Bogisich Ret
Birthday: 2001-07-17
Address: Suite 794 53887 Geri Spring, West Cristentown, KY 54855
Phone: +5934435460663
Job: Central Hospitality Director
Hobby: Yoga, Electronics, Rafting, Lockpicking, Inline skating, Puzzles, scrapbook
Introduction: My name is Clemencia Bogisich Ret, I am a super, outstanding, graceful, friendly, vast, comfortable, agreeable person who loves writing and wants to share my knowledge and understanding with you.