File "redux-ace-editor.min.js"

Full Path: /home/elegucvf/public_html/video/wp-content/plugins/atlas-core/framework/redux-core/inc/fields/ace_editor/redux-ace-editor.min.js
File size: 816 bytes
MIME-type: text/plain
Charset: utf-8

!function(s){"use strict";redux.field_objects=redux.field_objects||{},redux.field_objects.ace_editor=redux.field_objects.ace_editor||{},redux.field_objects.ace_editor.init=function(e){e=s.redux.getSelector(e,"ace_editor"),s(e).each(function(){var e=s(this),t=e;(t=e.hasClass("redux-field-container")?t:e.parents(".redux-field-container:first")).is(":hidden")||t.hasClass("redux-field-init")&&(t.removeClass("redux-field-init"),e.find(".ace-editor").each(function(e,t){var i=t,a=JSON.parse(s(this).parent().find(".localize_data").val()),d=s(t).attr("data-editor"),r=ace.edit(d);r.setTheme("ace/theme/"+s(t).attr("data-theme")),r.getSession().setMode("ace/mode/"+s(t).attr("data-mode")),r.setOptions(a),r.on("change",function(){s("#"+i.id).val(r.getSession().getValue()),redux_change(s(t)),r.resize()})}))})}}(jQuery);