first commit

This commit is contained in:
2024-11-11 18:46:54 +01:00
commit a630d17338
25634 changed files with 4923715 additions and 0 deletions

View File

@@ -0,0 +1,519 @@
.mce-container .alert {
font-weight: bold; }
.mce-container .alert:before {
cursor: pointer; }
.mce-container .alert ul, .mce-container .alert ol {
padding-left: 15px;
margin-left: 27px; }
.mce-container .alert ul li, .mce-container .alert ol li {
list-style-type: decimal;
font-weight: normal; }
.mce-container .alert.alert-success {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-container .alert.alert-success:before {
font-family: "FontAwesome";
content: "\f058";
font-size: 20px;
vertical-align: -2px;
padding-right: 7px; }
.mce-container .alert.alert-danger {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-container .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f057";
font-size: 20px;
vertical-align: -2px;
/* padding-right: 7px; */
float: left;
}
.mce-container .alert {
padding: 15px;
margin-bottom: 18px;
border: 1px solid transparent;
border-radius: 0px;
}
.mce-container .alert h4 {
margin-top: 0;
color: inherit; }
.mce-container .alert .alert-link {
font-weight: bold; }
.mce-container .alert > p,
.mce-container .alert > ul {
margin-bottom: 0; }
.mce-container .alert > p + p {
margin-top: 5px; }
.mce-container .alert-dismissable {
padding-right: 35px; }
.mce-container .alert-dismissable .close {
position: relative;
top: -2px;
right: -21px;
color: inherit; }
.mce-container .alert-success {
background-color: #55c65e;
border-color: #48b151;
color: #fff; }
.mce-container .alert-success hr {
border-top-color: #419f49; }
.mce-container .alert-success .alert-link {
color: #e6e6e6; }
.mce-container .alert-info {
background-color: #5192f3;
border-color: #4b80c3;
color: #fff; }
.mce-container .alert-info hr {
border-top-color: #3d73b7; }
.mce-container .alert-info .alert-link {
color: #e6e6e6; }
.mce-container .alert-warning {
background-color: #fe9126;
border-color: #e4752b;
color: #fff; }
.mce-container .alert-warning hr {
border-top-color: #da681c; }
.mce-container .alert-warning .alert-link {
color: #e6e6e6; }
.mce-container .alert-danger {
background-color: #f3515c;
border-color: #d4323d;
color: #fff; }
.mce-container .alert-danger hr {
border-top-color: #c32933; }
.mce-container .alert-danger .alert-link {
color: #e6e6e6; }
.mce-container .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f058";
height:100%;
}
.mce-container .alert {
position:relative;
padding-left:20px;
}
.mce-container .alert {
font-weight: bold; }
.mce-container .alert:before {
cursor: pointer; }
.mce-container .alert ul, .mce-container .alert ol {
padding-left: 15px;
margin-left: 27px; }
.mce-container .alert ul li, .mce-container .alert ol li {
list-style-type: decimal;
font-weight: normal; }
.mce-container .alert.alert-success {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-container .alert.alert-success:before {
font-family: "FontAwesome";
content: "\f058";
font-size: 20px;
vertical-align: -2px;
padding-right: 7px; }
.mce-container .alert.alert-danger {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-container .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f057";
font-size: 20px;
vertical-align: -2px;
/* padding-right: 7px; */
float: left;
}
.mce-container .alert {
padding: 15px;
margin-bottom: 18px;
border: 1px solid transparent;
border-radius: 0px;
}
.mce-container .alert h4 {
margin-top: 0;
color: inherit; }
.mce-container .alert .alert-link {
font-weight: bold; }
.mce-container .alert > p,
.mce-container .alert > ul {
margin-bottom: 0; }
.mce-container .alert > p + p {
margin-top: 5px; }
.mce-container .alert-dismissable {
padding-right: 35px; }
.mce-container .alert-dismissable .close {
position: relative;
top: -2px;
right: -21px;
color: inherit; }
.mce-container .alert-success {
background-color: #55c65e;
border-color: #48b151;
color: #fff; }
.mce-container .alert-success hr {
border-top-color: #419f49; }
.mce-container .alert-success .alert-link {
color: #e6e6e6; }
.mce-container .alert-info {
background-color: #5192f3;
border-color: #4b80c3;
color: #fff; }
.mce-container .alert-info hr {
border-top-color: #3d73b7; }
.mce-container .alert-info .alert-link {
color: #e6e6e6; }
.mce-container .alert-warning {
background-color: #fe9126;
border-color: #e4752b;
color: #fff; }
.mce-container .alert-warning hr {
border-top-color: #da681c; }
.mce-container .alert-warning .alert-link {
color: #e6e6e6; }
.mce-container .alert-danger {
background-color: #f3515c;
border-color: #d4323d;
color: #fff; }
.mce-container .alert-danger hr {
border-top-color: #c32933; }
.mce-container .alert-danger .alert-link {
color: #e6e6e6; }
.mce-container .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f058";
height:100%;
}
.mce-container .alert {
position:relative;
padding-left:20px;
}
.mce-container .alert .close {
text-decoration: none !important;
font-size: 18px !important;
line-height: 1.2;
float: right;
font-size: 21px;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
filter: alpha(opacity=20);
opacity: .2;
background: none;
border: none;
}
/* EDITOR CONTENTS */
.mce-content-body .alert .close {
text-decoration: none !important;
font-size: 18px !important;
line-height: 1.2;
float: right;
font-size: 21px;
font-weight: 700;
line-height: 1;
color: #000;
text-shadow: 0 1px 0 #fff;
filter: alpha(opacity=20);
opacity: .2;
background: none;
border: none;
}
.mce-content-body .alert {
font-weight: bold; }
.mce-content-body .alert:before {
cursor: pointer; }
.mce-content-body .alert ul, .mce-content-body .alert ol {
padding-left: 15px;
margin-left: 27px; }
.mce-content-body .alert ul li, .mce-content-body .alert ol li {
list-style-type: decimal;
font-weight: normal; }
.mce-content-body .alert.alert-success {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-content-body .alert.alert-success:before {
font-family: "FontAwesome";
content: "\f058";
font-size: 20px;
vertical-align: -2px;
padding-right: 7px; }
.mce-content-body .alert.alert-danger {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-content-body .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f057";
font-size: 20px;
vertical-align: -2px;
/* padding-right: 7px; */
float: left;
}
.mce-content-body .alert {
padding: 15px;
margin-bottom: 18px;
border: 1px solid transparent;
border-radius: 0px;
}
.mce-content-body .alert h4 {
margin-top: 0;
color: inherit; }
.mce-content-body .alert .alert-link {
font-weight: bold; }
.mce-content-body .alert > p,
.mce-content-body .alert > ul {
margin-bottom: 0; }
.mce-content-body .alert > p + p {
margin-top: 5px; }
.mce-content-body .alert-dismissable {
padding-right: 35px; }
.mce-content-body .alert-dismissable .close {
position: relative;
top: -2px;
right: -21px;
color: inherit; }
.mce-content-body .alert-success {
background-color: #55c65e;
border-color: #48b151;
color: #fff; }
.mce-content-body .alert-success hr {
border-top-color: #419f49; }
.mce-content-body .alert-success .alert-link {
color: #e6e6e6; }
.mce-content-body .alert-info {
background-color: #5192f3;
border-color: #4b80c3;
color: #fff; }
.mce-content-body .alert-info hr {
border-top-color: #3d73b7; }
.mce-content-body .alert-info .alert-link {
color: #e6e6e6; }
.mce-content-body .alert-warning {
background-color: #fe9126;
border-color: #e4752b;
color: #fff; }
.mce-content-body .alert-warning hr {
border-top-color: #da681c; }
.mce-content-body .alert-warning .alert-link {
color: #e6e6e6; }
.mce-content-body .alert-danger {
background-color: #f3515c;
border-color: #d4323d;
color: #fff; }
.mce-content-body .alert-danger hr {
border-top-color: #c32933; }
.mce-content-body .alert-danger .alert-link {
color: #e6e6e6; }
.mce-content-body .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f058";
height:100%;
}
.mce-content-body .alert {
position:relative;
padding-left:20px;
}
.mce-content-body .alert {
font-weight: bold; }
.mce-content-body .alert:before {
cursor: pointer; }
.mce-content-body .alert ul, .mce-content-body .alert ol {
padding-left: 15px;
margin-left: 27px; }
.mce-content-body .alert ul li, .mce-content-body .alert ol li {
list-style-type: decimal;
font-weight: normal; }
.mce-content-body .alert.alert-success {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-content-body .alert.alert-success:before {
font-family: "FontAwesome";
content: "\f058";
font-size: 20px;
vertical-align: -2px;
padding-right: 7px; }
.mce-content-body .alert.alert-danger {
text-shadow: 1px 1px rgba(0, 0, 0, 0.1); }
.mce-content-body .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f057";
font-size: 20px;
vertical-align: -2px;
/* padding-right: 7px; */
float: left;
}
.mce-content-body .alert {
padding: 15px;
margin-bottom: 18px;
border: 1px solid transparent;
border-radius: 0px;
}
.mce-content-body .alert h4 {
margin-top: 0;
color: inherit; }
.mce-content-body .alert .alert-link {
font-weight: bold; }
.mce-content-body .alert > p,
.mce-content-body .alert > ul {
margin-bottom: 0; }
.mce-content-body .alert > p + p {
margin-top: 5px; }
.mce-content-body .alert-dismissable {
padding-right: 35px; }
.mce-content-body .alert-dismissable .close {
position: relative;
top: -2px;
right: -21px;
color: inherit; }
.mce-content-body .alert-success {
background-color: #55c65e;
border-color: #48b151;
color: #fff; }
.mce-content-body .alert-success hr {
border-top-color: #419f49; }
.mce-content-body .alert-success .alert-link {
color: #e6e6e6; }
.mce-content-body .alert-info {
background-color: #5192f3;
border-color: #4b80c3;
color: #fff; }
.mce-content-body .alert-info hr {
border-top-color: #3d73b7; }
.mce-content-body .alert-info .alert-link {
color: #e6e6e6; }
.mce-content-body .alert-warning {
background-color: #fe9126;
border-color: #e4752b;
color: #fff; }
.mce-content-body .alert-warning hr {
border-top-color: #da681c; }
.mce-content-body .alert-warning .alert-link {
color: #e6e6e6; }
.mce-content-body .alert-danger {
background-color: #f3515c;
border-color: #d4323d;
color: #fff; }
.mce-content-body .alert-danger hr {
border-top-color: #c32933; }
.mce-content-body .alert-danger .alert-link {
color: #e6e6e6; }
.mce-content-body .alert.alert-danger:before {
font-family: "FontAwesome";
content: "\f057";
height:100%;
}
.mce-content-body .alert {
position:relative;
padding-left:20px;
}

View File

@@ -0,0 +1,246 @@
@font-face {
font-family: 'GalauIcon';
src: url('../fonts/GalauIcon.eot?280216');
src: url('../fonts/GalauIcon.eot?#iefix') format('embedded-opentype'), url('../fonts/GalauIcon.woff?280216') format('woff'), url('../fonts/GalauIcon.woff2?280216') format('woff2'), url('../fonts/GalauIcon.ttf?280216') format('truetype'), url('../fonts/GalauIcon.svg?#GalauIcon') format('svg');
}
.guicon,
.guicon:before {
display: inline-block;
font-family: 'GalauIcon' !important;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
vertical-align: baseline !important;
text-align: left;
}
.guicon-spin {
-webkit-animation: guicon-spin 2s infinite linear;
animation: guicon-spin 2s infinite linear;
}
@-webkit-keyframes guicon-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
@keyframes guicon-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-transform: rotate(359deg);
transform: rotate(359deg);
}
}
.guicon-code:before {
content: "\f100";
}
.guicon-grid:before {
content: "\f101";
}
.guicon-bootstrap:before {
content: "\f102";
}
.guicon-panel:before {
content: "\f103";
}
.guicon-view-grid:before {
content: "\f104";
}
.guicon-alert:before {
content: "\f105";
}
.guicon-button:before {
content: "\f106";
}
.guicon-table:before {
content: "\f107";
}
.guicon-image:before {
content: "\f108";
}
.guicon-text:before {
content: "\f109";
}
.guicon-glyphicons:before {
content: "\f10a";
}
.guicon-dashicons:before {
content: "\f10b";
}
.guicon-fontawesome:before {
content: "\f10c";
}
.guicon-search:before {
content: "\f10d";
}
.guicon-form:before {
content: "\f10e";
}
.guicon-label:before {
content: "\f10f";
}
.guicon-plus:before {
content: "\f110";
}
.guicon-jumbotron:before {
content: "\f111";
}
.guicon-well:before {
content: "\f112";
}
.guicon-tab:before {
content: "\f113";
}
.guicon-badges:before {
content: "\f114";
}
.guicon-effect:before,
.guicon-fx:before {
content: "\f115";
}
.guicon-carousel:before {
content: "\f116";
}
.guicon-foundation_icons:before {
content: "\f117";
}
.guicon-foundation:before {
content: "\f118";
}
.guicon-spinner:before {
content: "\f119";
}
.guicon-lg-device:before {
content: "\f11a";
}
.guicon-md-device:before {
content: "\f11b";
}
.guicon-sm-device:before {
content: "\f11c";
}
.guicon-xs-device:before {
content: "\f11d";
}
.guicon-file-dir:before {
content: "\f120";
}
.guicon-file-dir-open:before {
content: "\f121";
}
.guicon-file-blank:before {
content: "\f122";
}
.guicon-file-sql:before {
content: "\f123";
}
.guicon-file-pdf:before {
content: "\f124";
}
.guicon-file-doc:before,
.guicon-file-docx:before {
content: "\f125";
}
.guicon-file-xls:before,
.guicon-file-xlsx:before {
content: "\f126";
}
.guicon-file-ppt:before,
.guicon-file-pptx:before {
content: "\f127";
}
.guicon-file-png:before,
.guicon-file-jpg:before,
.guicon-file-jpeg:before,
.guicon-file-gif:before,
.guicon-file-bmp:before {
content: "\f128";
}
.guicon-file-zip:before,
.guicon-file-rar:before,
.guicon-file-gz:before,
.guicon-file-7z:before {
content: "\f129";
}
.guicon-file-wav:before,
.guicon-file-mp3:before,
.guicon-file-aac:before {
content: "\f12a";
}
.guicon-file-mp4:before,
.guicon-file-mkv:before,
.guicon-file-avi:before {
content: "\f12b";
}
.guicon-file-txt:before,
.guicon-file-xml:before {
content: "\f12c";
}
.guicon-file-html:before,
.guicon-file-html5:before {
content: "\f12d";
}
.guicon-file-htm:before {
content: "\f12e";
}
.guicon-file-css:before {
content: "\f12f";
}
.guicon-file-php:before {
content: "\f130";
}
.guicon-file-less:before {
content: "\f131";
}
.guicon-file-js:before {
content: "\f132";
}
.guicon-genericon:before {
content: "\f11e";
}
.guicon-ionicons:before {
content: "\f11f";
}
.mce-i-guicon-alert {
color: #C20D0D;
}
#gui_bs_alert_preview,
#gui_bs_alert_preview * {
white-space: normal !important;
box-sizing: border-box !important;
}
.mce-gui-about-us {
background: #fff !important;
}
.mce-gui-about-us h2 {
font-size: 24px !important;
font-weight: 600;
}
.mce-gui-about-us h4 {
font-size: 16px;
}
.mce-gui-about-us h4 a:link {
cursor: pointer;
font-size: 16px;
font-weight: 600;
}
.mce-gui-about-us h4 a:hover {
text-decoration: underline;
}
.mce-gui-about-us p {
font-size: 12px;
margin-top: 16px;
}
.mce-gui-about-us p a:link {
cursor: pointer;
font-weight: 700;
font-size: 12px;
}
.mce-gui-about-us p a:hover {
text-decoration: underline;
}

View File

@@ -0,0 +1 @@
.mce-gui-about-us h4 a:hover,.mce-gui-about-us p a:hover{text-decoration:underline}@font-face{font-family:GalauIcon;src:url(../fonts/GalauIcon.eot?280216);src:url(../fonts/GalauIcon.eot?#iefix) format('embedded-opentype'),url(../fonts/GalauIcon.woff?280216) format('woff'),url(../fonts/GalauIcon.woff2?280216) format('woff2'),url(../fonts/GalauIcon.ttf?280216) format('truetype'),url(../fonts/GalauIcon.svg?#GalauIcon) format('svg')}.guicon,.guicon:before{display:inline-block;font-family:GalauIcon!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;vertical-align:baseline!important;text-align:left}.guicon-spin{-webkit-animation:guicon-spin 2s infinite linear;animation:guicon-spin 2s infinite linear}@-webkit-keyframes guicon-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}@keyframes guicon-spin{0%{-webkit-transform:rotate(0);transform:rotate(0)}100%{-webkit-transform:rotate(359deg);transform:rotate(359deg)}}.guicon-code:before{content:"\f100"}.guicon-grid:before{content:"\f101"}.guicon-bootstrap:before{content:"\f102"}.guicon-panel:before{content:"\f103"}.guicon-view-grid:before{content:"\f104"}.guicon-alert:before{content:"\f105"}.guicon-button:before{content:"\f106"}.guicon-table:before{content:"\f107"}.guicon-image:before{content:"\f108"}.guicon-text:before{content:"\f109"}.guicon-glyphicons:before{content:"\f10a"}.guicon-dashicons:before{content:"\f10b"}.guicon-fontawesome:before{content:"\f10c"}.guicon-search:before{content:"\f10d"}.guicon-form:before{content:"\f10e"}.guicon-label:before{content:"\f10f"}.guicon-plus:before{content:"\f110"}.guicon-jumbotron:before{content:"\f111"}.guicon-well:before{content:"\f112"}.guicon-tab:before{content:"\f113"}.guicon-badges:before{content:"\f114"}.guicon-effect:before,.guicon-fx:before{content:"\f115"}.guicon-carousel:before{content:"\f116"}.guicon-foundation_icons:before{content:"\f117"}.guicon-foundation:before{content:"\f118"}.guicon-spinner:before{content:"\f119"}.guicon-lg-device:before{content:"\f11a"}.guicon-md-device:before{content:"\f11b"}.guicon-sm-device:before{content:"\f11c"}.guicon-xs-device:before{content:"\f11d"}.guicon-file-dir:before{content:"\f120"}.guicon-file-dir-open:before{content:"\f121"}.guicon-file-blank:before{content:"\f122"}.guicon-file-sql:before{content:"\f123"}.guicon-file-pdf:before{content:"\f124"}.guicon-file-doc:before,.guicon-file-docx:before{content:"\f125"}.guicon-file-xls:before,.guicon-file-xlsx:before{content:"\f126"}.guicon-file-ppt:before,.guicon-file-pptx:before{content:"\f127"}.guicon-file-bmp:before,.guicon-file-gif:before,.guicon-file-jpeg:before,.guicon-file-jpg:before,.guicon-file-png:before{content:"\f128"}.guicon-file-7z:before,.guicon-file-gz:before,.guicon-file-rar:before,.guicon-file-zip:before{content:"\f129"}.guicon-file-aac:before,.guicon-file-mp3:before,.guicon-file-wav:before{content:"\f12a"}.guicon-file-avi:before,.guicon-file-mkv:before,.guicon-file-mp4:before{content:"\f12b"}.guicon-file-txt:before,.guicon-file-xml:before{content:"\f12c"}.guicon-file-html5:before,.guicon-file-html:before{content:"\f12d"}.guicon-file-htm:before{content:"\f12e"}.guicon-file-css:before{content:"\f12f"}.guicon-file-php:before{content:"\f130"}.guicon-file-less:before{content:"\f131"}.guicon-file-js:before{content:"\f132"}.guicon-genericon:before{content:"\f11e"}.guicon-ionicons:before{content:"\f11f"}.mce-i-guicon-alert{color:#C20D0D}#gui_bs_alert_preview,#gui_bs_alert_preview *{white-space:normal!important;box-sizing:border-box!important}.mce-gui-about-us{background:#fff!important}.mce-gui-about-us h2{font-size:24px!important;font-weight:600}.mce-gui-about-us h4{font-size:16px}.mce-gui-about-us h4 a:link{cursor:pointer;font-size:16px;font-weight:600}.mce-gui-about-us p{font-size:12px;margin-top:16px}.mce-gui-about-us p a:link{cursor:pointer;font-weight:700;font-size:12px}

View File

@@ -0,0 +1,256 @@
! function() {
tinymce.PluginManager.add("bs_alert", function(a, b) {
function c(b) {
var c;
a.dom;
c = a.dom.getParent(a.selection.getStart(), ".alert"), window.galau_ui_debug === !0 && console.log("alert => ", c), null === c ? a.undoManager.transact(function() {
d(b)
}) : a.undoManager.transact(function() {
h("alertDanger alertWarning alertInfo alertSuccess".split(" "), function(b) {
a.formatter.remove(b)
}), a.formatter.apply(b)
})
}
function d() {
function b() {
var a = document.createElement("div");
a.setAttribute("id", "bs_alert_preview"), a.setAttribute("class", "text-center"), markup_html = c(h), a.innerHTML = markup_html;
var b = document.querySelector("#bs_alert_preview");
b.parentNode.replaceChild(a, b), j.find("#bs_alert_code")[0].value(markup_html)
}
function c(a) {
var b = "",
c = "";
a.alert_dismiss === !0 && (b = '<button type="button" class="close" data-dismiss="alert" aria-hidden="true">&times;</button>', c = " alert-dismissable");
var d = '<div class="' + a.alert_style + c + '">' + b + a.alert_text + "</div>" + (i.ie ? " " : "<br>");
return window.galau_ui_debug === !0 && console.log("alert => generateAlert : ", d), d
}
function d(b) {
var c = {
alert_style: "alert alert-danger",
alert_text: "Well done! You successfully read this important alert message.",
alert_dismiss: !1
},
d = a.dom.getParent(a.selection.getStart(), ".alert");
if (d) {
var f = e(d).clone();
if (e(d).attr("class")) {
var g = e(d).attr("class").toString(),
h = g.match(/alert-dismissable/i);
h ? c.alert_dismiss = !0 : c.alert_dismiss = !1;
var i = e(f).find("button").remove(),
j = e(f).remove(i);
e(f).removeClass("alert-dismissable"), c.alert_style = e(f).attr("class"), c.alert_text = e(j).text()
}
}
return window.galau_ui_debug === !0 && console.log("alert => getAlert: ", c), c
}
var h = {
alert_style: "alert alert-danger",
alert_text: "alert"
},
h = d(a.selection.getNode()),
j = tinymce.activeEditor.windowManager.open({
title: f,
bodyType: "tabpanel",
body: [{
title: "General",
type: "form",
columns: 1,
items: [{
type: "form",
layout: "grid",
columns: 1,
margin: 0,
padding: 0,
items: [{
type: "form",
id: "bs_alert_option",
style: "border: 1px solid #ddd;",
margin: 0,
padding: 15,
border: 1,
items: [{
type: "label",
text: "Basic",
style: "font-weight: bold;"
}, {
name: "alert_text",
type: "textbox",
multiline: !0,
label: "Text",
style: "vertical-align: text-top;",
onkeyup: function(a) {
1 == window.galau_ui_debug && console.log("alert => Text : ", a.target.value), h.alert_text = a.target.value, b()
},
onchange: b,
onclick: b,
value: h.alert_text
}, {
name: "alert_dismiss",
type: "checkbox",
text: "Dismissable",
label: " ",
onclick: function(a) {
window.galau_ui_debug === !0 && console.log("alert => Dismissable : ", a.control.state.data.checked), a.control.state.data.checked ? h.alert_dismiss = !0 : h.alert_dismiss = !1, b()
},
checked: h.alert_dismiss
}, {
name: "alert_style",
type: "listbox",
label: "Style",
values: [{
text: "Warning",
value: "alert alert-warning"
}, {
text: "Danger",
value: "alert alert-danger"
}, {
text: "Info",
value: "alert alert-info"
}, {
text: "Success",
value: "alert alert-success"
}],
onselect: function(a) {
window.galau_ui_debug === !0 && console.log("alert => Style : ", a.control.state.data.value), h.alert_style = a.control.state.data.value, b()
},
onchange: b,
value: h.alert_style
}]
}, {
type: "form",
id: "bs_alert_view",
style: " border: 1px solid #ddd;",
margin: 0,
padding: 15,
border: 1,
items: [{
type: "label",
text: "Preview",
style: "font-weight: bold;"
}, {
type: "container",
html: '<div id="bs_alert_preview" class="text-center">' + c(h) + "</div>",
style: "",
border: 0,
minWidth: 400,
minHeight: 80,
margin: 0,
padding: 0
}]
}]
}]
}, {
title: "Code",
type: "form",
items: [{
type: "label",
text: "HTML Code"
}, {
flex: 1,
name: "bs_alert_code",
type: "textbox",
value: c(h),
multiline: !0
}]
}],
onsubmit: function() {
var b = a.dom.getParent(a.selection.getStart(), ".alert");
a.undoManager.transact(function() {
var d = c(h);
b ? e(b).replaceWith(d) : a.insertContent(d)
})
}
})
}
var e = tinymce.dom.DomQuery,
f = "Bootstrap Alert",
g = "Visual Editor for bootstrap alerts style.",
h = tinymce.util.Tools.each,
i = tinymce.Env,
j = [b + "/assets/css/plugin.min.css"],
k = "";
if ("object" == typeof a.settings.bs_alert) var k = a.settings.bs_alert;
var l = !0;
if ("object" == typeof k ? ("undefined" != typeof k.css ? k.css.exist ? 1 == window.galau_ui_debug && console.log("alert => css: exist") : k.css.external ? (j.push(k.css.external), 1 == window.galau_ui_debug && console.log("alert => css: external")) : (j.push(b + "/assets/css/bootstrap.min.css"), 1 == window.galau_ui_debug && console.log("alert => css: internal")) : (j.push(b + "/assets/css/bootstrap.min.css"), 1 == window.galau_ui_debug && console.log("alert => css: internal")), l = k.toolbar_text ? !0 : !1) : (j.push(b + "/assets/css/bootstrap.min.css"), 1 == window.galau_ui_debug && console.log("alert => css: internal")), "undefined" != typeof a.settings.content_css)
if ("function" == typeof a.settings.content_css.push)
for (var m = 0; m < j.length; m++) a.settings.content_css.push(j[m]);
else if ("string" == typeof a.settings.content_css) {
a.settings.content_css = [a.settings.content_css];
for (var m = 0; m < j.length; m++) a.settings.content_css.push(j[m])
} else a.settings.content_css = j;
else a.settings.content_css = j;
"undefined" == typeof a.settings.extended_valid_elements && (a.settings.extended_valid_elements = "*[*]"), "undefined" == typeof a.settings.valid_elements && (a.settings.valid_elements = "*[*]"), 1 == window.galau_ui_debug && (console.log("alert => valid: ", a.settings.valid_elements), console.log("alert => extended_valid: ", a.settings.extended_valid_elements)), a.on("init", function() {
if (document.createStyleSheet)
for (var b = 0; b < j.length; b++) document.createStyleSheet(j[b]);
else
for (var b = 0; b < j.length; b++) cssLink = a.dom.create("link", {
rel: "stylesheet",
href: j[b]
}), document.getElementsByTagName("head")[0].appendChild(cssLink)
});
var n = "";
l && (n = "Alert"), a.addButton("bs_alert", {
icon: "guicon-alert guicon guicon-alert",
text: n,
type: "splitbutton",
tooltip: "Insert/edit alert",
stateSelector: ".alert",
onclick: d,
menu: [{
text: "Warning",
onclick: function() {
c("alertWarning")
}
}, {
text: "Danger",
onclick: function() {
c("alertDanger")
}
}, {
text: "Info",
onclick: function() {
c("alertInfo")
}
}, {
text: "Success",
onclick: function() {
c("alertSuccess")
}
}]
}), a.addButton("bs_alert_remove", {
icon: "remove",
tooltip: "remove this alert",
stateSelector: ".alert",
onclick: function() {
var b = a.dom.getParent(a.selection.getStart(), ".alert");
b && a.undoManager.transact(function() {
e(b).replaceWith("")
})
}
}), a.on("init", function() {
a.addContextToolbar(".alert", "bs_alert | undo redo | bs_alert_remove"), a.formatter.register({
alertDanger: [{
selector: ".alert",
classes: "alert-danger"
}],
alertInfo: [{
selector: ".alert",
classes: "alert-info"
}],
alertSuccess: [{
selector: ".alert",
classes: "alert-success"
}],
alertWarning: [{
selector: ".alert",
classes: "alert-warning"
}]
})
}), a.settings.showGuiBootstrapAlert || (a.settings.showGuiBootstrapAlert = d)
})
}();