matcha-components 20.237.0 → 20.239.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/text-editor/css/codemirror.min.css +499 -0
- package/assets/text-editor/css/suneditor.min.css +5375 -1
- package/assets/text-editor/js/codemirror.min.js +8 -0
- package/assets/text-editor/js/css.js +8 -0
- package/assets/text-editor/js/htmlmixed copy.js +1 -0
- package/assets/text-editor/js/htmlmixed.js +8 -0
- package/assets/text-editor/js/javascript.js +8 -0
- package/assets/text-editor/js/xml.min.js +8 -0
- package/assets/text-editor/langs/pt-br.js +241 -0
- package/assets/text-editor/suneditor.html +95 -22
- package/fesm2022/matcha-components.mjs +123 -90
- package/fesm2022/matcha-components.mjs.map +1 -1
- package/index.d.ts +2 -3
- package/package.json +1 -1
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minified by jsDelivr using Terser v5.37.0.
|
|
3
|
+
* Original file: /npm/codemirror@6.65.7/mode/htmlmixed/htmlmixed.js
|
|
4
|
+
*
|
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
|
+
*/
|
|
7
|
+
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror"),require("../xml/xml"),require("../javascript/javascript"),require("../css/css")):"function"==typeof define&&define.amd?define(["../../lib/codemirror","../xml/xml","../javascript/javascript","../css/css"],t):t(CodeMirror)}((function(t){"use strict";var e={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};var a={};function n(t,e){var n=t.match(function(t){var e=a[t];return e||(a[t]=new RegExp("\\s+"+t+"\\s*=\\s*('|\")?([^'\"]+)('|\")?\\s*"))}(e));return n?/^\s*(.*?)\s*$/.exec(n[2])[1]:""}function l(t,e){return new RegExp((e?"^":"")+"</\\s*"+t+"\\s*>","i")}function r(t,e){for(var a in t)for(var n=e[a]||(e[a]=[]),l=t[a],r=l.length-1;r>=0;r--)n.unshift(l[r])}t.defineMode("htmlmixed",(function(a,o){var i=t.getMode(a,{name:"xml",htmlMode:!0,multilineTagIndentFactor:o.multilineTagIndentFactor,multilineTagIndentPastTag:o.multilineTagIndentPastTag,allowMissingTagName:o.allowMissingTagName}),c={},s=o&&o.tags,u=o&&o.scriptTypes;if(r(e,c),s&&r(s,c),u)for(var m=u.length-1;m>=0;m--)c.script.unshift(["type",u[m].matches,u[m].mode]);function d(e,r){var o,s=i.token(e,r.htmlState),u=/\btag\b/.test(s);if(u&&!/[<>\s\/]/.test(e.current())&&(o=r.htmlState.tagName&&r.htmlState.tagName.toLowerCase())&&c.hasOwnProperty(o))r.inTag=o+" ";else if(r.inTag&&u&&/>$/.test(e.current())){var m=/^([\S]+) (.*)/.exec(r.inTag);r.inTag=null;var f=">"==e.current()&&function(t,e){for(var a=0;a<t.length;a++){var l=t[a];if(!l[0]||l[1].test(n(e,l[0])))return l[2]}}(c[m[1]],m[2]),g=t.getMode(a,f),p=l(m[1],!0),h=l(m[1],!1);r.token=function(t,e){return t.match(p,!1)?(e.token=d,e.localState=e.localMode=null,null):function(t,e,a){var n=t.current(),l=n.search(e);return l>-1?t.backUp(n.length-l):n.match(/<\/?$/)&&(t.backUp(n.length),t.match(e,!1)||t.match(n)),a}(t,h,e.localMode.token(t,e.localState))},r.localMode=g,r.localState=t.startState(g,i.indent(r.htmlState,"",""))}else r.inTag&&(r.inTag+=e.current(),e.eol()&&(r.inTag+=" "));return s}return{startState:function(){return{token:d,inTag:null,localMode:null,localState:null,htmlState:t.startState(i)}},copyState:function(e){var a;return e.localState&&(a=t.copyState(e.localMode,e.localState)),{token:e.token,inTag:e.inTag,localMode:e.localMode,localState:a,htmlState:t.copyState(i,e.htmlState)}},token:function(t,e){return e.token(t,e)},indent:function(e,a,n){return!e.localMode||/^\s*<\//.test(a)?i.indent(e.htmlState,a,n):e.localMode.indent?e.localMode.indent(e.localState,a,n):t.Pass},innerMode:function(t){return{state:t.localState||t.htmlState,mode:t.localMode||i}}}}),"xml","javascript","css"),t.defineMIME("text/html","htmlmixed")}));
|
|
8
|
+
//# sourceMappingURL=/sm/e2c7ccb5e794d8515250b328c4947e850defb14ee2247c63cd3549e4879addb0.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minified by jsDelivr using Terser v5.37.0.
|
|
3
|
+
* Original file: /npm/codemirror@6.65.7/mode/javascript/javascript.js
|
|
4
|
+
*
|
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
|
+
*/
|
|
7
|
+
!function(e){"object"==typeof exports&&"object"==typeof module?e(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],e):e(CodeMirror)}((function(e){"use strict";e.defineMode("javascript",(function(t,r){var n,a,i=t.indentUnit,o=r.statementIndent,c=r.jsonld,s=r.json||c,u=!1!==r.trackScope,f=r.typescript,l=r.wordCharacters||/[\w$\xa1-\uffff]/,d=function(){function e(e){return{type:e,style:"keyword"}}var t=e("keyword a"),r=e("keyword b"),n=e("keyword c"),a=e("keyword d"),i=e("operator"),o={type:"atom",style:"atom"};return{if:e("if"),while:t,with:t,else:r,do:r,try:r,finally:r,return:a,break:a,continue:a,new:e("new"),delete:n,void:n,throw:n,debugger:e("debugger"),var:e("var"),const:e("var"),let:e("var"),function:e("function"),catch:e("catch"),for:e("for"),switch:e("switch"),case:e("case"),default:e("default"),in:i,typeof:i,instanceof:i,true:o,false:o,null:o,undefined:o,NaN:o,Infinity:o,this:e("this"),class:e("class"),super:e("atom"),yield:n,export:e("export"),import:e("import"),extends:n,await:n}}(),p=/[+\-*&%=<>!?|~^@]/,m=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function v(e,t,r){return n=e,a=r,t}function k(e,t){var r,n=e.next();if('"'==n||"'"==n)return t.tokenize=(r=n,function(e,t){var n,a=!1;if(c&&"@"==e.peek()&&e.match(m))return t.tokenize=k,v("jsonld-keyword","meta");for(;null!=(n=e.next())&&(n!=r||a);)a=!a&&"\\"==n;return a||(t.tokenize=k),v("string","string")}),t.tokenize(e,t);if("."==n&&e.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return v("number","number");if("."==n&&e.match(".."))return v("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(n))return v(n);if("="==n&&e.eat(">"))return v("=>","operator");if("0"==n&&e.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return v("number","number");if(/\d/.test(n))return e.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),v("number","number");if("/"==n)return e.eat("*")?(t.tokenize=y,y(e,t)):e.eat("/")?(e.skipToEnd(),v("comment","comment")):Ze(e,t,1)?(function(e){for(var t,r=!1,n=!1;null!=(t=e.next());){if(!r){if("/"==t&&!n)return;"["==t?n=!0:n&&"]"==t&&(n=!1)}r=!r&&"\\"==t}}(e),e.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),v("regexp","string-2")):(e.eat("="),v("operator","operator",e.current()));if("`"==n)return t.tokenize=w,w(e,t);if("#"==n&&"!"==e.peek())return e.skipToEnd(),v("meta","meta");if("#"==n&&e.eatWhile(l))return v("variable","property");if("<"==n&&e.match("!--")||"-"==n&&e.match("->")&&!/\S/.test(e.string.slice(0,e.start)))return e.skipToEnd(),v("comment","comment");if(p.test(n))return">"==n&&t.lexical&&">"==t.lexical.type||(e.eat("=")?"!"!=n&&"="!=n||e.eat("="):/[<>*+\-|&?]/.test(n)&&(e.eat(n),">"==n&&e.eat(n))),"?"==n&&e.eat(".")?v("."):v("operator","operator",e.current());if(l.test(n)){e.eatWhile(l);var a=e.current();if("."!=t.lastType){if(d.propertyIsEnumerable(a)){var i=d[a];return v(i.type,i.style,a)}if("async"==a&&e.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return v("async","keyword",a)}return v("variable","variable",a)}}function y(e,t){for(var r,n=!1;r=e.next();){if("/"==r&&n){t.tokenize=k;break}n="*"==r}return v("comment","comment")}function w(e,t){for(var r,n=!1;null!=(r=e.next());){if(!n&&("`"==r||"$"==r&&e.eat("{"))){t.tokenize=k;break}n=!n&&"\\"==r}return v("quasi","string-2",e.current())}function b(e,t){t.fatArrowAt&&(t.fatArrowAt=null);var r=e.string.indexOf("=>",e.start);if(!(r<0)){if(f){var n=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(e.string.slice(e.start,r));n&&(r=n.index)}for(var a=0,i=!1,o=r-1;o>=0;--o){var c=e.string.charAt(o),s="([{}])".indexOf(c);if(s>=0&&s<3){if(!a){++o;break}if(0==--a){"("==c&&(i=!0);break}}else if(s>=3&&s<6)++a;else if(l.test(c))i=!0;else if(/["'\/`]/.test(c))for(;;--o){if(0==o)return;if(e.string.charAt(o-1)==c&&"\\"!=e.string.charAt(o-2)){o--;break}}else if(i&&!a){++o;break}}i&&!a&&(t.fatArrowAt=o)}}var x={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function h(e,t,r,n,a,i){this.indented=e,this.column=t,this.type=r,this.prev=a,this.info=i,null!=n&&(this.align=n)}function g(e,t){if(!u)return!1;for(var r=e.localVars;r;r=r.next)if(r.name==t)return!0;for(var n=e.context;n;n=n.prev)for(r=n.vars;r;r=r.next)if(r.name==t)return!0}function j(e,t,r,n,a){var i=e.cc;for(M.state=e,M.stream=a,M.marked=null,M.cc=i,M.style=t,e.lexical.hasOwnProperty("align")||(e.lexical.align=!0);;){if((i.length?i.pop():s?F:W)(r,n)){for(;i.length&&i[i.length-1].lex;)i.pop()();return M.marked?M.marked:"variable"==r&&g(e,n)?"variable-2":t}}}var M={state:null,column:null,marked:null,cc:null};function A(){for(var e=arguments.length-1;e>=0;e--)M.cc.push(arguments[e])}function V(){return A.apply(null,arguments),!0}function E(e,t){for(var r=t;r;r=r.next)if(r.name==e)return!0;return!1}function z(e){var t=M.state;if(M.marked="def",u){if(t.context)if("var"==t.lexical.info&&t.context&&t.context.block){var n=I(e,t.context);if(null!=n)return void(t.context=n)}else if(!E(e,t.localVars))return void(t.localVars=new q(e,t.localVars));r.globalVars&&!E(e,t.globalVars)&&(t.globalVars=new q(e,t.globalVars))}}function I(e,t){if(t){if(t.block){var r=I(e,t.prev);return r?r==t.prev?t:new $(r,t.vars,!0):null}return E(e,t.vars)?t:new $(t.prev,new q(e,t.vars),!1)}return null}function T(e){return"public"==e||"private"==e||"protected"==e||"abstract"==e||"readonly"==e}function $(e,t,r){this.prev=e,this.vars=t,this.block=r}function q(e,t){this.name=e,this.next=t}var C=new q("this",new q("arguments",null));function S(){M.state.context=new $(M.state.context,M.state.localVars,!1),M.state.localVars=C}function _(){M.state.context=new $(M.state.context,M.state.localVars,!0),M.state.localVars=null}function O(){M.state.localVars=M.state.context.vars,M.state.context=M.state.context.prev}function P(e,t){var r=function(){var r=M.state,n=r.indented;if("stat"==r.lexical.type)n=r.lexical.indented;else for(var a=r.lexical;a&&")"==a.type&&a.align;a=a.prev)n=a.indented;r.lexical=new h(n,M.stream.column(),e,null,r.lexical,t)};return r.lex=!0,r}function N(){var e=M.state;e.lexical.prev&&(")"==e.lexical.type&&(e.indented=e.lexical.indented),e.lexical=e.lexical.prev)}function U(e){return function t(r){return r==e?V():";"==e||"}"==r||")"==r||"]"==r?A():V(t)}}function W(e,t){return"var"==e?V(P("vardef",t),Me,U(";"),N):"keyword a"==e?V(P("form"),D,W,N):"keyword b"==e?V(P("form"),W,N):"keyword d"==e?M.stream.match(/^\s*$/,!1)?V():V(P("stat"),J,U(";"),N):"debugger"==e?V(U(";")):"{"==e?V(P("}"),_,se,N,O):";"==e?V():"if"==e?("else"==M.state.lexical.info&&M.state.cc[M.state.cc.length-1]==N&&M.state.cc.pop()(),V(P("form"),D,W,N,Te)):"function"==e?V(Se):"for"==e?V(P("form"),_,$e,W,O,N):"class"==e||f&&"interface"==t?(M.marked="keyword",V(P("form","class"==e?e:t),Ue,N)):"variable"==e?f&&"declare"==t?(M.marked="keyword",V(W)):f&&("module"==t||"enum"==t||"type"==t)&&M.stream.match(/^\s*\w/,!1)?(M.marked="keyword","enum"==t?V(Xe):"type"==t?V(Oe,U("operator"),pe,U(";")):V(P("form"),Ae,U("{"),P("}"),se,N,N)):f&&"namespace"==t?(M.marked="keyword",V(P("form"),F,W,N)):f&&"abstract"==t?(M.marked="keyword",V(W)):V(P("stat"),te):"switch"==e?V(P("form"),D,U("{"),P("}","switch"),_,se,N,N,O):"case"==e?V(F,U(":")):"default"==e?V(U(":")):"catch"==e?V(P("form"),S,B,W,N,O):"export"==e?V(P("stat"),He,N):"import"==e?V(P("stat"),Ge,N):"async"==e?V(W):"@"==t?V(F,W):A(P("stat"),F,U(";"),N)}function B(e){if("("==e)return V(Pe,U(")"))}function F(e,t){return G(e,t,!1)}function H(e,t){return G(e,t,!0)}function D(e){return"("!=e?A():V(P(")"),J,U(")"),N)}function G(e,t,r){if(M.state.fatArrowAt==M.stream.start){var n=r?Y:X;if("("==e)return V(S,P(")"),oe(Pe,")"),N,U("=>"),n,O);if("variable"==e)return A(S,Ae,U("=>"),n,O)}var a=r?L:K;return x.hasOwnProperty(e)?V(a):"function"==e?V(Se,a):"class"==e||f&&"interface"==t?(M.marked="keyword",V(P("form"),Ne,N)):"keyword c"==e||"async"==e?V(r?H:F):"("==e?V(P(")"),J,U(")"),N,a):"operator"==e||"spread"==e?V(r?H:F):"["==e?V(P("]"),Re,N,a):"{"==e?ce(ne,"}",null,a):"quasi"==e?A(Q,a):"new"==e?V(function(e){return function(t){return"."==t?V(e?ee:Z):"variable"==t&&f?V(he,e?L:K):A(e?H:F)}}(r)):V()}function J(e){return e.match(/[;\}\)\],]/)?A():A(F)}function K(e,t){return","==e?V(J):L(e,t,!1)}function L(e,t,r){var n=0==r?K:L,a=0==r?F:H;return"=>"==e?V(S,r?Y:X,O):"operator"==e?/\+\+|--/.test(t)||f&&"!"==t?V(n):f&&"<"==t&&M.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?V(P(">"),oe(pe,">"),N,n):"?"==t?V(F,U(":"),a):V(a):"quasi"==e?A(Q,n):";"!=e?"("==e?ce(H,")","call",n):"."==e?V(re,n):"["==e?V(P("]"),J,U("]"),N,n):f&&"as"==t?(M.marked="keyword",V(pe,n)):"regexp"==e?(M.state.lastType=M.marked="operator",M.stream.backUp(M.stream.pos-M.stream.start-1),V(a)):void 0:void 0}function Q(e,t){return"quasi"!=e?A():"${"!=t.slice(t.length-2)?V(Q):V(J,R)}function R(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,V(Q)}function X(e){return b(M.stream,M.state),A("{"==e?W:F)}function Y(e){return b(M.stream,M.state),A("{"==e?W:H)}function Z(e,t){if("target"==t)return M.marked="keyword",V(K)}function ee(e,t){if("target"==t)return M.marked="keyword",V(L)}function te(e){return":"==e?V(N,W):A(K,U(";"),N)}function re(e){if("variable"==e)return M.marked="property",V()}function ne(e,t){return"async"==e?(M.marked="property",V(ne)):"variable"==e||"keyword"==M.style?(M.marked="property","get"==t||"set"==t?V(ae):(f&&M.state.fatArrowAt==M.stream.start&&(r=M.stream.match(/^\s*:\s*/,!1))&&(M.state.fatArrowAt=M.stream.pos+r[0].length),V(ie))):"number"==e||"string"==e?(M.marked=c?"property":M.style+" property",V(ie)):"jsonld-keyword"==e?V(ie):f&&T(t)?(M.marked="keyword",V(ne)):"["==e?V(F,ue,U("]"),ie):"spread"==e?V(H,ie):"*"==t?(M.marked="keyword",V(ne)):":"==e?A(ie):void 0;var r}function ae(e){return"variable"!=e?A(ie):(M.marked="property",V(Se))}function ie(e){return":"==e?V(H):"("==e?A(Se):void 0}function oe(e,t,r){function n(a,i){if(r?r.indexOf(a)>-1:","==a){var o=M.state.lexical;return"call"==o.info&&(o.pos=(o.pos||0)+1),V((function(r,n){return r==t||n==t?A():A(e)}),n)}return a==t||i==t?V():r&&r.indexOf(";")>-1?A(e):V(U(t))}return function(r,a){return r==t||a==t?V():A(e,n)}}function ce(e,t,r){for(var n=3;n<arguments.length;n++)M.cc.push(arguments[n]);return V(P(t,r),oe(e,t),N)}function se(e){return"}"==e?V():A(W,se)}function ue(e,t){if(f){if(":"==e)return V(pe);if("?"==t)return V(ue)}}function fe(e,t){if(f&&(":"==e||"in"==t))return V(pe)}function le(e){if(f&&":"==e)return M.stream.match(/^\s*\w+\s+is\b/,!1)?V(F,de,pe):V(pe)}function de(e,t){if("is"==t)return M.marked="keyword",V()}function pe(e,t){return"keyof"==t||"typeof"==t||"infer"==t||"readonly"==t?(M.marked="keyword",V("typeof"==t?H:pe)):"variable"==e||"void"==t?(M.marked="type",V(xe)):"|"==t||"&"==t?V(pe):"string"==e||"number"==e||"atom"==e?V(xe):"["==e?V(P("]"),oe(pe,"]",","),N,xe):"{"==e?V(P("}"),ve,N,xe):"("==e?V(oe(be,")"),me,xe):"<"==e?V(oe(pe,">"),pe):"quasi"==e?A(ye,xe):void 0}function me(e){if("=>"==e)return V(pe)}function ve(e){return e.match(/[\}\)\]]/)?V():","==e||";"==e?V(ve):A(ke,ve)}function ke(e,t){return"variable"==e||"keyword"==M.style?(M.marked="property",V(ke)):"?"==t||"number"==e||"string"==e?V(ke):":"==e?V(pe):"["==e?V(U("variable"),fe,U("]"),ke):"("==e?A(_e,ke):e.match(/[;\}\)\],]/)?void 0:V()}function ye(e,t){return"quasi"!=e?A():"${"!=t.slice(t.length-2)?V(ye):V(pe,we)}function we(e){if("}"==e)return M.marked="string-2",M.state.tokenize=w,V(ye)}function be(e,t){return"variable"==e&&M.stream.match(/^\s*[?:]/,!1)||"?"==t?V(be):":"==e?V(pe):"spread"==e?V(be):A(pe)}function xe(e,t){return"<"==t?V(P(">"),oe(pe,">"),N,xe):"|"==t||"."==e||"&"==t?V(pe):"["==e?V(pe,U("]"),xe):"extends"==t||"implements"==t?(M.marked="keyword",V(pe)):"?"==t?V(pe,U(":"),pe):void 0}function he(e,t){if("<"==t)return V(P(">"),oe(pe,">"),N,xe)}function ge(){return A(pe,je)}function je(e,t){if("="==t)return V(pe)}function Me(e,t){return"enum"==t?(M.marked="keyword",V(Xe)):A(Ae,ue,ze,Ie)}function Ae(e,t){return f&&T(t)?(M.marked="keyword",V(Ae)):"variable"==e?(z(t),V()):"spread"==e?V(Ae):"["==e?ce(Ee,"]"):"{"==e?ce(Ve,"}"):void 0}function Ve(e,t){return"variable"!=e||M.stream.match(/^\s*:/,!1)?("variable"==e&&(M.marked="property"),"spread"==e?V(Ae):"}"==e?A():"["==e?V(F,U("]"),U(":"),Ve):V(U(":"),Ae,ze)):(z(t),V(ze))}function Ee(){return A(Ae,ze)}function ze(e,t){if("="==t)return V(H)}function Ie(e){if(","==e)return V(Me)}function Te(e,t){if("keyword b"==e&&"else"==t)return V(P("form","else"),W,N)}function $e(e,t){return"await"==t?V($e):"("==e?V(P(")"),qe,N):void 0}function qe(e){return"var"==e?V(Me,Ce):"variable"==e?V(Ce):A(Ce)}function Ce(e,t){return")"==e?V():";"==e?V(Ce):"in"==t||"of"==t?(M.marked="keyword",V(F,Ce)):A(F,Ce)}function Se(e,t){return"*"==t?(M.marked="keyword",V(Se)):"variable"==e?(z(t),V(Se)):"("==e?V(S,P(")"),oe(Pe,")"),N,le,W,O):f&&"<"==t?V(P(">"),oe(ge,">"),N,Se):void 0}function _e(e,t){return"*"==t?(M.marked="keyword",V(_e)):"variable"==e?(z(t),V(_e)):"("==e?V(S,P(")"),oe(Pe,")"),N,le,O):f&&"<"==t?V(P(">"),oe(ge,">"),N,_e):void 0}function Oe(e,t){return"keyword"==e||"variable"==e?(M.marked="type",V(Oe)):"<"==t?V(P(">"),oe(ge,">"),N):void 0}function Pe(e,t){return"@"==t&&V(F,Pe),"spread"==e?V(Pe):f&&T(t)?(M.marked="keyword",V(Pe)):f&&"this"==e?V(ue,ze):A(Ae,ue,ze)}function Ne(e,t){return"variable"==e?Ue(e,t):We(e,t)}function Ue(e,t){if("variable"==e)return z(t),V(We)}function We(e,t){return"<"==t?V(P(">"),oe(ge,">"),N,We):"extends"==t||"implements"==t||f&&","==e?("implements"==t&&(M.marked="keyword"),V(f?pe:F,We)):"{"==e?V(P("}"),Be,N):void 0}function Be(e,t){return"async"==e||"variable"==e&&("static"==t||"get"==t||"set"==t||f&&T(t))&&M.stream.match(/^\s+[\w$\xa1-\uffff]/,!1)?(M.marked="keyword",V(Be)):"variable"==e||"keyword"==M.style?(M.marked="property",V(Fe,Be)):"number"==e||"string"==e?V(Fe,Be):"["==e?V(F,ue,U("]"),Fe,Be):"*"==t?(M.marked="keyword",V(Be)):f&&"("==e?A(_e,Be):";"==e||","==e?V(Be):"}"==e?V():"@"==t?V(F,Be):void 0}function Fe(e,t){if("!"==t)return V(Fe);if("?"==t)return V(Fe);if(":"==e)return V(pe,ze);if("="==t)return V(H);var r=M.state.lexical.prev;return A(r&&"interface"==r.info?_e:Se)}function He(e,t){return"*"==t?(M.marked="keyword",V(Qe,U(";"))):"default"==t?(M.marked="keyword",V(F,U(";"))):"{"==e?V(oe(De,"}"),Qe,U(";")):A(W)}function De(e,t){return"as"==t?(M.marked="keyword",V(U("variable"))):"variable"==e?A(H,De):void 0}function Ge(e){return"string"==e?V():"("==e?A(F):"."==e?A(K):A(Je,Ke,Qe)}function Je(e,t){return"{"==e?ce(Je,"}"):("variable"==e&&z(t),"*"==t&&(M.marked="keyword"),V(Le))}function Ke(e){if(","==e)return V(Je,Ke)}function Le(e,t){if("as"==t)return M.marked="keyword",V(Je)}function Qe(e,t){if("from"==t)return M.marked="keyword",V(F)}function Re(e){return"]"==e?V():A(oe(H,"]"))}function Xe(){return A(P("form"),Ae,U("{"),P("}"),oe(Ye,"}"),N,N)}function Ye(){return A(Ae,ze)}function Ze(e,t,r){return t.tokenize==k&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(t.lastType)||"quasi"==t.lastType&&/\{\s*$/.test(e.string.slice(0,e.pos-(r||0)))}return S.lex=_.lex=!0,O.lex=!0,N.lex=!0,{startState:function(e){var t={tokenize:k,lastType:"sof",cc:[],lexical:new h((e||0)-i,0,"block",!1),localVars:r.localVars,context:r.localVars&&new $(null,null,!1),indented:e||0};return r.globalVars&&"object"==typeof r.globalVars&&(t.globalVars=r.globalVars),t},token:function(e,t){if(e.sol()&&(t.lexical.hasOwnProperty("align")||(t.lexical.align=!1),t.indented=e.indentation(),b(e,t)),t.tokenize!=y&&e.eatSpace())return null;var r=t.tokenize(e,t);return"comment"==n?r:(t.lastType="operator"!=n||"++"!=a&&"--"!=a?n:"incdec",j(t,r,n,a,e))},indent:function(t,n){if(t.tokenize==y||t.tokenize==w)return e.Pass;if(t.tokenize!=k)return 0;var a,c=n&&n.charAt(0),s=t.lexical;if(!/^\s*else\b/.test(n))for(var u=t.cc.length-1;u>=0;--u){var f=t.cc[u];if(f==N)s=s.prev;else if(f!=Te&&f!=O)break}for(;("stat"==s.type||"form"==s.type)&&("}"==c||(a=t.cc[t.cc.length-1])&&(a==K||a==L)&&!/^[,\.=+\-*:?[\(]/.test(n));)s=s.prev;o&&")"==s.type&&"stat"==s.prev.type&&(s=s.prev);var l=s.type,d=c==l;return"vardef"==l?s.indented+("operator"==t.lastType||","==t.lastType?s.info.length+1:0):"form"==l&&"{"==c?s.indented:"form"==l?s.indented+i:"stat"==l?s.indented+(function(e,t){return"operator"==e.lastType||","==e.lastType||p.test(t.charAt(0))||/[,.]/.test(t.charAt(0))}(t,n)?o||i:0):"switch"!=s.info||d||0==r.doubleIndentSwitch?s.align?s.column+(d?0:1):s.indented+(d?0:i):s.indented+(/^(?:case|default)\b/.test(n)?i:2*i)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:s?null:"/*",blockCommentEnd:s?null:"*/",blockCommentContinue:s?null:" * ",lineComment:s?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:s?"json":"javascript",jsonldMode:c,jsonMode:s,expressionAllowed:Ze,skipExpression:function(t){j(t,"atom","atom","true",new e.StringStream("",2,null))}}})),e.registerHelper("wordChars","javascript",/[\w$]/),e.defineMIME("text/javascript","javascript"),e.defineMIME("text/ecmascript","javascript"),e.defineMIME("application/javascript","javascript"),e.defineMIME("application/x-javascript","javascript"),e.defineMIME("application/ecmascript","javascript"),e.defineMIME("application/json",{name:"javascript",json:!0}),e.defineMIME("application/x-json",{name:"javascript",json:!0}),e.defineMIME("application/manifest+json",{name:"javascript",json:!0}),e.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),e.defineMIME("text/typescript",{name:"javascript",typescript:!0}),e.defineMIME("application/typescript",{name:"javascript",typescript:!0})}));
|
|
8
|
+
//# sourceMappingURL=/sm/f618537a98ad3c6d625351036835c34eb4fcc57705a5829a2749ae384f7dbc04.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Minified by jsDelivr using Terser v5.37.0.
|
|
3
|
+
* Original file: /npm/codemirror@6.65.7/mode/xml/xml.js
|
|
4
|
+
*
|
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
|
+
*/
|
|
7
|
+
!function(t){"object"==typeof exports&&"object"==typeof module?t(require("../../lib/codemirror")):"function"==typeof define&&define.amd?define(["../../lib/codemirror"],t):t(CodeMirror)}((function(t){"use strict";var e={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},n={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};t.defineMode("xml",(function(r,o){var a,i,l=r.indentUnit,u={},c=o.htmlMode?e:n;for(var d in c)u[d]=c[d];for(var d in o)u[d]=o[d];function s(t,e){function n(n){return e.tokenize=n,n(t,e)}var r=t.next();return"<"==r?t.eat("!")?t.eat("[")?t.match("CDATA[")?n(m("atom","]]>")):null:t.match("--")?n(m("comment","--\x3e")):t.match("DOCTYPE",!0,!0)?(t.eatWhile(/[\w\._\-]/),n(g(1))):null:t.eat("?")?(t.eatWhile(/[\w\._\-]/),e.tokenize=m("meta","?>"),"meta"):(a=t.eat("/")?"closeTag":"openTag",e.tokenize=f,"tag bracket"):"&"==r?(t.eat("#")?t.eat("x")?t.eatWhile(/[a-fA-F\d]/)&&t.eat(";"):t.eatWhile(/[\d]/)&&t.eat(";"):t.eatWhile(/[\w\.\-:]/)&&t.eat(";"))?"atom":"error":(t.eatWhile(/[^&<]/),null)}function f(t,e){var n,r,o=t.next();if(">"==o||"/"==o&&t.eat(">"))return e.tokenize=s,a=">"==o?"endTag":"selfcloseTag","tag bracket";if("="==o)return a="equals",null;if("<"==o){e.tokenize=s,e.state=k,e.tagName=e.tagStart=null;var i=e.tokenize(t,e);return i?i+" tag error":"tag error"}return/[\'\"]/.test(o)?(e.tokenize=(n=o,r=function(t,e){for(;!t.eol();)if(t.next()==n){e.tokenize=f;break}return"string"},r.isInAttribute=!0,r),e.stringStartCol=t.column(),e.tokenize(t,e)):(t.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function m(t,e){return function(n,r){for(;!n.eol();){if(n.match(e)){r.tokenize=s;break}n.next()}return t}}function g(t){return function(e,n){for(var r;null!=(r=e.next());){if("<"==r)return n.tokenize=g(t+1),n.tokenize(e,n);if(">"==r){if(1==t){n.tokenize=s;break}return n.tokenize=g(t-1),n.tokenize(e,n)}}return"meta"}}function p(t){return t&&t.toLowerCase()}function h(t,e,n){this.prev=t.context,this.tagName=e||"",this.indent=t.indented,this.startOfLine=n,(u.doNotIndent.hasOwnProperty(e)||t.context&&t.context.noIndent)&&(this.noIndent=!0)}function x(t){t.context&&(t.context=t.context.prev)}function b(t,e){for(var n;;){if(!t.context)return;if(n=t.context.tagName,!u.contextGrabbers.hasOwnProperty(p(n))||!u.contextGrabbers[p(n)].hasOwnProperty(p(e)))return;x(t)}}function k(t,e,n){return"openTag"==t?(n.tagStart=e.column(),w):"closeTag"==t?v:k}function w(t,e,n){return"word"==t?(n.tagName=e.current(),i="tag",y):u.allowMissingTagName&&"endTag"==t?(i="tag bracket",y(t,e,n)):(i="error",w)}function v(t,e,n){if("word"==t){var r=e.current();return n.context&&n.context.tagName!=r&&u.implicitlyClosed.hasOwnProperty(p(n.context.tagName))&&x(n),n.context&&n.context.tagName==r||!1===u.matchClosing?(i="tag",T):(i="tag error",N)}return u.allowMissingTagName&&"endTag"==t?(i="tag bracket",T(t,e,n)):(i="error",N)}function T(t,e,n){return"endTag"!=t?(i="error",T):(x(n),k)}function N(t,e,n){return i="error",T(t,0,n)}function y(t,e,n){if("word"==t)return i="attribute",C;if("endTag"==t||"selfcloseTag"==t){var r=n.tagName,o=n.tagStart;return n.tagName=n.tagStart=null,"selfcloseTag"==t||u.autoSelfClosers.hasOwnProperty(p(r))?b(n,r):(b(n,r),n.context=new h(n,r,o==n.indented)),k}return i="error",y}function C(t,e,n){return"equals"==t?z:(u.allowMissing||(i="error"),y(t,0,n))}function z(t,e,n){return"string"==t?M:"word"==t&&u.allowUnquoted?(i="string",y):(i="error",y(t,0,n))}function M(t,e,n){return"string"==t?M:y(t,0,n)}return s.isInText=!0,{startState:function(t){var e={tokenize:s,state:k,indented:t||0,tagName:null,tagStart:null,context:null};return null!=t&&(e.baseIndent=t),e},token:function(t,e){if(!e.tagName&&t.sol()&&(e.indented=t.indentation()),t.eatSpace())return null;a=null;var n=e.tokenize(t,e);return(n||a)&&"comment"!=n&&(i=null,e.state=e.state(a||n,t,e),i&&(n="error"==i?n+" error":i)),n},indent:function(e,n,r){var o=e.context;if(e.tokenize.isInAttribute)return e.tagStart==e.indented?e.stringStartCol+1:e.indented+l;if(o&&o.noIndent)return t.Pass;if(e.tokenize!=f&&e.tokenize!=s)return r?r.match(/^(\s*)/)[0].length:0;if(e.tagName)return!1!==u.multilineTagIndentPastTag?e.tagStart+e.tagName.length+2:e.tagStart+l*(u.multilineTagIndentFactor||1);if(u.alignCDATA&&/<!\[CDATA\[/.test(n))return 0;var a=n&&/^<(\/)?([\w_:\.-]*)/.exec(n);if(a&&a[1])for(;o;){if(o.tagName==a[2]){o=o.prev;break}if(!u.implicitlyClosed.hasOwnProperty(p(o.tagName)))break;o=o.prev}else if(a)for(;o;){var i=u.contextGrabbers[p(o.tagName)];if(!i||!i.hasOwnProperty(p(a[2])))break;o=o.prev}for(;o&&o.prev&&!o.startOfLine;)o=o.prev;return o?o.indent+l:e.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"\x3c!--",blockCommentEnd:"--\x3e",configuration:u.htmlMode?"html":"xml",helperType:u.htmlMode?"html":"xml",skipAttribute:function(t){t.state==z&&(t.state=y)},xmlCurrentTag:function(t){return t.tagName?{name:t.tagName,close:"closeTag"==t.type}:null},xmlCurrentContext:function(t){for(var e=[],n=t.context;n;n=n.prev)e.push(n.tagName);return e.reverse()}}})),t.defineMIME("text/xml","xml"),t.defineMIME("application/xml","xml"),t.mimeModes.hasOwnProperty("text/html")||t.defineMIME("text/html",{name:"xml",htmlMode:!0})}));
|
|
8
|
+
//# sourceMappingURL=/sm/42d0ae3b4eedfc79a022b8398bc4ebaa49ff23393e280b4a7a3ac67a8a746931.map
|
|
@@ -0,0 +1,241 @@
|
|
|
1
|
+
// Portuguese (Brazil)
|
|
2
|
+
// 브라질 포르투갈어
|
|
3
|
+
(function (global, factory) {
|
|
4
|
+
if (typeof module === 'object' && typeof module.exports === 'object') {
|
|
5
|
+
module.exports = global.document
|
|
6
|
+
? factory(global, true)
|
|
7
|
+
: function (w) {
|
|
8
|
+
if (!w.document) {
|
|
9
|
+
throw new Error('SUNEDITOR_LANG a window with a document');
|
|
10
|
+
}
|
|
11
|
+
return factory(w);
|
|
12
|
+
};
|
|
13
|
+
} else {
|
|
14
|
+
factory(global);
|
|
15
|
+
}
|
|
16
|
+
})(typeof window !== 'undefined' ? window : this, function (window, noGlobal) {
|
|
17
|
+
const lang = {
|
|
18
|
+
code: 'pt_br',
|
|
19
|
+
align: 'Alinhar',
|
|
20
|
+
alignBottom: 'Alinhar inferior',
|
|
21
|
+
alignCenter: 'Centralizar',
|
|
22
|
+
alignJustify: 'Justificar',
|
|
23
|
+
alignLeft: 'Alinhar à esquerda',
|
|
24
|
+
alignMiddle: 'Alinhar central',
|
|
25
|
+
alignRight: 'Alinhar à direita',
|
|
26
|
+
alignTop: 'Alinhar superior',
|
|
27
|
+
anchor: 'Âncora',
|
|
28
|
+
asBlock: 'Como um bloco',
|
|
29
|
+
asInline: 'Como um inline',
|
|
30
|
+
asLink: 'Como um link',
|
|
31
|
+
audio: 'Áudio',
|
|
32
|
+
audioGallery: 'Galeria de áudio',
|
|
33
|
+
audio_modal_file: 'Selecionar arquivos',
|
|
34
|
+
audio_modal_title: 'Inserir áudio',
|
|
35
|
+
audio_modal_url: 'URL do áudio',
|
|
36
|
+
autoSize: 'Tamanho automático',
|
|
37
|
+
backgroundColor: 'Cor de destaque',
|
|
38
|
+
basic: 'Básico',
|
|
39
|
+
blockStyle: 'Estilo de bloco',
|
|
40
|
+
bold: 'Negrito',
|
|
41
|
+
border: 'Borda',
|
|
42
|
+
border_all: 'Borda tudo',
|
|
43
|
+
border_inside: 'Borda interna',
|
|
44
|
+
border_horizontal: 'Borda horizontal',
|
|
45
|
+
border_vertical: 'Borda vertical',
|
|
46
|
+
border_outside: 'Borda externa',
|
|
47
|
+
border_left: 'Borda esquerda',
|
|
48
|
+
border_top: 'Borda superior',
|
|
49
|
+
border_right: 'Borda direita',
|
|
50
|
+
border_bottom: 'Borda inferior',
|
|
51
|
+
border_none: 'Borda nenhuma',
|
|
52
|
+
bulletedList: 'Lista desordenada',
|
|
53
|
+
cancel: 'Cancelar',
|
|
54
|
+
caption: 'Inserir descrição',
|
|
55
|
+
cellProperties: 'Propriedades da célula',
|
|
56
|
+
center: 'Centro',
|
|
57
|
+
close: 'Fechar',
|
|
58
|
+
codeView: 'Mostrar códigos',
|
|
59
|
+
color: 'Cor',
|
|
60
|
+
colorPicker: 'Seletor de cores',
|
|
61
|
+
column: 'Coluna',
|
|
62
|
+
comment: 'Comentários',
|
|
63
|
+
commentAdd: 'Adicionar comentário',
|
|
64
|
+
commentShow: 'Mostrar comentários',
|
|
65
|
+
copy: 'Copiar',
|
|
66
|
+
copyFormat: 'Pintar Formatação',
|
|
67
|
+
cut: 'Cortar',
|
|
68
|
+
default: 'Padrão',
|
|
69
|
+
deleteColumn: 'Deletar coluna',
|
|
70
|
+
deleteRow: 'Deletar linha',
|
|
71
|
+
dir_ltr: 'Esquerda para direita',
|
|
72
|
+
dir_rtl: 'Direita para esquerda',
|
|
73
|
+
download: 'Baixar',
|
|
74
|
+
drag: 'Arrastar',
|
|
75
|
+
drawing: 'Desenho',
|
|
76
|
+
drawing_modal_title: 'Desenho',
|
|
77
|
+
edit: 'Editar',
|
|
78
|
+
embed: 'Incorporar',
|
|
79
|
+
embed_modal_title: 'Incorporar',
|
|
80
|
+
embed_modal_source: 'Incorporar Fonte / URL',
|
|
81
|
+
exportPDF: 'Exportar para PDF',
|
|
82
|
+
exportWord: 'Exportar para Word',
|
|
83
|
+
find: 'Localizar',
|
|
84
|
+
decrease: 'Diminuir',
|
|
85
|
+
increase: 'Aumentar',
|
|
86
|
+
fileBrowser: 'Navegador de arquivos',
|
|
87
|
+
fileGallery: 'Galeria de arquivos',
|
|
88
|
+
fileUpload: 'Upload de arquivo',
|
|
89
|
+
fixedColumnWidth: 'Largura fixa da coluna',
|
|
90
|
+
font: 'Fonte',
|
|
91
|
+
fontColor: 'Cor da fonte',
|
|
92
|
+
fontSize: 'Tamanho',
|
|
93
|
+
formats: 'Formatos',
|
|
94
|
+
fullScreen: 'Tela cheia',
|
|
95
|
+
height: 'Altura',
|
|
96
|
+
horizontalLine: 'Linha horizontal',
|
|
97
|
+
horizontalSplit: 'Divisão horizontal',
|
|
98
|
+
hr_dashed: 'tracejada',
|
|
99
|
+
hr_dotted: 'pontilhada',
|
|
100
|
+
hr_solid: 'sólida',
|
|
101
|
+
id: 'ID',
|
|
102
|
+
image: 'Imagem',
|
|
103
|
+
imageGallery: 'Galeria de imagens',
|
|
104
|
+
image_modal_altText: 'Texto alternativo',
|
|
105
|
+
image_modal_file: 'Selecionar arquivos',
|
|
106
|
+
image_modal_title: 'Inserir imagens',
|
|
107
|
+
image_modal_url: 'URL da imagem',
|
|
108
|
+
importWord: 'Importar do Word',
|
|
109
|
+
indent: 'Recuo',
|
|
110
|
+
inlineStyle: 'Estilo inline',
|
|
111
|
+
insertColumnAfter: 'Inserir coluna depois',
|
|
112
|
+
insertColumnBefore: 'Inserir coluna antes',
|
|
113
|
+
insertRowAbove: 'Inserir linha acima',
|
|
114
|
+
insertRowBelow: 'Inserir linha abaixo',
|
|
115
|
+
insertLine: 'Inserir linha',
|
|
116
|
+
italic: 'Itálico',
|
|
117
|
+
layout: 'Layout',
|
|
118
|
+
left: 'Esquerda',
|
|
119
|
+
lineHeight: 'Altura da linha',
|
|
120
|
+
link: 'Link',
|
|
121
|
+
link_modal_bookmark: 'marcar páginas',
|
|
122
|
+
link_modal_downloadLinkCheck: 'Link para Download',
|
|
123
|
+
link_modal_newWindowCheck: 'Abrir em uma nova guia',
|
|
124
|
+
link_modal_text: 'Texto exibido',
|
|
125
|
+
link_modal_title: 'Inserir link',
|
|
126
|
+
link_modal_url: 'Endereço do link',
|
|
127
|
+
link_modal_relAttribute: 'Atributo rel',
|
|
128
|
+
list: 'Lista',
|
|
129
|
+
markdownView: 'Visualização em Markdown',
|
|
130
|
+
math: 'Matemática',
|
|
131
|
+
math_modal_fontSizeLabel: 'Tamanho',
|
|
132
|
+
math_modal_inputLabel: 'Notação matemática',
|
|
133
|
+
math_modal_previewLabel: 'Prever',
|
|
134
|
+
math_modal_title: 'Matemática',
|
|
135
|
+
maxSize: 'Tam máx',
|
|
136
|
+
mediaGallery: 'Galeria de mídia',
|
|
137
|
+
autocomplete: 'Preenchimento automático',
|
|
138
|
+
mention: 'Menção',
|
|
139
|
+
menu_bordered: 'Com borda',
|
|
140
|
+
menu_code: 'Código',
|
|
141
|
+
menu_neon: 'Neon',
|
|
142
|
+
menu_shadow: 'Sombreado',
|
|
143
|
+
menu_spaced: 'Espaçado',
|
|
144
|
+
menu_translucent: 'Translúcido',
|
|
145
|
+
mergeCells: 'Mesclar células',
|
|
146
|
+
minSize: 'Tam mín',
|
|
147
|
+
mirrorHorizontal: 'Espelho, Horizontal',
|
|
148
|
+
mirrorVertical: 'Espelho, Vertical',
|
|
149
|
+
newDocument: 'Novo documento',
|
|
150
|
+
numberedList: 'Lista ordenada',
|
|
151
|
+
outdent: 'Avançar',
|
|
152
|
+
pageBreak: 'Quebra de página',
|
|
153
|
+
pageDown: 'Página para baixo',
|
|
154
|
+
pageNumber: 'Número da página',
|
|
155
|
+
pageUp: 'Página para cima',
|
|
156
|
+
paragraphStyle: 'Estilo do parágrafo',
|
|
157
|
+
preview: 'Prever',
|
|
158
|
+
print: 'Imprimir',
|
|
159
|
+
proportion: 'Restringir proporções',
|
|
160
|
+
ratio: 'Proporções',
|
|
161
|
+
redo: 'Refazer',
|
|
162
|
+
remove: 'Remover',
|
|
163
|
+
removeFormat: 'Remover formatação',
|
|
164
|
+
replace: 'Substituir',
|
|
165
|
+
replaceAll: 'Substituir todos',
|
|
166
|
+
resize100: 'Zoom 100%',
|
|
167
|
+
resize25: 'Zoom 25%',
|
|
168
|
+
resize50: 'Zoom 50%',
|
|
169
|
+
resize75: 'Zoom 75%',
|
|
170
|
+
resize: 'Redimensionar',
|
|
171
|
+
revert: 'Reverter',
|
|
172
|
+
revisionHistory: 'Histórico de revisão',
|
|
173
|
+
right: 'Direita',
|
|
174
|
+
rotateLeft: 'Girar para esquerda',
|
|
175
|
+
rotateRight: 'Girar para direita',
|
|
176
|
+
row: 'Linha',
|
|
177
|
+
save: 'Salvar',
|
|
178
|
+
search: 'Procurar',
|
|
179
|
+
selectAll: 'Selecionar tudo',
|
|
180
|
+
showBlocks: 'Mostrar blocos',
|
|
181
|
+
size: 'Tamanho',
|
|
182
|
+
splitCells: 'Dividir células',
|
|
183
|
+
strike: 'Tachado',
|
|
184
|
+
submitButton: 'Enviar',
|
|
185
|
+
subscript: 'Subscrito',
|
|
186
|
+
superscript: 'Sobrescrito',
|
|
187
|
+
table: 'Tabela',
|
|
188
|
+
tableHeader: 'Cabeçalho da tabela',
|
|
189
|
+
tableProperties: 'Propriedades da tabela',
|
|
190
|
+
tags: 'Tag',
|
|
191
|
+
tag_blockquote: 'Citar',
|
|
192
|
+
codeBlock: 'Bloco de código',
|
|
193
|
+
tag_div: '(DIV) Normal',
|
|
194
|
+
tag_h: 'Cabeçalho',
|
|
195
|
+
tag_p: 'Parágrafo',
|
|
196
|
+
tag_pre: 'Código',
|
|
197
|
+
template: 'Modelo',
|
|
198
|
+
textStyle: 'Estilo do texto',
|
|
199
|
+
title: 'Título',
|
|
200
|
+
underline: 'Sublinhado',
|
|
201
|
+
undo: 'Voltar',
|
|
202
|
+
unmergeCells: 'Desfazer mesclagem de células',
|
|
203
|
+
unlink: 'Remover link',
|
|
204
|
+
verticalSplit: 'Divisão vertical',
|
|
205
|
+
video: 'Vídeo',
|
|
206
|
+
videoGallery: 'Galeria de vídeos',
|
|
207
|
+
video_modal_file: 'Selecionar arquivos',
|
|
208
|
+
video_modal_title: 'Inserir vídeo',
|
|
209
|
+
video_modal_url: 'URL do YouTube/Vimeo',
|
|
210
|
+
width: 'Largura',
|
|
211
|
+
codeLanguage: 'Linguagem',
|
|
212
|
+
codeLanguage_none: 'Nenhum',
|
|
213
|
+
finder_matchCase: 'Caixa de fósforos',
|
|
214
|
+
finder_wholeWord: 'Palavra inteira',
|
|
215
|
+
finder_regex: 'Expressão regular',
|
|
216
|
+
finder_prev: 'Partida anterior',
|
|
217
|
+
finder_next: 'Próxima partida',
|
|
218
|
+
message_copy_success: 'Copiado para a área de transferência',
|
|
219
|
+
message_copy_fail: 'Falha ao copiar. Copie manualmente, por favor.',
|
|
220
|
+
};
|
|
221
|
+
|
|
222
|
+
if (typeof noGlobal === typeof undefined) {
|
|
223
|
+
if (!window.SUNEDITOR_LANG) {
|
|
224
|
+
Object.defineProperty(window, 'SUNEDITOR_LANG', {
|
|
225
|
+
enumerable: true,
|
|
226
|
+
writable: false,
|
|
227
|
+
configurable: false,
|
|
228
|
+
value: {},
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
Object.defineProperty(window.SUNEDITOR_LANG, 'pt_br', {
|
|
233
|
+
enumerable: true,
|
|
234
|
+
writable: true,
|
|
235
|
+
configurable: true,
|
|
236
|
+
value: lang,
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
return lang;
|
|
241
|
+
});
|
|
@@ -1,22 +1,95 @@
|
|
|
1
|
-
|
|
2
|
-
<
|
|
3
|
-
|
|
4
|
-
<
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
<script>
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html>
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8">
|
|
5
|
+
<title>SunEditor</title>
|
|
6
|
+
<link href="css/suneditor.min.css" rel="stylesheet">
|
|
7
|
+
<link href="css/codemirror.min.css" rel="stylesheet">
|
|
8
|
+
<script src="js/codemirror.min.js"></script>
|
|
9
|
+
<script src="js/xml.min.js"></script>
|
|
10
|
+
<script src="js/css.js"></script>
|
|
11
|
+
<script src="js/javascript.js"></script>
|
|
12
|
+
<script src="js/htmlmixed.js"></script>
|
|
13
|
+
<script src="js/suneditor.min.js"></script>
|
|
14
|
+
<script src="langs/pt-br.js"></script>
|
|
15
|
+
</head>
|
|
16
|
+
<body style="margin:6em 4rem 4rem">
|
|
17
|
+
<h1>SunEditor Demo</h1>
|
|
18
|
+
<textarea id="editor"></textarea>
|
|
19
|
+
<script>
|
|
20
|
+
const editor = SUNEDITOR.create(document.getElementById("editor"), {
|
|
21
|
+
plugins: SUNEDITOR.plugins,
|
|
22
|
+
lang: SUNEDITOR_LANG.pt_br,
|
|
23
|
+
externalLibs: {
|
|
24
|
+
codeMirror: { src: CodeMirror },
|
|
25
|
+
},
|
|
26
|
+
toolbar_sticky: 93,
|
|
27
|
+
buttonList: [
|
|
28
|
+
["undo", "redo"],
|
|
29
|
+
"|",
|
|
30
|
+
["blockStyle", "font", "fontSize"],
|
|
31
|
+
"|",
|
|
32
|
+
["bold", "italic", "underline", "strike"],
|
|
33
|
+
"|",
|
|
34
|
+
["fontColor", "backgroundColor"],
|
|
35
|
+
"|",
|
|
36
|
+
["removeFormat"],
|
|
37
|
+
"/",
|
|
38
|
+
["outdent", "indent", "align", "list"],
|
|
39
|
+
"|",
|
|
40
|
+
["table", "link", "image", "video"],
|
|
41
|
+
"|",
|
|
42
|
+
["fullScreen", "codeView", "markdownView"],
|
|
43
|
+
[
|
|
44
|
+
"%992",
|
|
45
|
+
[
|
|
46
|
+
["undo", "redo"],
|
|
47
|
+
"|",
|
|
48
|
+
[":Format-default.more_paragraph", "blockStyle", "font", "fontSize"],
|
|
49
|
+
["bold", "italic", "underline", "strike"],
|
|
50
|
+
"|",
|
|
51
|
+
["fontColor", "backgroundColor"],
|
|
52
|
+
"|",
|
|
53
|
+
["removeFormat"],
|
|
54
|
+
"|",
|
|
55
|
+
["outdent", "indent", "align", "list"],
|
|
56
|
+
"|",
|
|
57
|
+
["table", "link", "image", "video"],
|
|
58
|
+
"|",
|
|
59
|
+
["fullScreen", "codeView", "markdownView"]
|
|
60
|
+
]
|
|
61
|
+
],
|
|
62
|
+
[
|
|
63
|
+
"%768",
|
|
64
|
+
[
|
|
65
|
+
["undo", "redo"],
|
|
66
|
+
"|",
|
|
67
|
+
[":Format-default.more_paragraph", "blockStyle", "font", "fontSize", "|", "removeFormat"],
|
|
68
|
+
["bold", "italic", "underline", "strike"],
|
|
69
|
+
"|",
|
|
70
|
+
["fontColor", "backgroundColor"],
|
|
71
|
+
["outdent", "indent", "align", "list"],
|
|
72
|
+
"|",
|
|
73
|
+
[":Insert-default.more_plus", "table", "link", "image", "video"],
|
|
74
|
+
"|",
|
|
75
|
+
["fullScreen", "codeView", "markdownView"]
|
|
76
|
+
]
|
|
77
|
+
],
|
|
78
|
+
[
|
|
79
|
+
"%576",
|
|
80
|
+
[
|
|
81
|
+
["undo", "redo"],
|
|
82
|
+
"|",
|
|
83
|
+
[":Format-default.more_paragraph", "blockStyle", "font", "fontSize"],
|
|
84
|
+
[":Text-default.more_text", "bold", "italic", "underline", "strike", "|", "fontColor", "backgroundColor", "|", "removeFormat"],
|
|
85
|
+
["outdent", "indent", "align", "list"],
|
|
86
|
+
"|",
|
|
87
|
+
[":Insert-default.more_plus", "table", "link", "image", "video"],
|
|
88
|
+
["-right", "fullScreen", "codeView", "markdownView"]
|
|
89
|
+
]
|
|
90
|
+
]
|
|
91
|
+
],
|
|
92
|
+
});
|
|
93
|
+
</script>
|
|
94
|
+
</body>
|
|
95
|
+
</html>
|