Merge branch 'develop' into feature/import_html
# Conflicts: # app/build.gradle # app/src/main/java/org/houxg/leamonax/ui/AboutActivity.java # app/src/main/java/org/houxg/leamonax/ui/NotePreviewActivity.java # app/src/main/res/menu/preview.xml
32
README.md
@@ -1,9 +1,35 @@
|
||||
# Leamonax
|
||||

|
||||
<img src='https://travis-ci.org/houxg/Leamonax.svg?branch=master'/>
|
||||
|
||||
This is a third party Android client for Leanote. Some of code(js editor) comes from [leanote-android](https://github.com/leanote/leanote-android).
|
||||
This is a third party Android client for Leanote.
|
||||
|
||||
**It's still in developing.** Be careful when you using it and make sure you have an backup.
|
||||
|
||||
---
|
||||
# Screenshot
|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
# Install
|
||||
[Git Release](https://github.com/houxg/Leamonax/releases/latest)
|
||||
|
||||
# Features
|
||||
- [x] Sign in/up
|
||||
- [x] Sync and view your notes/notebooks
|
||||
- [x] RichText support
|
||||
- [x] Markdown support
|
||||
- [x] Custom host
|
||||
- [x] Search by note's title
|
||||
|
||||
# TODO
|
||||
- [ ] Chinese language support
|
||||
- [ ] Quick note
|
||||
- [ ] Integration of tinnyMCE
|
||||
- [ ] Searching for full-text fields
|
||||
- [ ] Import html file
|
||||
|
||||
# Thanks
|
||||
## Contributors
|
||||
[xingstarx](https://github.com/xingstarx)
|
||||
##
|
||||
|
@@ -61,6 +61,7 @@ android {
|
||||
properties.load(new FileInputStream(new File(projectDir.absolutePath + "/production.properties")))
|
||||
}
|
||||
buildType.buildConfigField "String", "FLURRY_KEY", properties['FLURRY_KEY']
|
||||
buildType.buildConfigField "String", "BUGLY_KEY", properties['BUGLY_KEY']
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,10 +101,10 @@ dependencies {
|
||||
compile project(':img-selector')
|
||||
compile 'com.facebook.stetho:stetho:1.4.1'
|
||||
compile 'com.github.houxg:FlexLayout:1.2'
|
||||
compile 'com.flurry.android:analytics:6.4.2'
|
||||
|
||||
compile 'net.danlew:android.joda:2.9.5'
|
||||
// https://mvnrepository.com/artifact/org.jsoup/jsoup
|
||||
compile group: 'org.jsoup', name: 'jsoup', version: '1.10.1'
|
||||
compile 'ru.bartwell:exfilepicker:1.8'
|
||||
compile 'com.tencent.bugly:crashreport:2.4.0'
|
||||
}
|
||||
|
@@ -1 +1,2 @@
|
||||
FLURRY_KEY="M6HD6WJPT9Y274MG2FSF"
|
||||
BUGLY_KEY="cf1aa1ccff"
|
||||
|
3
app/proguard-rules.pro
vendored
@@ -15,3 +15,6 @@
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
-dontwarn com.tencent.bugly.**
|
||||
-keep public class com.tencent.bugly.**{*;}
|
@@ -9,6 +9,9 @@
|
||||
<uses-permission android:name="android.permission.WRITE_INTERNAL_STORAGE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
|
||||
|
||||
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
|
||||
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
|
||||
|
||||
<uses-feature android:name="android.hardware.camera" />
|
||||
<uses-feature android:name="android.hardware.camera.autofocus" />
|
||||
|
||||
|
237
app/src/main/assets/RichTextEditor/editor.html
Executable file
@@ -0,0 +1,237 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<title>RichTextEditor</title>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
||||
<script src="./tinymce/tinymce.min.js"></script>
|
||||
<style type="text/css">
|
||||
.without-border {outline: 0px solid transparent;}
|
||||
.ace-tomorrow {
|
||||
overflow: auto;
|
||||
font-family: monospace, monospace;
|
||||
font-size: 18px;
|
||||
border: 1px solid rgb(221, 219, 204);
|
||||
border-top-left-radius: 3px;
|
||||
border-top-right-radius: 3px;
|
||||
border-bottom-right-radius: 3px;
|
||||
border-bottom-left-radius: 3px;
|
||||
margin-top: 0px;
|
||||
margin-bottom: 40px;
|
||||
padding: 15px 20px;
|
||||
color: rgb(66, 66, 66);
|
||||
line-height: normal;
|
||||
widows: 1;
|
||||
background-color: rgb(241, 240, 234);
|
||||
background-position: initial initial;
|
||||
background-repeat: initial initial;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div style="outline: 0px solid transparent;" class="without-border" contenteditable="true" id="title"></div>
|
||||
<hr>
|
||||
<form method="post">
|
||||
<div id="content" style="outline: 0px solid transparent;"></div>
|
||||
</form>
|
||||
</body>
|
||||
|
||||
<script type="text/javascript">
|
||||
var titleDiv = document.getElementById('title');
|
||||
|
||||
function getTitle() {
|
||||
return titleDiv.innerHTML;
|
||||
}
|
||||
|
||||
function setTitle(title) {
|
||||
return titleDiv.innerHTML = title;
|
||||
}
|
||||
tinymce.init({
|
||||
selector: 'div#content',
|
||||
remove_trailing_brs: false,
|
||||
element_format: 'html',
|
||||
allow_unsafe_link_target: true,
|
||||
plugins: "lists",
|
||||
toolbar: false,
|
||||
menubar: false,
|
||||
inline: true
|
||||
});
|
||||
|
||||
function toggleBold() {
|
||||
tinyMCE.editors[0].formatter.toggle('bold');
|
||||
var currentState = tinyMCE.editors[0].formatter.match('bold');
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({bold : currentState}));
|
||||
}
|
||||
|
||||
function toggleBlockquote() {
|
||||
tinyMCE.editors[0].formatter.toggle('blockquote');
|
||||
var currentState = tinyMCE.editors[0].formatter.match('blockquote');
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({blockquote:currentState}));
|
||||
}
|
||||
|
||||
function toggleHeader() {
|
||||
var currentHeader = getCurrentHeader();
|
||||
if (currentHeader) {
|
||||
var currentVal = parseInt(currentHeader.substr(1));
|
||||
var newVal = (currentVal + 1) % 7;
|
||||
if (newVal) {
|
||||
tinyMCE.editors[0].formatter.apply('h' + newVal);
|
||||
} else {
|
||||
tinyMCE.editors[0].formatter.remove(currentHeader);
|
||||
}
|
||||
} else {
|
||||
tinyMCE.editors[0].formatter.apply('h1');
|
||||
}
|
||||
currentHeader = getCurrentHeader();
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({header: currentHeader}));
|
||||
}
|
||||
|
||||
function getCurrentHeader() {
|
||||
var intrestFormats = [
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
'h4',
|
||||
'h5',
|
||||
'h6'
|
||||
];
|
||||
var result = tinyMCE.editors[0].formatter.matchAll(intrestFormats);
|
||||
if (result) {
|
||||
return result[0];
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
function getSelectedContent() {
|
||||
return tinyMCE.editors[0].selection.getContent();
|
||||
}
|
||||
|
||||
function toggleItalic() {
|
||||
tinyMCE.editors[0].formatter.toggle('italic');
|
||||
var currentState = tinyMCE.editors[0].formatter.match('italic');
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({italic: currentState}));
|
||||
}
|
||||
|
||||
function toggleBulletList() {
|
||||
tinyMCE.editors[0].execCommand("InsertUnorderedList", false)
|
||||
var listState = getListState();
|
||||
listState = listState.toLowerCase() === 'ul';
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({bullet: listState}));
|
||||
}
|
||||
|
||||
function toggleOrderedList() {
|
||||
tinyMCE.editors[0].execCommand("InsertOrderedList", false)
|
||||
var listState = getListState();
|
||||
listState = listState.toLowerCase() === 'ol';
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({ordered: listState}));
|
||||
}
|
||||
|
||||
function insertImage(src) {
|
||||
tinyMCE.editors[0].insertContent('<img src="' + src + '" alt=""/>');
|
||||
}
|
||||
|
||||
function formatLink(url) {
|
||||
tinyMCE.editors[0].formatter.apply('link', {
|
||||
href: url
|
||||
});
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({link: url}));
|
||||
}
|
||||
|
||||
function removeLink(title, url) {
|
||||
tinyMCE.editors[0].formatter.remove('link');
|
||||
nativeCallbackHandler.onFormatChange(JSON.stringify({link: null}));
|
||||
}
|
||||
|
||||
function enable() {
|
||||
document.addEventListener("selectionchange", selectionChangeHandler, false);
|
||||
document.removeEventListener("click", clickHandeler, false);
|
||||
tinyMCE.editors[0].setMode('design');
|
||||
titleDiv.setAttribute("contenteditable", true);
|
||||
}
|
||||
|
||||
function disable() {
|
||||
document.removeEventListener("selectionchange", selectionChangeHandler, false);
|
||||
document.addEventListener("click", clickHandeler, false);
|
||||
tinyMCE.editors[0].setMode('readonly');
|
||||
titleDiv.setAttribute("contenteditable", false);
|
||||
}
|
||||
|
||||
function clickHandeler(e) {
|
||||
var target = e.target;
|
||||
if (target.tagName === 'A') {
|
||||
var link = target.getAttribute('href');
|
||||
var title = target.innerHTML;
|
||||
e.preventDefault();
|
||||
nativeCallbackHandler.linkTo(link);
|
||||
}
|
||||
}
|
||||
|
||||
function selectionChangeHandler() {
|
||||
var intrestFormats = ['bold',
|
||||
'italic',
|
||||
'h1',
|
||||
'h2',
|
||||
'h3',
|
||||
'h4',
|
||||
'h5',
|
||||
'h6',
|
||||
'blockquote',
|
||||
'link'
|
||||
];
|
||||
var result = tinyMCE.editors[0].formatter.matchAll(intrestFormats);
|
||||
listState = getListState();
|
||||
if (listState) {
|
||||
result.push(listState);
|
||||
}
|
||||
var reg = RegExp('^h[1-6]$');
|
||||
var enabledFormat = {};
|
||||
result.reduce(function (previousValue, currentValue, index, array) {
|
||||
if (reg.test(currentValue)) {
|
||||
array[index] = 'header';
|
||||
}
|
||||
switch (array[index]) {
|
||||
case 'link':
|
||||
enabledFormat[array[index]] = getLink();
|
||||
break;
|
||||
default:
|
||||
enabledFormat[array[index]] = true;
|
||||
}
|
||||
|
||||
}, null);
|
||||
|
||||
console.log(enabledFormat);
|
||||
nativeCallbackHandler.onCursorChanged(JSON.stringify(enabledFormat));
|
||||
}
|
||||
|
||||
function getLink() {
|
||||
return tinyMCE.editors[0].selection.getNode().getAttribute('href');
|
||||
}
|
||||
|
||||
function getContent() {
|
||||
var body = tinyMCE.$(tinyMCE.editors[0].getBody()).clone();
|
||||
return tinyMCE.$(body).clone().html();
|
||||
}
|
||||
|
||||
function getListState() {
|
||||
var node = tinyMCE.editors[0].selection.getNode()
|
||||
var parents = tinymce.dom.DomQuery(node).parents();
|
||||
var lists = tinyMCE.util.Tools.grep(parents, isNodeList);
|
||||
if (lists.length > 0) {
|
||||
return lists[0].nodeName.toLowerCase();
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
|
||||
function isNodeList(node) {
|
||||
return node && (/^(OL|UL|DL)$/).test(node.nodeName) && isChildOfBody(node);
|
||||
}
|
||||
|
||||
function isChildOfBody(elm) {
|
||||
return tinyMCE.editors[0].$.contains(tinyMCE.editors[0].getBody(), elm);
|
||||
}
|
||||
</script>
|
||||
|
||||
</html>
|
1
app/src/main/assets/RichTextEditor/tinymce/jquery.tinymce.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
!function(e){function t(){function t(e){"remove"===e&&this.each(function(e,t){var n=i(t);n&&n.remove()}),this.find("span.mceEditor,div.mceEditor").each(function(e,t){var n=tinymce.get(t.id.replace(/_parent$/,""));n&&n.remove()})}function r(e){var n,r=this;if(null!=e)t.call(r),r.each(function(t,n){var r;(r=tinymce.get(n.id))&&r.setContent(e)});else if(r.length>0&&(n=tinymce.get(r[0].id)))return n.getContent()}function i(e){var t=null;return e&&e.id&&a.tinymce&&(t=tinymce.get(e.id)),t}function o(e){return!!(e&&e.length&&a.tinymce&&e.is(":tinymce"))}var s={};e.each(["text","html","val"],function(t,a){var l=s[a]=e.fn[a],c="text"===a;e.fn[a]=function(t){var a=this;if(!o(a))return l.apply(a,arguments);if(t!==n)return r.call(a.filter(":tinymce"),t),l.apply(a.not(":tinymce"),arguments),a;var s="",u=arguments;return(c?a:a.eq(0)).each(function(t,n){var r=i(n);s+=r?c?r.getContent().replace(/<(?:"[^"]*"|'[^']*'|[^'">])*>/g,""):r.getContent({save:!0}):l.apply(e(n),u)}),s}}),e.each(["append","prepend"],function(t,r){var a=s[r]=e.fn[r],l="prepend"===r;e.fn[r]=function(e){var t=this;return o(t)?e!==n?("string"==typeof e&&t.filter(":tinymce").each(function(t,n){var r=i(n);r&&r.setContent(l?e+r.getContent():r.getContent()+e)}),a.apply(t.not(":tinymce"),arguments),t):void 0:a.apply(t,arguments)}}),e.each(["remove","replaceWith","replaceAll","empty"],function(n,r){var i=s[r]=e.fn[r];e.fn[r]=function(){return t.call(this,r),i.apply(this,arguments)}}),s.attr=e.fn.attr,e.fn.attr=function(t,a){var l=this,c=arguments;if(!t||"value"!==t||!o(l))return a!==n?s.attr.apply(l,c):s.attr.apply(l,c);if(a!==n)return r.call(l.filter(":tinymce"),a),s.attr.apply(l.not(":tinymce"),c),l;var u=l[0],d=i(u);return d?d.getContent({save:!0}):s.attr.apply(e(u),c)}}var n,r,i,o=[],a=window;e.fn.tinymce=function(n){function s(){var r=[],o=0;i||(t(),i=!0),d.each(function(e,t){var i,a=t.id,s=n.oninit;a||(t.id=a=tinymce.DOM.uniqueId()),tinymce.get(a)||(i=new tinymce.Editor(a,n,tinymce.EditorManager),r.push(i),i.on("init",function(){var e,t=s;d.css("visibility",""),s&&++o==r.length&&("string"==typeof t&&(e=t.indexOf(".")===-1?null:tinymce.resolve(t.replace(/\.\w+$/,"")),t=tinymce.resolve(t)),t.apply(e||tinymce,r))}))}),e.each(r,function(e,t){t.render()})}var l,c,u,d=this,f="";if(!d.length)return d;if(!n)return window.tinymce?tinymce.get(d[0].id):null;if(d.css("visibility","hidden"),a.tinymce||r||!(l=n.script_url))1===r?o.push(s):s();else{r=1,c=l.substring(0,l.lastIndexOf("/")),l.indexOf(".min")!=-1&&(f=".min"),a.tinymce=a.tinyMCEPreInit||{base:c,suffix:f},l.indexOf("gzip")!=-1&&(u=n.language||"en",l=l+(/\?/.test(l)?"&":"?")+"js=true&core=true&suffix="+escape(f)+"&themes="+escape(n.theme||"modern")+"&plugins="+escape(n.plugins||"")+"&languages="+(u||""),a.tinyMCE_GZ||(a.tinyMCE_GZ={start:function(){function t(e){tinymce.ScriptLoader.markDone(tinymce.baseURI.toAbsolute(e))}t("langs/"+u+".js"),t("themes/"+n.theme+"/theme"+f+".js"),t("themes/"+n.theme+"/langs/"+u+".js"),e.each(n.plugins.split(","),function(e,n){n&&(t("plugins/"+n+"/plugin"+f+".js"),t("plugins/"+n+"/langs/"+u+".js"))})},end:function(){}}));var h=document.createElement("script");h.type="text/javascript",h.onload=h.onreadystatechange=function(t){t=t||window.event,2===r||"load"!=t.type&&!/complete|loaded/.test(h.readyState)||(tinymce.dom.Event.domLoaded=1,r=2,n.script_loaded&&n.script_loaded(),s(),e.each(o,function(e,t){t()}))},h.src=l,document.body.appendChild(h)}return d},e.extend(e.expr[":"],{tinymce:function(e){var t;return!!(e.id&&"tinymce"in window&&(t=tinymce.get(e.id),t&&t.editorManager===tinymce))}})}(jQuery);
|
3
app/src/main/assets/RichTextEditor/tinymce/langs/readme.md
Executable file
@@ -0,0 +1,3 @@
|
||||
This is where language files should be placed.
|
||||
|
||||
Please DO NOT translate these directly use this service: https://www.transifex.com/projects/p/tinymce/
|
504
app/src/main/assets/RichTextEditor/tinymce/license.txt
Executable file
@@ -0,0 +1,504 @@
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
Version 2.1, February 1999
|
||||
|
||||
Copyright (C) 1991, 1999 Free Software Foundation, Inc.
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
[This is the first released version of the Lesser GPL. It also counts
|
||||
as the successor of the GNU Library Public License, version 2, hence
|
||||
the version number 2.1.]
|
||||
|
||||
Preamble
|
||||
|
||||
The licenses for most software are designed to take away your
|
||||
freedom to share and change it. By contrast, the GNU General Public
|
||||
Licenses are intended to guarantee your freedom to share and change
|
||||
free software--to make sure the software is free for all its users.
|
||||
|
||||
This license, the Lesser General Public License, applies to some
|
||||
specially designated software packages--typically libraries--of the
|
||||
Free Software Foundation and other authors who decide to use it. You
|
||||
can use it too, but we suggest you first think carefully about whether
|
||||
this license or the ordinary General Public License is the better
|
||||
strategy to use in any particular case, based on the explanations below.
|
||||
|
||||
When we speak of free software, we are referring to freedom of use,
|
||||
not price. Our General Public Licenses are designed to make sure that
|
||||
you have the freedom to distribute copies of free software (and charge
|
||||
for this service if you wish); that you receive source code or can get
|
||||
it if you want it; that you can change the software and use pieces of
|
||||
it in new free programs; and that you are informed that you can do
|
||||
these things.
|
||||
|
||||
To protect your rights, we need to make restrictions that forbid
|
||||
distributors to deny you these rights or to ask you to surrender these
|
||||
rights. These restrictions translate to certain responsibilities for
|
||||
you if you distribute copies of the library or if you modify it.
|
||||
|
||||
For example, if you distribute copies of the library, whether gratis
|
||||
or for a fee, you must give the recipients all the rights that we gave
|
||||
you. You must make sure that they, too, receive or can get the source
|
||||
code. If you link other code with the library, you must provide
|
||||
complete object files to the recipients, so that they can relink them
|
||||
with the library after making changes to the library and recompiling
|
||||
it. And you must show them these terms so they know their rights.
|
||||
|
||||
We protect your rights with a two-step method: (1) we copyright the
|
||||
library, and (2) we offer you this license, which gives you legal
|
||||
permission to copy, distribute and/or modify the library.
|
||||
|
||||
To protect each distributor, we want to make it very clear that
|
||||
there is no warranty for the free library. Also, if the library is
|
||||
modified by someone else and passed on, the recipients should know
|
||||
that what they have is not the original version, so that the original
|
||||
author's reputation will not be affected by problems that might be
|
||||
introduced by others.
|
||||
|
||||
Finally, software patents pose a constant threat to the existence of
|
||||
any free program. We wish to make sure that a company cannot
|
||||
effectively restrict the users of a free program by obtaining a
|
||||
restrictive license from a patent holder. Therefore, we insist that
|
||||
any patent license obtained for a version of the library must be
|
||||
consistent with the full freedom of use specified in this license.
|
||||
|
||||
Most GNU software, including some libraries, is covered by the
|
||||
ordinary GNU General Public License. This license, the GNU Lesser
|
||||
General Public License, applies to certain designated libraries, and
|
||||
is quite different from the ordinary General Public License. We use
|
||||
this license for certain libraries in order to permit linking those
|
||||
libraries into non-free programs.
|
||||
|
||||
When a program is linked with a library, whether statically or using
|
||||
a shared library, the combination of the two is legally speaking a
|
||||
combined work, a derivative of the original library. The ordinary
|
||||
General Public License therefore permits such linking only if the
|
||||
entire combination fits its criteria of freedom. The Lesser General
|
||||
Public License permits more lax criteria for linking other code with
|
||||
the library.
|
||||
|
||||
We call this license the "Lesser" General Public License because it
|
||||
does Less to protect the user's freedom than the ordinary General
|
||||
Public License. It also provides other free software developers Less
|
||||
of an advantage over competing non-free programs. These disadvantages
|
||||
are the reason we use the ordinary General Public License for many
|
||||
libraries. However, the Lesser license provides advantages in certain
|
||||
special circumstances.
|
||||
|
||||
For example, on rare occasions, there may be a special need to
|
||||
encourage the widest possible use of a certain library, so that it becomes
|
||||
a de-facto standard. To achieve this, non-free programs must be
|
||||
allowed to use the library. A more frequent case is that a free
|
||||
library does the same job as widely used non-free libraries. In this
|
||||
case, there is little to gain by limiting the free library to free
|
||||
software only, so we use the Lesser General Public License.
|
||||
|
||||
In other cases, permission to use a particular library in non-free
|
||||
programs enables a greater number of people to use a large body of
|
||||
free software. For example, permission to use the GNU C Library in
|
||||
non-free programs enables many more people to use the whole GNU
|
||||
operating system, as well as its variant, the GNU/Linux operating
|
||||
system.
|
||||
|
||||
Although the Lesser General Public License is Less protective of the
|
||||
users' freedom, it does ensure that the user of a program that is
|
||||
linked with the Library has the freedom and the wherewithal to run
|
||||
that program using a modified version of the Library.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow. Pay close attention to the difference between a
|
||||
"work based on the library" and a "work that uses the library". The
|
||||
former contains code derived from the library, whereas the latter must
|
||||
be combined with the library in order to run.
|
||||
|
||||
GNU LESSER GENERAL PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. This License Agreement applies to any software library or other
|
||||
program which contains a notice placed by the copyright holder or
|
||||
other authorized party saying it may be distributed under the terms of
|
||||
this Lesser General Public License (also called "this License").
|
||||
Each licensee is addressed as "you".
|
||||
|
||||
A "library" means a collection of software functions and/or data
|
||||
prepared so as to be conveniently linked with application programs
|
||||
(which use some of those functions and data) to form executables.
|
||||
|
||||
The "Library", below, refers to any such software library or work
|
||||
which has been distributed under these terms. A "work based on the
|
||||
Library" means either the Library or any derivative work under
|
||||
copyright law: that is to say, a work containing the Library or a
|
||||
portion of it, either verbatim or with modifications and/or translated
|
||||
straightforwardly into another language. (Hereinafter, translation is
|
||||
included without limitation in the term "modification".)
|
||||
|
||||
"Source code" for a work means the preferred form of the work for
|
||||
making modifications to it. For a library, complete source code means
|
||||
all the source code for all modules it contains, plus any associated
|
||||
interface definition files, plus the scripts used to control compilation
|
||||
and installation of the library.
|
||||
|
||||
Activities other than copying, distribution and modification are not
|
||||
covered by this License; they are outside its scope. The act of
|
||||
running a program using the Library is not restricted, and output from
|
||||
such a program is covered only if its contents constitute a work based
|
||||
on the Library (independent of the use of the Library in a tool for
|
||||
writing it). Whether that is true depends on what the Library does
|
||||
and what the program that uses the Library does.
|
||||
|
||||
1. You may copy and distribute verbatim copies of the Library's
|
||||
complete source code as you receive it, in any medium, provided that
|
||||
you conspicuously and appropriately publish on each copy an
|
||||
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||
all the notices that refer to this License and to the absence of any
|
||||
warranty; and distribute a copy of this License along with the
|
||||
Library.
|
||||
|
||||
You may charge a fee for the physical act of transferring a copy,
|
||||
and you may at your option offer warranty protection in exchange for a
|
||||
fee.
|
||||
|
||||
2. You may modify your copy or copies of the Library or any portion
|
||||
of it, thus forming a work based on the Library, and copy and
|
||||
distribute such modifications or work under the terms of Section 1
|
||||
above, provided that you also meet all of these conditions:
|
||||
|
||||
a) The modified work must itself be a software library.
|
||||
|
||||
b) You must cause the files modified to carry prominent notices
|
||||
stating that you changed the files and the date of any change.
|
||||
|
||||
c) You must cause the whole of the work to be licensed at no
|
||||
charge to all third parties under the terms of this License.
|
||||
|
||||
d) If a facility in the modified Library refers to a function or a
|
||||
table of data to be supplied by an application program that uses
|
||||
the facility, other than as an argument passed when the facility
|
||||
is invoked, then you must make a good faith effort to ensure that,
|
||||
in the event an application does not supply such function or
|
||||
table, the facility still operates, and performs whatever part of
|
||||
its purpose remains meaningful.
|
||||
|
||||
(For example, a function in a library to compute square roots has
|
||||
a purpose that is entirely well-defined independent of the
|
||||
application. Therefore, Subsection 2d requires that any
|
||||
application-supplied function or table used by this function must
|
||||
be optional: if the application does not supply it, the square
|
||||
root function must still compute square roots.)
|
||||
|
||||
These requirements apply to the modified work as a whole. If
|
||||
identifiable sections of that work are not derived from the Library,
|
||||
and can be reasonably considered independent and separate works in
|
||||
themselves, then this License, and its terms, do not apply to those
|
||||
sections when you distribute them as separate works. But when you
|
||||
distribute the same sections as part of a whole which is a work based
|
||||
on the Library, the distribution of the whole must be on the terms of
|
||||
this License, whose permissions for other licensees extend to the
|
||||
entire whole, and thus to each and every part regardless of who wrote
|
||||
it.
|
||||
|
||||
Thus, it is not the intent of this section to claim rights or contest
|
||||
your rights to work written entirely by you; rather, the intent is to
|
||||
exercise the right to control the distribution of derivative or
|
||||
collective works based on the Library.
|
||||
|
||||
In addition, mere aggregation of another work not based on the Library
|
||||
with the Library (or with a work based on the Library) on a volume of
|
||||
a storage or distribution medium does not bring the other work under
|
||||
the scope of this License.
|
||||
|
||||
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||
License instead of this License to a given copy of the Library. To do
|
||||
this, you must alter all the notices that refer to this License, so
|
||||
that they refer to the ordinary GNU General Public License, version 2,
|
||||
instead of to this License. (If a newer version than version 2 of the
|
||||
ordinary GNU General Public License has appeared, then you can specify
|
||||
that version instead if you wish.) Do not make any other change in
|
||||
these notices.
|
||||
|
||||
Once this change is made in a given copy, it is irreversible for
|
||||
that copy, so the ordinary GNU General Public License applies to all
|
||||
subsequent copies and derivative works made from that copy.
|
||||
|
||||
This option is useful when you wish to copy part of the code of
|
||||
the Library into a program that is not a library.
|
||||
|
||||
4. You may copy and distribute the Library (or a portion or
|
||||
derivative of it, under Section 2) in object code or executable form
|
||||
under the terms of Sections 1 and 2 above provided that you accompany
|
||||
it with the complete corresponding machine-readable source code, which
|
||||
must be distributed under the terms of Sections 1 and 2 above on a
|
||||
medium customarily used for software interchange.
|
||||
|
||||
If distribution of object code is made by offering access to copy
|
||||
from a designated place, then offering equivalent access to copy the
|
||||
source code from the same place satisfies the requirement to
|
||||
distribute the source code, even though third parties are not
|
||||
compelled to copy the source along with the object code.
|
||||
|
||||
5. A program that contains no derivative of any portion of the
|
||||
Library, but is designed to work with the Library by being compiled or
|
||||
linked with it, is called a "work that uses the Library". Such a
|
||||
work, in isolation, is not a derivative work of the Library, and
|
||||
therefore falls outside the scope of this License.
|
||||
|
||||
However, linking a "work that uses the Library" with the Library
|
||||
creates an executable that is a derivative of the Library (because it
|
||||
contains portions of the Library), rather than a "work that uses the
|
||||
library". The executable is therefore covered by this License.
|
||||
Section 6 states terms for distribution of such executables.
|
||||
|
||||
When a "work that uses the Library" uses material from a header file
|
||||
that is part of the Library, the object code for the work may be a
|
||||
derivative work of the Library even though the source code is not.
|
||||
Whether this is true is especially significant if the work can be
|
||||
linked without the Library, or if the work is itself a library. The
|
||||
threshold for this to be true is not precisely defined by law.
|
||||
|
||||
If such an object file uses only numerical parameters, data
|
||||
structure layouts and accessors, and small macros and small inline
|
||||
functions (ten lines or less in length), then the use of the object
|
||||
file is unrestricted, regardless of whether it is legally a derivative
|
||||
work. (Executables containing this object code plus portions of the
|
||||
Library will still fall under Section 6.)
|
||||
|
||||
Otherwise, if the work is a derivative of the Library, you may
|
||||
distribute the object code for the work under the terms of Section 6.
|
||||
Any executables containing that work also fall under Section 6,
|
||||
whether or not they are linked directly with the Library itself.
|
||||
|
||||
6. As an exception to the Sections above, you may also combine or
|
||||
link a "work that uses the Library" with the Library to produce a
|
||||
work containing portions of the Library, and distribute that work
|
||||
under terms of your choice, provided that the terms permit
|
||||
modification of the work for the customer's own use and reverse
|
||||
engineering for debugging such modifications.
|
||||
|
||||
You must give prominent notice with each copy of the work that the
|
||||
Library is used in it and that the Library and its use are covered by
|
||||
this License. You must supply a copy of this License. If the work
|
||||
during execution displays copyright notices, you must include the
|
||||
copyright notice for the Library among them, as well as a reference
|
||||
directing the user to the copy of this License. Also, you must do one
|
||||
of these things:
|
||||
|
||||
a) Accompany the work with the complete corresponding
|
||||
machine-readable source code for the Library including whatever
|
||||
changes were used in the work (which must be distributed under
|
||||
Sections 1 and 2 above); and, if the work is an executable linked
|
||||
with the Library, with the complete machine-readable "work that
|
||||
uses the Library", as object code and/or source code, so that the
|
||||
user can modify the Library and then relink to produce a modified
|
||||
executable containing the modified Library. (It is understood
|
||||
that the user who changes the contents of definitions files in the
|
||||
Library will not necessarily be able to recompile the application
|
||||
to use the modified definitions.)
|
||||
|
||||
b) Use a suitable shared library mechanism for linking with the
|
||||
Library. A suitable mechanism is one that (1) uses at run time a
|
||||
copy of the library already present on the user's computer system,
|
||||
rather than copying library functions into the executable, and (2)
|
||||
will operate properly with a modified version of the library, if
|
||||
the user installs one, as long as the modified version is
|
||||
interface-compatible with the version that the work was made with.
|
||||
|
||||
c) Accompany the work with a written offer, valid for at
|
||||
least three years, to give the same user the materials
|
||||
specified in Subsection 6a, above, for a charge no more
|
||||
than the cost of performing this distribution.
|
||||
|
||||
d) If distribution of the work is made by offering access to copy
|
||||
from a designated place, offer equivalent access to copy the above
|
||||
specified materials from the same place.
|
||||
|
||||
e) Verify that the user has already received a copy of these
|
||||
materials or that you have already sent this user a copy.
|
||||
|
||||
For an executable, the required form of the "work that uses the
|
||||
Library" must include any data and utility programs needed for
|
||||
reproducing the executable from it. However, as a special exception,
|
||||
the materials to be distributed need not include anything that is
|
||||
normally distributed (in either source or binary form) with the major
|
||||
components (compiler, kernel, and so on) of the operating system on
|
||||
which the executable runs, unless that component itself accompanies
|
||||
the executable.
|
||||
|
||||
It may happen that this requirement contradicts the license
|
||||
restrictions of other proprietary libraries that do not normally
|
||||
accompany the operating system. Such a contradiction means you cannot
|
||||
use both them and the Library together in an executable that you
|
||||
distribute.
|
||||
|
||||
7. You may place library facilities that are a work based on the
|
||||
Library side-by-side in a single library together with other library
|
||||
facilities not covered by this License, and distribute such a combined
|
||||
library, provided that the separate distribution of the work based on
|
||||
the Library and of the other library facilities is otherwise
|
||||
permitted, and provided that you do these two things:
|
||||
|
||||
a) Accompany the combined library with a copy of the same work
|
||||
based on the Library, uncombined with any other library
|
||||
facilities. This must be distributed under the terms of the
|
||||
Sections above.
|
||||
|
||||
b) Give prominent notice with the combined library of the fact
|
||||
that part of it is a work based on the Library, and explaining
|
||||
where to find the accompanying uncombined form of the same work.
|
||||
|
||||
8. You may not copy, modify, sublicense, link with, or distribute
|
||||
the Library except as expressly provided under this License. Any
|
||||
attempt otherwise to copy, modify, sublicense, link with, or
|
||||
distribute the Library is void, and will automatically terminate your
|
||||
rights under this License. However, parties who have received copies,
|
||||
or rights, from you under this License will not have their licenses
|
||||
terminated so long as such parties remain in full compliance.
|
||||
|
||||
9. You are not required to accept this License, since you have not
|
||||
signed it. However, nothing else grants you permission to modify or
|
||||
distribute the Library or its derivative works. These actions are
|
||||
prohibited by law if you do not accept this License. Therefore, by
|
||||
modifying or distributing the Library (or any work based on the
|
||||
Library), you indicate your acceptance of this License to do so, and
|
||||
all its terms and conditions for copying, distributing or modifying
|
||||
the Library or works based on it.
|
||||
|
||||
10. Each time you redistribute the Library (or any work based on the
|
||||
Library), the recipient automatically receives a license from the
|
||||
original licensor to copy, distribute, link with or modify the Library
|
||||
subject to these terms and conditions. You may not impose any further
|
||||
restrictions on the recipients' exercise of the rights granted herein.
|
||||
You are not responsible for enforcing compliance by third parties with
|
||||
this License.
|
||||
|
||||
11. If, as a consequence of a court judgment or allegation of patent
|
||||
infringement or for any other reason (not limited to patent issues),
|
||||
conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot
|
||||
distribute so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you
|
||||
may not distribute the Library at all. For example, if a patent
|
||||
license would not permit royalty-free redistribution of the Library by
|
||||
all those who receive copies directly or indirectly through you, then
|
||||
the only way you could satisfy both it and this License would be to
|
||||
refrain entirely from distribution of the Library.
|
||||
|
||||
If any portion of this section is held invalid or unenforceable under any
|
||||
particular circumstance, the balance of the section is intended to apply,
|
||||
and the section as a whole is intended to apply in other circumstances.
|
||||
|
||||
It is not the purpose of this section to induce you to infringe any
|
||||
patents or other property right claims or to contest validity of any
|
||||
such claims; this section has the sole purpose of protecting the
|
||||
integrity of the free software distribution system which is
|
||||
implemented by public license practices. Many people have made
|
||||
generous contributions to the wide range of software distributed
|
||||
through that system in reliance on consistent application of that
|
||||
system; it is up to the author/donor to decide if he or she is willing
|
||||
to distribute software through any other system and a licensee cannot
|
||||
impose that choice.
|
||||
|
||||
This section is intended to make thoroughly clear what is believed to
|
||||
be a consequence of the rest of this License.
|
||||
|
||||
12. If the distribution and/or use of the Library is restricted in
|
||||
certain countries either by patents or by copyrighted interfaces, the
|
||||
original copyright holder who places the Library under this License may add
|
||||
an explicit geographical distribution limitation excluding those countries,
|
||||
so that distribution is permitted only in or among countries not thus
|
||||
excluded. In such case, this License incorporates the limitation as if
|
||||
written in the body of this License.
|
||||
|
||||
13. The Free Software Foundation may publish revised and/or new
|
||||
versions of the Lesser General Public License from time to time.
|
||||
Such new versions will be similar in spirit to the present version,
|
||||
but may differ in detail to address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the Library
|
||||
specifies a version number of this License which applies to it and
|
||||
"any later version", you have the option of following the terms and
|
||||
conditions either of that version or of any later version published by
|
||||
the Free Software Foundation. If the Library does not specify a
|
||||
license version number, you may choose any version ever published by
|
||||
the Free Software Foundation.
|
||||
|
||||
14. If you wish to incorporate parts of the Library into other free
|
||||
programs whose distribution conditions are incompatible with these,
|
||||
write to the author to ask for permission. For software which is
|
||||
copyrighted by the Free Software Foundation, write to the Free
|
||||
Software Foundation; we sometimes make exceptions for this. Our
|
||||
decision will be guided by the two goals of preserving the free status
|
||||
of all derivatives of our free software and of promoting the sharing
|
||||
and reuse of software generally.
|
||||
|
||||
NO WARRANTY
|
||||
|
||||
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||
DAMAGES.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Libraries
|
||||
|
||||
If you develop a new library, and you want it to be of the greatest
|
||||
possible use to the public, we recommend making it free software that
|
||||
everyone can redistribute and change. You can do so by permitting
|
||||
redistribution under these terms (or, alternatively, under the terms of the
|
||||
ordinary General Public License).
|
||||
|
||||
To apply these terms, attach the following notices to the library. It is
|
||||
safest to attach them to the start of each source file to most effectively
|
||||
convey the exclusion of warranty; and each file should have at least the
|
||||
"copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the library's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Lesser General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 2.1 of the License, or (at your option) any later version.
|
||||
|
||||
This library is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
Lesser General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Lesser General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
You should also get your employer (if you work as a programmer) or your
|
||||
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||
necessary. Here is a sample; alter the names:
|
||||
|
||||
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||
|
||||
<signature of Ty Coon>, 1 April 1990
|
||||
Ty Coon, President of Vice
|
||||
|
||||
That's all there is to it!
|
||||
|
||||
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/advlist/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("advlist",function(e){function t(t){return e.$.contains(e.getBody(),t)}function n(e){return e&&/^(OL|UL|DL)$/.test(e.nodeName)&&t(e)}function r(e,t){var n=[];return tinymce.each(t.split(/[ ,]/),function(e){n.push({text:e.replace(/\-/g," ").replace(/\b\w/g,function(e){return e.toUpperCase()}),data:"default"==e?"":e})}),n}function i(t,n){e.undoManager.transact(function(){var r,i=e.dom,o=e.selection;if(r=i.getParent(o.getNode(),"ol,ul"),!r||r.nodeName!=t||n===!1){var a={"list-style-type":n?n:""};e.execCommand("UL"==t?"InsertUnorderedList":"InsertOrderedList",!1,a)}r=i.getParent(o.getNode(),"ol,ul"),r&&tinymce.util.Tools.each(i.select("ol,ul",r).concat([r]),function(e){e.nodeName!==t&&n!==!1&&(e=i.rename(e,t)),i.setStyle(e,"listStyleType",n?n:null),e.removeAttribute("data-mce-style")}),e.focus()})}function o(t){var n=e.dom.getStyle(e.dom.getParent(e.selection.getNode(),"ol,ul"),"listStyleType")||"";t.control.items().each(function(e){e.active(e.settings.data===n)})}var a,s,l=function(e,t){var n=e.settings.plugins?e.settings.plugins:"";return tinymce.util.Tools.inArray(n.split(/[ ,]/),t)!==-1};a=r("OL",e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman")),s=r("UL",e.getParam("advlist_bullet_styles","default,circle,disc,square"));var c=function(t){return function(){var r=this;e.on("NodeChange",function(e){var i=tinymce.util.Tools.grep(e.parents,n);r.active(i.length>0&&i[0].nodeName===t)})}};l(e,"lists")&&(e.addCommand("ApplyUnorderedListStyle",function(e,t){i("UL",t["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(e,t){i("OL",t["list-style-type"])}),e.addButton("numlist",{type:"splitbutton",tooltip:"Numbered list",menu:a,onPostRender:c("OL"),onshow:o,onselect:function(e){i("OL",e.control.settings.data)},onclick:function(){i("OL",!1)}}),e.addButton("bullist",{type:"splitbutton",tooltip:"Bullet list",onPostRender:c("UL"),menu:s,onshow:o,onselect:function(e){i("UL",e.control.settings.data)},onclick:function(){i("UL",!1)}}))});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/anchor/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("anchor",function(e){var t=function(e){return!e.attr("href")&&(e.attr("id")||e.attr("name"))&&!e.firstChild},n=function(e){return function(n){for(var r=0;r<n.length;r++)t(n[r])&&n[r].attr("contenteditable",e)}},r=function(){var t=e.selection.getNode(),n="A"==t.tagName&&""===e.dom.getAttrib(t,"href"),r="";n&&(r=t.id||t.name||""),e.windowManager.open({title:"Anchor",body:{type:"textbox",name:"id",size:40,label:"Id",value:r},onsubmit:function(r){var i=r.data.id;n?(t.removeAttribute("name"),t.id=i):(e.selection.collapse(!0),e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:i})))}})};tinymce.Env.ceFalse&&e.on("PreInit",function(){e.parser.addNodeFilter("a",n("false")),e.serializer.addNodeFilter("a",n(null))}),e.addCommand("mceAnchor",r),e.addButton("anchor",{icon:"anchor",tooltip:"Anchor",onclick:r,stateSelector:"a:not([href])"}),e.addMenuItem("anchor",{icon:"anchor",text:"Anchor",context:"insert",onclick:r})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/autolink/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("autolink",function(e){function t(e){i(e,-1,"(",!0)}function n(e){i(e,0,"",!0)}function r(e){i(e,-1,"",!1)}function i(e,t,n){function r(e,t){if(t<0&&(t=0),3==e.nodeType){var n=e.data.length;t>n&&(t=n)}return t}function i(e,t){1!=e.nodeType||e.hasChildNodes()?s.setStart(e,r(e,t)):s.setStartBefore(e)}function o(e,t){1!=e.nodeType||e.hasChildNodes()?s.setEnd(e,r(e,t)):s.setEndAfter(e)}var s,l,c,u,d,f,h,p,m,g;if("A"!=e.selection.getNode().tagName){if(s=e.selection.getRng(!0).cloneRange(),s.startOffset<5){if(p=s.endContainer.previousSibling,!p){if(!s.endContainer.firstChild||!s.endContainer.firstChild.nextSibling)return;p=s.endContainer.firstChild.nextSibling}if(m=p.length,i(p,m),o(p,m),s.endOffset<5)return;l=s.endOffset,u=p}else{if(u=s.endContainer,3!=u.nodeType&&u.firstChild){for(;3!=u.nodeType&&u.firstChild;)u=u.firstChild;3==u.nodeType&&(i(u,0),o(u,u.nodeValue.length))}l=1==s.endOffset?2:s.endOffset-1-t}c=l;do i(u,l>=2?l-2:0),o(u,l>=1?l-1:0),l-=1,g=s.toString();while(" "!=g&&""!==g&&160!=g.charCodeAt(0)&&l-2>=0&&g!=n);s.toString()==n||160==s.toString().charCodeAt(0)?(i(u,l),o(u,c),l+=1):0===s.startOffset?(i(u,0),o(u,c)):(i(u,l),o(u,c)),f=s.toString(),"."==f.charAt(f.length-1)&&o(u,c-1),f=s.toString(),h=f.match(a),h&&("www."==h[1]?h[1]="http://www.":/@$/.test(h[1])&&!/^mailto:/.test(h[1])&&(h[1]="mailto:"+h[1]),d=e.selection.getBookmark(),e.selection.setRng(s),e.execCommand("createlink",!1,h[1]+h[2]),e.settings.default_link_target&&e.dom.setAttrib(e.selection.getNode(),"target",e.settings.default_link_target),e.selection.moveToBookmark(d),e.nodeChanged())}}var o,a=/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i;return e.settings.autolink_pattern&&(a=e.settings.autolink_pattern),e.on("keydown",function(t){if(13==t.keyCode)return r(e)}),tinymce.Env.ie?void e.on("focus",function(){if(!o){o=!0;try{e.execCommand("AutoUrlDetect",!1,!0)}catch(e){}}}):(e.on("keypress",function(n){if(41==n.keyCode)return t(e)}),void e.on("keyup",function(t){if(32==t.keyCode)return n(e)}))});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/autoresize/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("autoresize",function(e){function t(){return e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()}function n(r){var a,s,l,c,u,d,f,h,p,m,g,v,y=tinymce.DOM;if(s=e.getDoc()){if(l=s.body,c=s.documentElement,u=i.autoresize_min_height,!l||r&&"setcontent"===r.type&&r.initial||t())return void(l&&c&&(l.style.overflowY="auto",c.style.overflowY="auto"));f=e.dom.getStyle(l,"margin-top",!0),h=e.dom.getStyle(l,"margin-bottom",!0),p=e.dom.getStyle(l,"padding-top",!0),m=e.dom.getStyle(l,"padding-bottom",!0),g=e.dom.getStyle(l,"border-top-width",!0),v=e.dom.getStyle(l,"border-bottom-width",!0),d=l.offsetHeight+parseInt(f,10)+parseInt(h,10)+parseInt(p,10)+parseInt(m,10)+parseInt(g,10)+parseInt(v,10),(isNaN(d)||d<=0)&&(d=tinymce.Env.ie?l.scrollHeight:tinymce.Env.webkit&&0===l.clientHeight?0:l.offsetHeight),d>i.autoresize_min_height&&(u=d),i.autoresize_max_height&&d>i.autoresize_max_height?(u=i.autoresize_max_height,l.style.overflowY="auto",c.style.overflowY="auto"):(l.style.overflowY="hidden",c.style.overflowY="hidden",l.scrollTop=0),u!==o&&(a=u-o,y.setStyle(e.iframeElement,"height",u+"px"),o=u,tinymce.isWebKit&&a<0&&n(r))}}function r(t,i,o){tinymce.util.Delay.setEditorTimeout(e,function(){n({}),t--?r(t,i,o):o&&o()},i)}var i=e.settings,o=0;e.settings.inline||(i.autoresize_min_height=parseInt(e.getParam("autoresize_min_height",e.getElement().offsetHeight),10),i.autoresize_max_height=parseInt(e.getParam("autoresize_max_height",0),10),e.on("init",function(){var t,n;t=e.getParam("autoresize_overflow_padding",1),n=e.getParam("autoresize_bottom_margin",50),t!==!1&&e.dom.setStyles(e.getBody(),{paddingLeft:t,paddingRight:t}),n!==!1&&e.dom.setStyles(e.getBody(),{paddingBottom:n})}),e.on("nodechange setcontent keyup FullscreenStateChanged",n),e.getParam("autoresize_on_init",!0)&&e.on("init",function(){r(20,100,function(){r(5,1e3)})}),e.addCommand("mceAutoResize",n))});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/autosave/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce._beforeUnloadHandler=function(){var e;return tinymce.each(tinymce.editors,function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e},tinymce.PluginManager.add("autosave",function(e){function t(e,t){var n={s:1e3,m:6e4};return e=/^(\d+)([ms]?)$/.exec(""+(e||t)),(e[2]?n[e[2]]:1)*parseInt(e,10)}function n(){var e=parseInt(h.getItem(u+"time"),10)||0;return!((new Date).getTime()-e>f.autosave_retention)||(r(!1),!1)}function r(t){h.removeItem(u+"draft"),h.removeItem(u+"time"),t!==!1&&e.fire("RemoveDraft")}function i(){!c()&&e.isDirty()&&(h.setItem(u+"draft",e.getContent({format:"raw",no_events:!0})),h.setItem(u+"time",(new Date).getTime()),e.fire("StoreDraft"))}function o(){n()&&(e.setContent(h.getItem(u+"draft"),{format:"raw"}),e.fire("RestoreDraft"))}function a(){d||(setInterval(function(){e.removed||i()},f.autosave_interval),d=!0)}function s(){var t=this;t.disabled(!n()),e.on("StoreDraft RestoreDraft RemoveDraft",function(){t.disabled(!n())}),a()}function l(){e.undoManager.beforeChange(),o(),r(),e.undoManager.add()}function c(t){var n=e.settings.forced_root_block;return t=tinymce.trim("undefined"==typeof t?e.getBody().innerHTML:t),""===t||new RegExp("^<"+n+"[^>]*>((\xa0| |[ \t]|<br[^>]*>)+?|)</"+n+">|<br>$","i").test(t)}var u,d,f=e.settings,h=tinymce.util.LocalStorage;u=f.autosave_prefix||"tinymce-autosave-{path}{query}-{id}-",u=u.replace(/\{path\}/g,document.location.pathname),u=u.replace(/\{query\}/g,document.location.search),u=u.replace(/\{id\}/g,e.id),f.autosave_interval=t(f.autosave_interval,"30s"),f.autosave_retention=t(f.autosave_retention,"20m"),e.addButton("restoredraft",{title:"Restore last draft",onclick:l,onPostRender:s}),e.addMenuItem("restoredraft",{text:"Restore last draft",onclick:l,onPostRender:s,context:"file"}),e.settings.autosave_restore_when_empty!==!1&&(e.on("init",function(){n()&&c()&&o()}),e.on("saveContent",function(){r()})),window.onbeforeunload=tinymce._beforeUnloadHandler,this.hasDraft=n,this.storeDraft=i,this.restoreDraft=o,this.removeDraft=r,this.isEmpty=c});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/bbcode/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
!function(){tinymce.create("tinymce.plugins.BBCodePlugin",{init:function(e){var t=this,n=e.getParam("bbcode_dialect","punbb").toLowerCase();e.on("beforeSetContent",function(e){e.content=t["_"+n+"_bbcode2html"](e.content)}),e.on("postProcess",function(e){e.set&&(e.content=t["_"+n+"_bbcode2html"](e.content)),e.get&&(e.content=t["_"+n+"_html2bbcode"](e.content))})},getInfo:function(){return{longname:"BBCode Plugin",author:"Ephox Corp",authorurl:"http://www.tinymce.com",infourl:"http://www.tinymce.com/wiki.php/Plugin:bbcode"}},_punbb_html2bbcode:function(e){function t(t,n){e=e.replace(t,n)}return e=tinymce.trim(e),t(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),t(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),t(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),t(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),t(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),t(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),t(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),t(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),t(/<font>(.*?)<\/font>/gi,"$1"),t(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),t(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),t(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),t(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),t(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),t(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),t(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),t(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),t(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),t(/<\/(strong|b)>/gi,"[/b]"),t(/<(strong|b)>/gi,"[b]"),t(/<\/(em|i)>/gi,"[/i]"),t(/<(em|i)>/gi,"[i]"),t(/<\/u>/gi,"[/u]"),t(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),t(/<u>/gi,"[u]"),t(/<blockquote[^>]*>/gi,"[quote]"),t(/<\/blockquote>/gi,"[/quote]"),t(/<br \/>/gi,"\n"),t(/<br\/>/gi,"\n"),t(/<br>/gi,"\n"),t(/<p>/gi,""),t(/<\/p>/gi,"\n"),t(/ |\u00a0/gi," "),t(/"/gi,'"'),t(/</gi,"<"),t(/>/gi,">"),t(/&/gi,"&"),e},_punbb_bbcode2html:function(e){function t(t,n){e=e.replace(t,n)}return e=tinymce.trim(e),t(/\n/gi,"<br />"),t(/\[b\]/gi,"<strong>"),t(/\[\/b\]/gi,"</strong>"),t(/\[i\]/gi,"<em>"),t(/\[\/i\]/gi,"</em>"),t(/\[u\]/gi,"<u>"),t(/\[\/u\]/gi,"</u>"),t(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),t(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),t(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),t(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),t(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span> '),t(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span> '),e}}),tinymce.PluginManager.add("bbcode",tinymce.plugins.BBCodePlugin)}();
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/charmap/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/code/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("code",function(e){function t(){var t=e.windowManager.open({title:"Source code",body:{type:"textbox",name:"code",multiline:!0,minWidth:e.getParam("code_dialog_width",600),minHeight:e.getParam("code_dialog_height",Math.min(tinymce.DOM.getViewPort().h-200,500)),spellcheck:!1,style:"direction: ltr; text-align: left"},onSubmit:function(t){e.focus(),e.undoManager.transact(function(){e.setContent(t.data.code)}),e.selection.setCursorLocation(),e.nodeChanged()}});t.find("#code").value(e.getContent({source_view:!0}))}e.addCommand("mceCodeEditor",t),e.addButton("code",{icon:"code",tooltip:"Source code",onclick:t}),e.addMenuItem("code",{icon:"code",text:"Source code",context:"tools",onclick:t})});
|
138
app/src/main/assets/RichTextEditor/tinymce/plugins/codesample/css/prism.css
Executable file
@@ -0,0 +1,138 @@
|
||||
/* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript */
|
||||
/**
|
||||
* prism.js default theme for JavaScript, CSS and HTML
|
||||
* Based on dabblet (http://dabblet.com)
|
||||
* @author Lea Verou
|
||||
*/
|
||||
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
color: black;
|
||||
text-shadow: 0 1px white;
|
||||
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
|
||||
direction: ltr;
|
||||
text-align: left;
|
||||
white-space: pre;
|
||||
word-spacing: normal;
|
||||
word-break: normal;
|
||||
word-wrap: normal;
|
||||
line-height: 1.5;
|
||||
|
||||
-moz-tab-size: 4;
|
||||
-o-tab-size: 4;
|
||||
tab-size: 4;
|
||||
|
||||
-webkit-hyphens: none;
|
||||
-moz-hyphens: none;
|
||||
-ms-hyphens: none;
|
||||
hyphens: none;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,
|
||||
code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
pre[class*="language-"]::selection, pre[class*="language-"] ::selection,
|
||||
code[class*="language-"]::selection, code[class*="language-"] ::selection {
|
||||
text-shadow: none;
|
||||
background: #b3d4fc;
|
||||
}
|
||||
|
||||
@media print {
|
||||
code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
text-shadow: none;
|
||||
}
|
||||
}
|
||||
|
||||
/* Code blocks */
|
||||
pre[class*="language-"] {
|
||||
padding: 1em;
|
||||
margin: .5em 0;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
:not(pre) > code[class*="language-"],
|
||||
pre[class*="language-"] {
|
||||
background: #f5f2f0;
|
||||
}
|
||||
|
||||
/* Inline code */
|
||||
:not(pre) > code[class*="language-"] {
|
||||
padding: .1em;
|
||||
border-radius: .3em;
|
||||
}
|
||||
|
||||
.token.comment,
|
||||
.token.prolog,
|
||||
.token.doctype,
|
||||
.token.cdata {
|
||||
color: slategray;
|
||||
}
|
||||
|
||||
.token.punctuation {
|
||||
color: #999;
|
||||
}
|
||||
|
||||
.namespace {
|
||||
opacity: .7;
|
||||
}
|
||||
|
||||
.token.property,
|
||||
.token.tag,
|
||||
.token.boolean,
|
||||
.token.number,
|
||||
.token.constant,
|
||||
.token.symbol,
|
||||
.token.deleted {
|
||||
color: #905;
|
||||
}
|
||||
|
||||
.token.selector,
|
||||
.token.attr-name,
|
||||
.token.string,
|
||||
.token.char,
|
||||
.token.builtin,
|
||||
.token.inserted {
|
||||
color: #690;
|
||||
}
|
||||
|
||||
.token.operator,
|
||||
.token.entity,
|
||||
.token.url,
|
||||
.language-css .token.string,
|
||||
.style .token.string {
|
||||
color: #a67f59;
|
||||
background: hsla(0, 0%, 100%, .5);
|
||||
}
|
||||
|
||||
.token.atrule,
|
||||
.token.attr-value,
|
||||
.token.keyword {
|
||||
color: #07a;
|
||||
}
|
||||
|
||||
.token.function {
|
||||
color: #DD4A68;
|
||||
}
|
||||
|
||||
.token.regex,
|
||||
.token.important,
|
||||
.token.variable {
|
||||
color: #e90;
|
||||
}
|
||||
|
||||
.token.important,
|
||||
.token.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
.token.italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.token.entity {
|
||||
cursor: help;
|
||||
}
|
||||
|
141
app/src/main/assets/RichTextEditor/tinymce/plugins/codesample/plugin.dev.js
Executable file
@@ -0,0 +1,141 @@
|
||||
/**
|
||||
* Inline development version. Only to be used while developing since it uses document.write to load scripts.
|
||||
*/
|
||||
|
||||
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */
|
||||
/*globals $code */
|
||||
|
||||
(function(exports) {
|
||||
"use strict";
|
||||
|
||||
var html = "", baseDir;
|
||||
var modules = {}, exposedModules = [], moduleCount = 0;
|
||||
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for (var i = 0; i < scripts.length; i++) {
|
||||
var src = scripts[i].src;
|
||||
|
||||
if (src.indexOf('/plugin.dev.js') != -1) {
|
||||
baseDir = src.substring(0, src.lastIndexOf('/'));
|
||||
}
|
||||
}
|
||||
|
||||
function require(ids, callback) {
|
||||
var module, defs = [];
|
||||
|
||||
for (var i = 0; i < ids.length; ++i) {
|
||||
module = modules[ids[i]] || resolve(ids[i]);
|
||||
if (!module) {
|
||||
throw 'module definition dependecy not found: ' + ids[i];
|
||||
}
|
||||
|
||||
defs.push(module);
|
||||
}
|
||||
|
||||
callback.apply(null, defs);
|
||||
}
|
||||
|
||||
function resolve(id) {
|
||||
if (exports.privateModules && id in exports.privateModules) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length; ++fi) {
|
||||
if (!target[fragments[fi]]) {
|
||||
return;
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
function register(id) {
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length - 1; ++fi) {
|
||||
if (target[fragments[fi]] === undefined) {
|
||||
target[fragments[fi]] = {};
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
target[fragments[fragments.length - 1]] = modules[id];
|
||||
}
|
||||
|
||||
function define(id, dependencies, definition) {
|
||||
var privateModules, i;
|
||||
|
||||
if (typeof id !== 'string') {
|
||||
throw 'invalid module definition, module id must be defined and be a string';
|
||||
}
|
||||
|
||||
if (dependencies === undefined) {
|
||||
throw 'invalid module definition, dependencies must be specified';
|
||||
}
|
||||
|
||||
if (definition === undefined) {
|
||||
throw 'invalid module definition, definition function must be specified';
|
||||
}
|
||||
|
||||
require(dependencies, function() {
|
||||
modules[id] = definition.apply(null, arguments);
|
||||
});
|
||||
|
||||
if (--moduleCount === 0) {
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
register(exposedModules[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Expose private modules for unit tests
|
||||
if (exports.AMDLC_TESTS) {
|
||||
privateModules = exports.privateModules || {};
|
||||
|
||||
for (id in modules) {
|
||||
privateModules[id] = modules[id];
|
||||
}
|
||||
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
delete privateModules[exposedModules[i]];
|
||||
}
|
||||
|
||||
exports.privateModules = privateModules;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function expose(ids) {
|
||||
exposedModules = ids;
|
||||
}
|
||||
|
||||
function writeScripts() {
|
||||
document.write(html);
|
||||
}
|
||||
|
||||
function load(path) {
|
||||
html += '<script type="text/javascript" src="' + baseDir + '/' + path + '"></script>\n';
|
||||
moduleCount++;
|
||||
}
|
||||
|
||||
// Expose globally
|
||||
exports.define = define;
|
||||
exports.require = require;
|
||||
|
||||
expose(["tinymce/codesampleplugin/Prism","tinymce/codesampleplugin/Utils","tinymce/codesampleplugin/Dialog","tinymce/codesampleplugin/Plugin"]);
|
||||
|
||||
load('classes/Prism.js');
|
||||
load('classes/Utils.js');
|
||||
load('classes/Dialog.js');
|
||||
load('classes/Plugin.js');
|
||||
|
||||
writeScripts();
|
||||
})(this);
|
||||
|
||||
// $hash: 1bc9e2cf126c72c5c46d6fb4921fad5d
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/codesample/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/colorpicker/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("colorpicker",function(e){function t(t,n){function r(e){var t=new tinymce.util.Color(e),n=t.toRgb();o.fromJSON({r:n.r,g:n.g,b:n.b,hex:t.toHex().substr(1)}),i(t.toHex())}function i(e){o.find("#preview")[0].getEl().style.background=e}var o=e.windowManager.open({title:"Color",items:{type:"container",layout:"flex",direction:"row",align:"stretch",padding:5,spacing:10,items:[{type:"colorpicker",value:n,onchange:function(){var e=this.rgb();o&&(o.find("#r").value(e.r),o.find("#g").value(e.g),o.find("#b").value(e.b),o.find("#hex").value(this.value().substr(1)),i(this.value()))}},{type:"form",padding:0,labelGap:5,defaults:{type:"textbox",size:7,value:"0",flex:1,spellcheck:!1,onchange:function(){var e,t,n=o.find("colorpicker")[0];return e=this.name(),t=this.value(),"hex"==e?(t="#"+t,r(t),void n.value(t)):(t={r:o.find("#r").value(),g:o.find("#g").value(),b:o.find("#b").value()},n.value(t),void r(t))}},items:[{name:"r",label:"R",autofocus:1},{name:"g",label:"G"},{name:"b",label:"B"},{name:"hex",label:"#",value:"000000"},{name:"preview",type:"container",border:1}]}]},onSubmit:function(){t("#"+this.toJSON().hex)}});r(n)}e.settings.color_picker_callback||(e.settings.color_picker_callback=t)});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/contextmenu/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("contextmenu",function(e){var t,n,r=e.settings.contextmenu_never_use_native,i=function(e){return e.ctrlKey&&!r},o=function(){return tinymce.Env.mac&&tinymce.Env.webkit},a=function(){return n===!0};return e.on("mousedown",function(t){o()&&2===t.button&&!i(t)&&e.selection.isCollapsed()&&e.once("contextmenu",function(t){e.selection.placeCaretAt(t.clientX,t.clientY)})}),e.on("contextmenu",function(r){var o;if(!i(r)){if(r.preventDefault(),o=e.settings.contextmenu||"link openlink image inserttable | cell row column deletetable",t)t.show();else{var a=[];tinymce.each(o.split(/[ ,]/),function(t){var n=e.menuItems[t];"|"==t&&(n={text:t}),n&&(n.shortcut="",a.push(n))});for(var s=0;s<a.length;s++)"|"==a[s].text&&(0!==s&&s!=a.length-1||a.splice(s,1));t=new tinymce.ui.Menu({items:a,context:"contextmenu",classes:"contextmenu"}).renderTo(),t.on("hide",function(e){e.control===this&&(n=!1)}),e.on("remove",function(){t.remove(),t=null})}var l={x:r.pageX,y:r.pageY};e.inline||(l=tinymce.DOM.getPos(e.getContentAreaContainer()),l.x+=r.clientX,l.y+=r.clientY),t.moveTo(l.x,l.y),n=!0}}),{isContextMenuVisible:a}});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/directionality/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("directionality",function(e){function t(t){var n,r=e.dom,i=e.selection.getSelectedBlocks();i.length&&(n=r.getAttrib(i[0],"dir"),tinymce.each(i,function(e){r.getParent(e.parentNode,"*[dir='"+t+"']",r.getRoot())||(n!=t?r.setAttrib(e,"dir",t):r.setAttrib(e,"dir",null))}),e.nodeChanged())}function n(e){var t=[];return tinymce.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(n){t.push(n+"[dir="+e+"]")}),t.join(",")}e.addCommand("mceDirectionLTR",function(){t("ltr")}),e.addCommand("mceDirectionRTL",function(){t("rtl")}),e.addButton("ltr",{title:"Left to right",cmd:"mceDirectionLTR",stateSelector:n("ltr")}),e.addButton("rtl",{title:"Right to left",cmd:"mceDirectionRTL",stateSelector:n("rtl")})});
|
BIN
app/src/main/assets/RichTextEditor/tinymce/plugins/emoticons/img/smiley-cool.gif
Executable file
After Width: | Height: | Size: 354 B |
BIN
app/src/main/assets/RichTextEditor/tinymce/plugins/emoticons/img/smiley-cry.gif
Executable file
After Width: | Height: | Size: 329 B |
After Width: | Height: | Size: 331 B |
After Width: | Height: | Size: 342 B |
After Width: | Height: | Size: 340 B |
After Width: | Height: | Size: 336 B |
BIN
app/src/main/assets/RichTextEditor/tinymce/plugins/emoticons/img/smiley-kiss.gif
Executable file
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 343 B |
After Width: | Height: | Size: 321 B |
After Width: | Height: | Size: 323 B |
After Width: | Height: | Size: 344 B |
After Width: | Height: | Size: 338 B |
After Width: | Height: | Size: 328 B |
After Width: | Height: | Size: 337 B |
BIN
app/src/main/assets/RichTextEditor/tinymce/plugins/emoticons/img/smiley-wink.gif
Executable file
After Width: | Height: | Size: 350 B |
BIN
app/src/main/assets/RichTextEditor/tinymce/plugins/emoticons/img/smiley-yell.gif
Executable file
After Width: | Height: | Size: 336 B |
1
app/src/main/assets/RichTextEditor/tinymce/plugins/emoticons/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("emoticons",function(e,t){function n(){var e;return e='<table role="list" class="mce-grid">',tinymce.each(r,function(n){e+="<tr>",tinymce.each(n,function(n){var r=t+"/img/smiley-"+n+".gif";e+='<td><a href="#" data-mce-url="'+r+'" data-mce-alt="'+n+'" tabindex="-1" role="option" aria-label="'+n+'"><img src="'+r+'" style="width: 18px; height: 18px" role="presentation" /></a></td>'}),e+="</tr>"}),e+="</table>"}var r=[["cool","cry","embarassed","foot-in-mouth"],["frown","innocent","kiss","laughing"],["money-mouth","sealed","smile","surprised"],["tongue-out","undecided","wink","yell"]];e.addButton("emoticons",{type:"panelbutton",panel:{role:"application",autohide:!0,html:n,onclick:function(t){var n=e.dom.getParent(t.target,"a");n&&(e.insertContent('<img src="'+n.getAttribute("data-mce-url")+'" alt="'+n.getAttribute("data-mce-alt")+'" />'),this.hide())}},tooltip:"Emoticons"})});
|
8
app/src/main/assets/RichTextEditor/tinymce/plugins/example/dialog.html
Executable file
@@ -0,0 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<body>
|
||||
<h3>Custom dialog</h3>
|
||||
Input some text: <input id="content">
|
||||
<button onclick="top.tinymce.activeEditor.windowManager.getWindows()[0].close();">Close window</button>
|
||||
</body>
|
||||
</html>
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/example/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("example",function(e,t){e.addButton("example",{text:"My button",icon:!1,onclick:function(){e.windowManager.open({title:"Example plugin",body:[{type:"textbox",name:"title",label:"Title"}],onsubmit:function(t){e.insertContent("Title: "+t.data.title)}})}}),e.addMenuItem("example",{text:"Example plugin",context:"tools",onclick:function(){e.windowManager.open({title:"TinyMCE site",url:t+"/dialog.html",width:600,height:400,buttons:[{text:"Insert",onclick:function(){var t=e.windowManager.getWindows()[0];e.insertContent(t.getContentWindow().document.getElementById("content").value),t.close()}},{text:"Close",onclick:"close"}]})}})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/example_dependency/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("example_dependency",function(){},["example"]);
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/fullpage/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/fullscreen/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("fullscreen",function(e){function t(){var e,t,n=window,r=document,i=r.body;return i.offsetWidth&&(e=i.offsetWidth,t=i.offsetHeight),n.innerWidth&&n.innerHeight&&(e=n.innerWidth,t=n.innerHeight),{w:e,h:t}}function n(){var e=tinymce.DOM.getViewPort();return{x:e.x,y:e.y}}function r(e){scrollTo(e.x,e.y)}function i(){function i(){f.setStyle(m,"height",t().h-(p.clientHeight-m.clientHeight))}var h,p,m,g,v=document.body,y=document.documentElement;d=!d,p=e.getContainer(),h=p.style,m=e.getContentAreaContainer().firstChild,g=m.style,d?(u=n(),o=g.width,a=g.height,g.width=g.height="100%",l=h.width,c=h.height,h.width=h.height="",f.addClass(v,"mce-fullscreen"),f.addClass(y,"mce-fullscreen"),f.addClass(p,"mce-fullscreen"),f.bind(window,"resize",i),i(),s=i):(g.width=o,g.height=a,l&&(h.width=l),c&&(h.height=c),f.removeClass(v,"mce-fullscreen"),f.removeClass(y,"mce-fullscreen"),f.removeClass(p,"mce-fullscreen"),f.unbind(window,"resize",s),r(u)),e.fire("FullscreenStateChanged",{state:d})}var o,a,s,l,c,u,d=!1,f=tinymce.DOM;if(!e.settings.inline)return e.on("init",function(){e.addShortcut("Ctrl+Shift+F","",i)}),e.on("remove",function(){s&&f.unbind(window,"resize",s)}),e.addCommand("mceFullScreen",i),e.addMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Ctrl+Shift+F",selectable:!0,onClick:function(){i(),e.focus()},onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})},context:"view"}),e.addButton("fullscreen",{tooltip:"Fullscreen",shortcut:"Ctrl+Shift+F",onClick:i,onPostRender:function(){var t=this;e.on("FullscreenStateChanged",function(e){t.active(e.state)})}}),{isFullscreen:function(){return d}}});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/hr/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("hr",function(e){e.addCommand("InsertHorizontalRule",function(){e.execCommand("mceInsertContent",!1,"<hr />")}),e.addButton("hr",{icon:"hr",tooltip:"Horizontal line",cmd:"InsertHorizontalRule"}),e.addMenuItem("hr",{icon:"hr",text:"Horizontal line",cmd:"InsertHorizontalRule",context:"insert"})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/image/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/imagetools/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/importcss/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("importcss",function(e){function t(e){var t=tinymce.Env.cacheSuffix;return"string"==typeof e&&(e=e.replace("?"+t,"").replace("&"+t,"")),e}function n(t){var n=e.settings,r=n.skin!==!1&&(n.skin||"lightgray");if(r){var i=n.skin_url;return i=i?e.documentBaseURI.toAbsolute(i):tinymce.baseURL+"/skins/"+r,t===i+"/content"+(e.inline?".inline":"")+".min.css"}return!1}function r(e){return"string"==typeof e?function(t){return t.indexOf(e)!==-1}:e instanceof RegExp?function(t){return e.test(t)}:e}function i(r,i){function o(e,r){var s,l=e.href;if(l=t(l),l&&i(l,r)&&!n(l)){h(e.imports,function(e){o(e,!0)});try{s=e.cssRules||e.rules}catch(e){}h(s,function(e){e.styleSheet?o(e.styleSheet,!0):e.selectorText&&h(e.selectorText.split(","),function(e){a.push(tinymce.trim(e))})})}}var a=[],s={};h(e.contentCSS,function(e){s[e]=!0}),i||(i=function(e,t){return t||s[e]});try{h(r.styleSheets,function(e){o(e)})}catch(e){}return a}function o(t){var n,r=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(t);if(r){var i=r[1],o=r[2].substr(1).split(".").join(" "),a=tinymce.makeMap("a,img");return r[1]?(n={title:t},e.schema.getTextBlockElements()[i]?n.block=i:e.schema.getBlockElements()[i]||a[i.toLowerCase()]?n.selector=i:n.inline=i):r[2]&&(n={inline:"span",title:t.substr(1),classes:o}),e.settings.importcss_merge_classes!==!1?n.classes=o:n.attributes={class:o},n}}function a(e,t){return tinymce.util.Tools.grep(e,function(e){return!e.filter||e.filter(t)})}function s(e){return tinymce.util.Tools.map(e,function(e){return tinymce.util.Tools.extend({},e,{original:e,selectors:{},filter:r(e.filter),item:{text:e.title,menu:[]}})})}function l(e,t){return null===t||e.settings.importcss_exclusive!==!1}function c(t,n,r){return!(l(e,n)?t in r:t in n.selectors)}function u(t,n,r){l(e,n)?r[t]=!0:n.selectors[t]=!0}function d(t,n,r){var i,a=e.settings;return i=r&&r.selector_converter?r.selector_converter:a.importcss_selector_converter?a.importcss_selector_converter:o,i.call(t,n,r)}var f=this,h=tinymce.each;e.on("renderFormatsMenu",function(t){var n=e.settings,o={},l=r(n.importcss_selector_filter),p=t.control,m=s(n.importcss_groups),g=function(t,n){if(c(t,n,o)){u(t,n,o);var r=d(f,t,n);if(r){var i=r.name||tinymce.DOM.uniqueId();return e.formatter.register(i,r),tinymce.extend({},p.settings.itemDefaults,{text:r.title,format:i})}}return null};e.settings.importcss_append||p.items().remove(),h(i(t.doc||e.getDoc(),r(n.importcss_file_filter)),function(e){if(e.indexOf(".mce-")===-1&&(!l||l(e))){var t=a(m,e);if(t.length>0)tinymce.util.Tools.each(t,function(t){var n=g(e,t);n&&t.item.menu.push(n)});else{var n=g(e,null);n&&p.add(n)}}}),h(m,function(e){e.item.menu.length>0&&p.add(e.item)}),t.control.renderNew()}),f.convertSelectorToFormat=o});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/insertdatetime/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("insertdatetime",function(e){function t(t,n){function r(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}return n=n||new Date,t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",r(n.getMonth()+1,2)),t=t.replace("%d",r(n.getDate(),2)),t=t.replace("%H",""+r(n.getHours(),2)),t=t.replace("%M",""+r(n.getMinutes(),2)),t=t.replace("%S",""+r(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",""+(n.getHours()<12?"AM":"PM")),t=t.replace("%B",""+e.translate(l[n.getMonth()])),t=t.replace("%b",""+e.translate(s[n.getMonth()])),t=t.replace("%A",""+e.translate(a[n.getDay()])),t=t.replace("%a",""+e.translate(o[n.getDay()])),t=t.replace("%%","%")}function n(n){var r=t(n);if(e.settings.insertdatetime_element){var i;i=t(/%[HMSIp]/.test(n)?"%Y-%m-%dT%H:%M":"%Y-%m-%d"),r='<time datetime="'+i+'">'+r+"</time>";var o=e.dom.getParent(e.selection.getStart(),"time");if(o)return void e.dom.setOuterHTML(o,r)}e.insertContent(r)}var r,i,o="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),a="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),s="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),l="January February March April May June July August September October November December".split(" "),c=[];e.addCommand("mceInsertDate",function(){n(e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),e.addCommand("mceInsertTime",function(){n(e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S")))}),e.addButton("insertdatetime",{type:"splitbutton",title:"Insert date/time",onclick:function(){n(r||i)},menu:c}),tinymce.each(e.settings.insertdatetime_formats||["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"],function(e){i||(i=e),c.push({text:t(e),onclick:function(){r=e,n(e)}})}),e.addMenuItem("insertdatetime",{icon:"date",text:"Date/time",menu:c,context:"insert"})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/layer/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("layer",function(a){function b(a){do if(a.className&&-1!=a.className.indexOf("mceItemLayer"))return a;while(a=a.parentNode)}function c(b){var c=a.dom;tinymce.each(c.select("div,p",b),function(a){/^(absolute|relative|fixed)$/i.test(a.style.position)&&(a.hasVisual?c.addClass(a,"mceItemVisualAid"):c.removeClass(a,"mceItemVisualAid"),c.addClass(a,"mceItemLayer"))})}function d(c){var d,e,f=[],g=b(a.selection.getNode()),h=-1,i=-1;for(e=[],tinymce.walk(a.getBody(),function(a){1==a.nodeType&&/^(absolute|relative|static)$/i.test(a.style.position)&&e.push(a)},"childNodes"),d=0;d<e.length;d++)f[d]=e[d].style.zIndex?parseInt(e[d].style.zIndex,10):0,0>h&&e[d]==g&&(h=d);if(0>c){for(d=0;d<f.length;d++)if(f[d]<f[h]){i=d;break}i>-1?(e[h].style.zIndex=f[i],e[i].style.zIndex=f[h]):f[h]>0&&(e[h].style.zIndex=f[h]-1)}else{for(d=0;d<f.length;d++)if(f[d]>f[h]){i=d;break}i>-1?(e[h].style.zIndex=f[i],e[i].style.zIndex=f[h]):e[h].style.zIndex=f[h]+1}a.execCommand("mceRepaint")}function e(){var b=a.dom,c=b.getPos(b.getParent(a.selection.getNode(),"*")),d=a.getBody();a.dom.add(d,"div",{style:{position:"absolute",left:c.x,top:c.y>20?c.y:20,width:100,height:100},"class":"mceItemVisualAid mceItemLayer"},a.selection.getContent()||a.getLang("layer.content")),tinymce.Env.ie&&b.setHTML(d,d.innerHTML)}function f(){var c=b(a.selection.getNode());c||(c=a.dom.getParent(a.selection.getNode(),"DIV,P,IMG")),c&&("absolute"==c.style.position.toLowerCase()?(a.dom.setStyles(c,{position:"",left:"",top:"",width:"",height:""}),a.dom.removeClass(c,"mceItemVisualAid"),a.dom.removeClass(c,"mceItemLayer")):(c.style.left||(c.style.left="20px"),c.style.top||(c.style.top="20px"),c.style.width||(c.style.width=c.width?c.width+"px":"100px"),c.style.height||(c.style.height=c.height?c.height+"px":"100px"),c.style.position="absolute",a.dom.setAttrib(c,"data-mce-style",""),a.addVisual(a.getBody())),a.execCommand("mceRepaint"),a.nodeChanged())}a.addCommand("mceInsertLayer",e),a.addCommand("mceMoveForward",function(){d(1)}),a.addCommand("mceMoveBackward",function(){d(-1)}),a.addCommand("mceMakeAbsolute",function(){f()}),a.addButton("moveforward",{title:"layer.forward_desc",cmd:"mceMoveForward"}),a.addButton("movebackward",{title:"layer.backward_desc",cmd:"mceMoveBackward"}),a.addButton("absolute",{title:"layer.absolute_desc",cmd:"mceMakeAbsolute"}),a.addButton("insertlayer",{title:"layer.insertlayer_desc",cmd:"mceInsertLayer"}),a.on("init",function(){tinymce.Env.ie&&a.getDoc().execCommand("2D-Position",!1,!0)}),a.on("mouseup",function(c){var d=b(c.target);d&&a.dom.setAttrib(d,"data-mce-style","")}),a.on("mousedown",function(c){var d,e=c.target,f=a.getDoc();tinymce.Env.gecko&&(b(e)?"on"!==f.designMode&&(f.designMode="on",e=f.body,d=e.parentNode,d.removeChild(e),d.appendChild(e)):"on"==f.designMode&&(f.designMode="off"))}),a.on("NodeChange",c)});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/legacyoutput/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
!function(e){e.PluginManager.add("legacyoutput",function(t,n,r){t.settings.inline_styles=!1,t.on("init",function(){var n="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",r=e.explode(t.settings.font_size_style_values),i=t.schema;t.formatter.register({alignleft:{selector:n,attributes:{align:"left"}},aligncenter:{selector:n,attributes:{align:"center"}},alignright:{selector:n,attributes:{align:"right"}},alignjustify:{selector:n,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(t){return e.inArray(r,t.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}}),e.each("b,i,u,strike".split(","),function(e){i.addValidElements(e+"[*]")}),i.getElementRule("font")||i.addValidElements("font[face|size|color|style]"),e.each(n.split(","),function(e){var t=i.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))})}),t.addButton("fontsizeselect",function(){var e=[],n="8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7",r=t.settings.fontsize_formats||n;return t.$.each(r.split(" "),function(t,n){var r=n,i=n,o=n.split("=");o.length>1&&(r=o[0],i=o[1]),e.push({text:r,value:i})}),{type:"listbox",text:"Font Sizes",tooltip:"Font Sizes",values:e,fixedWidth:!0,onPostRender:function(){var e=this;t.on("NodeChange",function(){var n;n=t.dom.getParent(t.selection.getNode(),"font"),n?e.value(n.size):e.value("")})},onclick:function(e){e.control.settings.value&&t.execCommand("FontSize",!1,e.control.settings.value)}}}),t.addButton("fontselect",function(){function e(e){e=e.replace(/;$/,"").split(";");for(var t=e.length;t--;)e[t]=e[t].split("=");return e}var n="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats",i=[],o=e(t.settings.font_formats||n);return r.each(o,function(e,t){i.push({text:{raw:t[0]},value:t[1],textStyle:t[1].indexOf("dings")==-1?"font-family:"+t[1]:""})}),{type:"listbox",text:"Font Family",tooltip:"Font Family",values:i,fixedWidth:!0,onPostRender:function(){var e=this;t.on("NodeChange",function(){var n;n=t.dom.getParent(t.selection.getNode(),"font"),n?e.value(n.face):e.value("")})},onselect:function(e){e.control.settings.value&&t.execCommand("FontName",!1,e.control.settings.value)}}})})}(tinymce);
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/link/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/lists/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/media/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/nonbreaking/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("nonbreaking",function(e){var t=e.getParam("nonbreaking_force_tab");if(e.addCommand("mceNonBreaking",function(){e.insertContent(e.plugins.visualchars&&e.plugins.visualchars.state?'<span class="mce-nbsp"> </span>':" "),e.dom.setAttrib(e.dom.select("span.mce-nbsp"),"data-mce-bogus","1")}),e.addButton("nonbreaking",{title:"Nonbreaking space",cmd:"mceNonBreaking"}),e.addMenuItem("nonbreaking",{text:"Nonbreaking space",cmd:"mceNonBreaking",context:"insert"}),t){var n=+t>1?+t:3;e.on("keydown",function(t){if(9==t.keyCode){if(t.shiftKey)return;t.preventDefault();for(var r=0;r<n;r++)e.execCommand("mceNonBreaking")}})}});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/noneditable/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("noneditable",function(e){function t(e){return function(t){return(" "+t.attr("class")+" ").indexOf(e)!==-1}}function n(t){function n(t){var n=arguments,r=n[n.length-2],i=r>0?a.charAt(r-1):"";if('"'===i)return t;if(">"===i){var o=a.lastIndexOf("<",r);if(o!==-1){var l=a.substring(o,r);if(l.indexOf('contenteditable="false"')!==-1)return t}}return'<span class="'+s+'" data-mce-content="'+e.dom.encode(n[0])+'">'+e.dom.encode("string"==typeof n[1]?n[1]:n[0])+"</span>"}var r=o.length,a=t.content,s=tinymce.trim(i);if("raw"!=t.format){for(;r--;)a=a.replace(o[r],n);t.content=a}}var r,i,o,a="contenteditable";r=" "+tinymce.trim(e.getParam("noneditable_editable_class","mceEditable"))+" ",i=" "+tinymce.trim(e.getParam("noneditable_noneditable_class","mceNonEditable"))+" ";var s=t(r),l=t(i);o=e.getParam("noneditable_regexp"),o&&!o.length&&(o=[o]),e.on("PreInit",function(){o&&e.on("BeforeSetContent",n),e.parser.addAttributeFilter("class",function(e){for(var t,n=e.length;n--;)t=e[n],s(t)?t.attr(a,"true"):l(t)&&t.attr(a,"false")}),e.serializer.addAttributeFilter(a,function(e){for(var t,n=e.length;n--;)t=e[n],(s(t)||l(t))&&(o&&t.attr("data-mce-content")?(t.name="#text",t.type=3,t.raw=!0,t.value=t.attr("data-mce-content")):t.attr(a,null))})})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/pagebreak/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("pagebreak",function(e){var t="mce-pagebreak",n=e.getParam("pagebreak_separator","<!-- pagebreak -->"),r=new RegExp(n.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi"),i='<img src="'+tinymce.Env.transparentSrc+'" class="'+t+'" data-mce-resize="false" data-mce-placeholder />';e.addCommand("mcePageBreak",function(){e.settings.pagebreak_split_block?e.insertContent("<p>"+i+"</p>"):e.insertContent(i)}),e.addButton("pagebreak",{title:"Page break",cmd:"mcePageBreak"}),e.addMenuItem("pagebreak",{text:"Page break",icon:"pagebreak",cmd:"mcePageBreak",context:"insert"}),e.on("ResolveName",function(n){"IMG"==n.target.nodeName&&e.dom.hasClass(n.target,t)&&(n.name="pagebreak")}),e.on("click",function(n){n=n.target,"IMG"===n.nodeName&&e.dom.hasClass(n,t)&&e.selection.select(n)}),e.on("BeforeSetContent",function(e){e.content=e.content.replace(r,i)}),e.on("PreInit",function(){e.serializer.addNodeFilter("img",function(t){for(var r,i,o=t.length;o--;)if(r=t[o],i=r.attr("class"),i&&i.indexOf("mce-pagebreak")!==-1){var a=r.parent;if(e.schema.getBlockElements()[a.name]&&e.settings.pagebreak_split_block){a.type=3,a.value=n,a.raw=!0,r.remove();continue}r.type=3,r.value=n,r.raw=!0}})})});
|
143
app/src/main/assets/RichTextEditor/tinymce/plugins/paste/plugin.dev.js
Executable file
@@ -0,0 +1,143 @@
|
||||
/**
|
||||
* Inline development version. Only to be used while developing since it uses document.write to load scripts.
|
||||
*/
|
||||
|
||||
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */
|
||||
/*globals $code */
|
||||
|
||||
(function(exports) {
|
||||
"use strict";
|
||||
|
||||
var html = "", baseDir;
|
||||
var modules = {}, exposedModules = [], moduleCount = 0;
|
||||
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for (var i = 0; i < scripts.length; i++) {
|
||||
var src = scripts[i].src;
|
||||
|
||||
if (src.indexOf('/plugin.dev.js') != -1) {
|
||||
baseDir = src.substring(0, src.lastIndexOf('/'));
|
||||
}
|
||||
}
|
||||
|
||||
function require(ids, callback) {
|
||||
var module, defs = [];
|
||||
|
||||
for (var i = 0; i < ids.length; ++i) {
|
||||
module = modules[ids[i]] || resolve(ids[i]);
|
||||
if (!module) {
|
||||
throw 'module definition dependecy not found: ' + ids[i];
|
||||
}
|
||||
|
||||
defs.push(module);
|
||||
}
|
||||
|
||||
callback.apply(null, defs);
|
||||
}
|
||||
|
||||
function resolve(id) {
|
||||
if (exports.privateModules && id in exports.privateModules) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length; ++fi) {
|
||||
if (!target[fragments[fi]]) {
|
||||
return;
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
function register(id) {
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length - 1; ++fi) {
|
||||
if (target[fragments[fi]] === undefined) {
|
||||
target[fragments[fi]] = {};
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
target[fragments[fragments.length - 1]] = modules[id];
|
||||
}
|
||||
|
||||
function define(id, dependencies, definition) {
|
||||
var privateModules, i;
|
||||
|
||||
if (typeof id !== 'string') {
|
||||
throw 'invalid module definition, module id must be defined and be a string';
|
||||
}
|
||||
|
||||
if (dependencies === undefined) {
|
||||
throw 'invalid module definition, dependencies must be specified';
|
||||
}
|
||||
|
||||
if (definition === undefined) {
|
||||
throw 'invalid module definition, definition function must be specified';
|
||||
}
|
||||
|
||||
require(dependencies, function() {
|
||||
modules[id] = definition.apply(null, arguments);
|
||||
});
|
||||
|
||||
if (--moduleCount === 0) {
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
register(exposedModules[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Expose private modules for unit tests
|
||||
if (exports.AMDLC_TESTS) {
|
||||
privateModules = exports.privateModules || {};
|
||||
|
||||
for (id in modules) {
|
||||
privateModules[id] = modules[id];
|
||||
}
|
||||
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
delete privateModules[exposedModules[i]];
|
||||
}
|
||||
|
||||
exports.privateModules = privateModules;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function expose(ids) {
|
||||
exposedModules = ids;
|
||||
}
|
||||
|
||||
function writeScripts() {
|
||||
document.write(html);
|
||||
}
|
||||
|
||||
function load(path) {
|
||||
html += '<script type="text/javascript" src="' + baseDir + '/' + path + '"></script>\n';
|
||||
moduleCount++;
|
||||
}
|
||||
|
||||
// Expose globally
|
||||
exports.define = define;
|
||||
exports.require = require;
|
||||
|
||||
expose(["tinymce/pasteplugin/Utils"]);
|
||||
|
||||
load('classes/Utils.js');
|
||||
load('classes/SmartPaste.js');
|
||||
load('classes/Clipboard.js');
|
||||
load('classes/WordFilter.js');
|
||||
load('classes/Quirks.js');
|
||||
load('classes/Plugin.js');
|
||||
|
||||
writeScripts();
|
||||
})(this);
|
||||
|
||||
// $hash: f991045b4dd37405c0ee4fc0d6f2269c
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/paste/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/preview/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("preview",function(e){var t=e.settings,n=!tinymce.Env.ie;e.addCommand("mcePreview",function(){e.windowManager.open({title:"Preview",width:parseInt(e.getParam("plugin_preview_width","650"),10),height:parseInt(e.getParam("plugin_preview_height","500"),10),html:'<iframe src="javascript:\'\'" frameborder="0"'+(n?' sandbox="allow-scripts"':"")+"></iframe>",buttons:{text:"Close",onclick:function(){this.parent().parent().close()}},onPostRender:function(){var r,i="";i+='<base href="'+e.documentBaseURI.getURI()+'">',tinymce.each(e.contentCSS,function(t){i+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'">'});var o=t.body_id||"tinymce";o.indexOf("=")!=-1&&(o=e.getParam("body_id","","hash"),o=o[e.id]||o);var a=t.body_class||"";a.indexOf("=")!=-1&&(a=e.getParam("body_class","","hash"),a=a[e.id]||"");var s='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A") {e.preventDefault();}}}, false);</script> ',l=e.settings.directionality?' dir="'+e.settings.directionality+'"':"";if(r="<!DOCTYPE html><html><head>"+i+'</head><body id="'+o+'" class="mce-content-body '+a+'"'+l+">"+e.getContent()+s+"</body></html>",n)this.getEl("body").firstChild.src="data:text/html;charset=utf-8,"+encodeURIComponent(r);else{var c=this.getEl("body").firstChild.contentWindow.document;c.open(),c.write(r),c.close()}}})}),e.addButton("preview",{title:"Preview",cmd:"mcePreview"}),e.addMenuItem("preview",{text:"Preview",cmd:"mcePreview",context:"view"})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/print/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("print",function(e){e.addCommand("mcePrint",function(){e.getWin().print()}),e.addButton("print",{title:"Print",cmd:"mcePrint"}),e.addShortcut("Meta+P","","mcePrint"),e.addMenuItem("print",{text:"Print",cmd:"mcePrint",icon:"print",shortcut:"Meta+P",context:"file"})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/save/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("save",function(e){function t(){var t;if(t=tinymce.DOM.getParent(e.id,"form"),!e.getParam("save_enablewhendirty",!0)||e.isDirty())return tinymce.triggerSave(),e.getParam("save_onsavecallback")?(e.execCallback("save_onsavecallback",e),void e.nodeChanged()):void(t?(e.setDirty(!1),t.onsubmit&&!t.onsubmit()||("function"==typeof t.submit?t.submit():n(e.translate("Error: Form submit field collision."))),e.nodeChanged()):n(e.translate("Error: No form element found.")))}function n(t){e.notificationManager.open({text:t,type:"error"})}function r(){var t=tinymce.trim(e.startContent);return e.getParam("save_oncancelcallback")?void e.execCallback("save_oncancelcallback",e):(e.setContent(t),e.undoManager.clear(),void e.nodeChanged())}function i(){var t=this;e.on("nodeChange dirty",function(){t.disabled(e.getParam("save_enablewhendirty",!0)&&!e.isDirty())})}e.addCommand("mceSave",t),e.addCommand("mceCancel",r),e.addButton("save",{icon:"save",text:"Save",cmd:"mceSave",disabled:!0,onPostRender:i}),e.addButton("cancel",{text:"Cancel",icon:!1,cmd:"mceCancel",disabled:!0,onPostRender:i}),e.addShortcut("Meta+S","","mceSave")});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/searchreplace/plugin.min.js
vendored
Executable file
139
app/src/main/assets/RichTextEditor/tinymce/plugins/spellchecker/plugin.dev.js
Executable file
@@ -0,0 +1,139 @@
|
||||
/**
|
||||
* Inline development version. Only to be used while developing since it uses document.write to load scripts.
|
||||
*/
|
||||
|
||||
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */
|
||||
/*globals $code */
|
||||
|
||||
(function(exports) {
|
||||
"use strict";
|
||||
|
||||
var html = "", baseDir;
|
||||
var modules = {}, exposedModules = [], moduleCount = 0;
|
||||
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for (var i = 0; i < scripts.length; i++) {
|
||||
var src = scripts[i].src;
|
||||
|
||||
if (src.indexOf('/plugin.dev.js') != -1) {
|
||||
baseDir = src.substring(0, src.lastIndexOf('/'));
|
||||
}
|
||||
}
|
||||
|
||||
function require(ids, callback) {
|
||||
var module, defs = [];
|
||||
|
||||
for (var i = 0; i < ids.length; ++i) {
|
||||
module = modules[ids[i]] || resolve(ids[i]);
|
||||
if (!module) {
|
||||
throw 'module definition dependecy not found: ' + ids[i];
|
||||
}
|
||||
|
||||
defs.push(module);
|
||||
}
|
||||
|
||||
callback.apply(null, defs);
|
||||
}
|
||||
|
||||
function resolve(id) {
|
||||
if (exports.privateModules && id in exports.privateModules) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length; ++fi) {
|
||||
if (!target[fragments[fi]]) {
|
||||
return;
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
function register(id) {
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length - 1; ++fi) {
|
||||
if (target[fragments[fi]] === undefined) {
|
||||
target[fragments[fi]] = {};
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
target[fragments[fragments.length - 1]] = modules[id];
|
||||
}
|
||||
|
||||
function define(id, dependencies, definition) {
|
||||
var privateModules, i;
|
||||
|
||||
if (typeof id !== 'string') {
|
||||
throw 'invalid module definition, module id must be defined and be a string';
|
||||
}
|
||||
|
||||
if (dependencies === undefined) {
|
||||
throw 'invalid module definition, dependencies must be specified';
|
||||
}
|
||||
|
||||
if (definition === undefined) {
|
||||
throw 'invalid module definition, definition function must be specified';
|
||||
}
|
||||
|
||||
require(dependencies, function() {
|
||||
modules[id] = definition.apply(null, arguments);
|
||||
});
|
||||
|
||||
if (--moduleCount === 0) {
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
register(exposedModules[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Expose private modules for unit tests
|
||||
if (exports.AMDLC_TESTS) {
|
||||
privateModules = exports.privateModules || {};
|
||||
|
||||
for (id in modules) {
|
||||
privateModules[id] = modules[id];
|
||||
}
|
||||
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
delete privateModules[exposedModules[i]];
|
||||
}
|
||||
|
||||
exports.privateModules = privateModules;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function expose(ids) {
|
||||
exposedModules = ids;
|
||||
}
|
||||
|
||||
function writeScripts() {
|
||||
document.write(html);
|
||||
}
|
||||
|
||||
function load(path) {
|
||||
html += '<script type="text/javascript" src="' + baseDir + '/' + path + '"></script>\n';
|
||||
moduleCount++;
|
||||
}
|
||||
|
||||
// Expose globally
|
||||
exports.define = define;
|
||||
exports.require = require;
|
||||
|
||||
expose(["tinymce/spellcheckerplugin/DomTextMatcher"]);
|
||||
|
||||
load('classes/DomTextMatcher.js');
|
||||
load('classes/Plugin.js');
|
||||
|
||||
writeScripts();
|
||||
})(this);
|
||||
|
||||
// $hash: a894b80e97e733310c550dadb509e87a
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/spellchecker/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/tabfocus/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("tabfocus",function(e){function t(e){9!==e.keyCode||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}function n(t){function n(n){function o(e){return"BODY"===e.nodeName||"hidden"!=e.type&&"none"!=e.style.display&&"hidden"!=e.style.visibility&&o(e.parentNode)}function l(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&tinymce.get(t.id)&&e.tabIndex!=-1&&o(e)}if(s=r.select(":input:enabled,*[tabindex]:not(iframe)"),i(s,function(t,n){if(t.id==e.id)return a=n,!1}),n>0){for(c=a+1;c<s.length;c++)if(l(s[c]))return s[c]}else for(c=a-1;c>=0;c--)if(l(s[c]))return s[c];return null}var a,s,l,c;if(!(9!==t.keyCode||t.ctrlKey||t.altKey||t.metaKey||t.isDefaultPrevented())&&(l=o(e.getParam("tab_focus",e.getParam("tabfocus_elements",":prev,:next"))),1==l.length&&(l[1]=l[0],l[0]=":prev"),s=t.shiftKey?":prev"==l[0]?n(-1):r.get(l[0]):":next"==l[1]?n(1):r.get(l[1]))){var u=tinymce.get(s.id||s.name);s.id&&u?u.focus():tinymce.util.Delay.setTimeout(function(){tinymce.Env.webkit||window.focus(),s.focus()},10),t.preventDefault()}}var r=tinymce.DOM,i=tinymce.each,o=tinymce.explode;e.on("init",function(){e.inline&&tinymce.DOM.setAttrib(e.getBody(),"tabIndex",null),e.on("keyup",t),tinymce.Env.gecko?e.on("keypress keydown",n):e.on("keydown",n)})});
|
143
app/src/main/assets/RichTextEditor/tinymce/plugins/table/plugin.dev.js
Executable file
@@ -0,0 +1,143 @@
|
||||
/**
|
||||
* Inline development version. Only to be used while developing since it uses document.write to load scripts.
|
||||
*/
|
||||
|
||||
/*jshint smarttabs:true, undef:true, latedef:true, curly:true, bitwise:true, camelcase:true */
|
||||
/*globals $code */
|
||||
|
||||
(function(exports) {
|
||||
"use strict";
|
||||
|
||||
var html = "", baseDir;
|
||||
var modules = {}, exposedModules = [], moduleCount = 0;
|
||||
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
for (var i = 0; i < scripts.length; i++) {
|
||||
var src = scripts[i].src;
|
||||
|
||||
if (src.indexOf('/plugin.dev.js') != -1) {
|
||||
baseDir = src.substring(0, src.lastIndexOf('/'));
|
||||
}
|
||||
}
|
||||
|
||||
function require(ids, callback) {
|
||||
var module, defs = [];
|
||||
|
||||
for (var i = 0; i < ids.length; ++i) {
|
||||
module = modules[ids[i]] || resolve(ids[i]);
|
||||
if (!module) {
|
||||
throw 'module definition dependecy not found: ' + ids[i];
|
||||
}
|
||||
|
||||
defs.push(module);
|
||||
}
|
||||
|
||||
callback.apply(null, defs);
|
||||
}
|
||||
|
||||
function resolve(id) {
|
||||
if (exports.privateModules && id in exports.privateModules) {
|
||||
return;
|
||||
}
|
||||
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length; ++fi) {
|
||||
if (!target[fragments[fi]]) {
|
||||
return;
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
return target;
|
||||
}
|
||||
|
||||
function register(id) {
|
||||
var target = exports;
|
||||
var fragments = id.split(/[.\/]/);
|
||||
|
||||
for (var fi = 0; fi < fragments.length - 1; ++fi) {
|
||||
if (target[fragments[fi]] === undefined) {
|
||||
target[fragments[fi]] = {};
|
||||
}
|
||||
|
||||
target = target[fragments[fi]];
|
||||
}
|
||||
|
||||
target[fragments[fragments.length - 1]] = modules[id];
|
||||
}
|
||||
|
||||
function define(id, dependencies, definition) {
|
||||
var privateModules, i;
|
||||
|
||||
if (typeof id !== 'string') {
|
||||
throw 'invalid module definition, module id must be defined and be a string';
|
||||
}
|
||||
|
||||
if (dependencies === undefined) {
|
||||
throw 'invalid module definition, dependencies must be specified';
|
||||
}
|
||||
|
||||
if (definition === undefined) {
|
||||
throw 'invalid module definition, definition function must be specified';
|
||||
}
|
||||
|
||||
require(dependencies, function() {
|
||||
modules[id] = definition.apply(null, arguments);
|
||||
});
|
||||
|
||||
if (--moduleCount === 0) {
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
register(exposedModules[i]);
|
||||
}
|
||||
}
|
||||
|
||||
// Expose private modules for unit tests
|
||||
if (exports.AMDLC_TESTS) {
|
||||
privateModules = exports.privateModules || {};
|
||||
|
||||
for (id in modules) {
|
||||
privateModules[id] = modules[id];
|
||||
}
|
||||
|
||||
for (i = 0; i < exposedModules.length; i++) {
|
||||
delete privateModules[exposedModules[i]];
|
||||
}
|
||||
|
||||
exports.privateModules = privateModules;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function expose(ids) {
|
||||
exposedModules = ids;
|
||||
}
|
||||
|
||||
function writeScripts() {
|
||||
document.write(html);
|
||||
}
|
||||
|
||||
function load(path) {
|
||||
html += '<script type="text/javascript" src="' + baseDir + '/' + path + '"></script>\n';
|
||||
moduleCount++;
|
||||
}
|
||||
|
||||
// Expose globally
|
||||
exports.define = define;
|
||||
exports.require = require;
|
||||
|
||||
load('classes/Utils.js');
|
||||
load('classes/SplitCols.js');
|
||||
load('classes/TableGrid.js');
|
||||
load('classes/Quirks.js');
|
||||
load('classes/CellSelection.js');
|
||||
load('classes/Dialogs.js');
|
||||
load('classes/ResizeBars.js');
|
||||
load('classes/Plugin.js');
|
||||
|
||||
writeScripts();
|
||||
})(this);
|
||||
|
||||
// $hash: 2bba25eafbcfe7cf5d371219f4309dbe
|
2
app/src/main/assets/RichTextEditor/tinymce/plugins/table/plugin.min.js
vendored
Executable file
1
app/src/main/assets/RichTextEditor/tinymce/plugins/template/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("template",function(e){function t(t){return function(){var n=e.settings.templates;return"function"==typeof n?void n(t):void("string"==typeof n?tinymce.util.XHR.send({url:n,success:function(e){t(tinymce.util.JSON.parse(e))}}):t(n))}}function n(t){function n(t){function n(t){if(t.indexOf("<html>")==-1){var n="";tinymce.each(e.contentCSS,function(t){n+='<link type="text/css" rel="stylesheet" href="'+e.documentBaseURI.toAbsolute(t)+'">'});var i=e.settings.body_class||"";i.indexOf("=")!=-1&&(i=e.getParam("body_class","","hash"),i=i[e.id]||""),t="<!DOCTYPE html><html><head>"+n+'</head><body class="'+i+'">'+t+"</body></html>"}t=o(t,"template_preview_replace_values");var a=r.find("iframe")[0].getEl().contentWindow.document;a.open(),a.write(t),a.close()}var a=t.control.value();a.url?tinymce.util.XHR.send({url:a.url,success:function(e){i=e,n(i)}}):(i=a.content,n(i)),r.find("#description")[0].text(t.control.value().description)}var r,i,s=[];if(!t||0===t.length){var l=e.translate("No templates defined.");return void e.notificationManager.open({text:l,type:"info"})}tinymce.each(t,function(e){s.push({selected:!s.length,text:e.title,value:{url:e.url,content:e.content,description:e.description}})}),r=e.windowManager.open({title:"Insert template",layout:"flex",direction:"column",align:"stretch",padding:15,spacing:10,items:[{type:"form",flex:0,padding:0,items:[{type:"container",label:"Templates",items:{type:"listbox",label:"Templates",name:"template",values:s,onselect:n}}]},{type:"label",name:"description",label:"Description",text:"\xa0"},{type:"iframe",flex:1,border:1}],onsubmit:function(){a(!1,i)},minWidth:Math.min(tinymce.DOM.getViewPort().w,e.getParam("template_popup_width",600)),minHeight:Math.min(tinymce.DOM.getViewPort().h,e.getParam("template_popup_height",500))}),r.find("listbox")[0].fire("select")}function r(t,n){function r(e,t){if(e=""+e,e.length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}var i="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),o="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),a="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),s="January February March April May June July August September October November December".split(" ");return n=n||new Date,t=t.replace("%D","%m/%d/%Y"),t=t.replace("%r","%I:%M:%S %p"),t=t.replace("%Y",""+n.getFullYear()),t=t.replace("%y",""+n.getYear()),t=t.replace("%m",r(n.getMonth()+1,2)),t=t.replace("%d",r(n.getDate(),2)),t=t.replace("%H",""+r(n.getHours(),2)),t=t.replace("%M",""+r(n.getMinutes(),2)),t=t.replace("%S",""+r(n.getSeconds(),2)),t=t.replace("%I",""+((n.getHours()+11)%12+1)),t=t.replace("%p",""+(n.getHours()<12?"AM":"PM")),t=t.replace("%B",""+e.translate(s[n.getMonth()])),t=t.replace("%b",""+e.translate(a[n.getMonth()])),t=t.replace("%A",""+e.translate(o[n.getDay()])),t=t.replace("%a",""+e.translate(i[n.getDay()])),t=t.replace("%%","%")}function i(t){var n=e.dom,r=e.getParam("template_replace_values");s(n.select("*",t),function(e){s(r,function(t,i){n.hasClass(e,i)&&"function"==typeof r[i]&&r[i](e)})})}function o(t,n){return s(e.getParam(n),function(e,n){"function"==typeof e&&(e=e(n)),t=t.replace(new RegExp("\\{\\$"+n+"\\}","g"),e)}),t}function a(t,n){function a(e,t){return new RegExp("\\b"+t+"\\b","g").test(e.className)}var l,c,u=e.dom,d=e.selection.getContent();n=o(n,"template_replace_values"),l=u.create("div",null,n),c=u.select(".mceTmpl",l),c&&c.length>0&&(l=u.create("div",null),l.appendChild(c[0].cloneNode(!0))),s(u.select("*",l),function(t){a(t,e.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))&&(t.innerHTML=r(e.getParam("template_cdate_format",e.getLang("template.cdate_format")))),a(t,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(t.innerHTML=r(e.getParam("template_mdate_format",e.getLang("template.mdate_format")))),a(t,e.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))&&(t.innerHTML=d)}),i(l),e.execCommand("mceInsertContent",!1,l.innerHTML),e.addVisual()}var s=tinymce.each;e.addCommand("mceInsertTemplate",a),e.addButton("template",{title:"Insert template",onclick:t(n)}),e.addMenuItem("template",{text:"Template",onclick:t(n),context:"insert"}),e.on("PreProcess",function(t){var n=e.dom;s(n.select("div",t.node),function(t){n.hasClass(t,"mceTmpl")&&(s(n.select("*",t),function(t){n.hasClass(t,e.getParam("template_mdate_classes","mdate").replace(/\s+/g,"|"))&&(t.innerHTML=r(e.getParam("template_mdate_format",e.getLang("template.mdate_format"))))}),i(t))})})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/textcolor/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("textcolor",function(e){function t(t){var n;return e.dom.getParents(e.selection.getStart(),function(e){var r;(r=e.style["forecolor"==t?"color":"background-color"])&&(n=r)}),n}function n(t){var n,r,i=[];for(r=["000000","Black","993300","Burnt orange","333300","Dark olive","003300","Dark green","003366","Dark azure","000080","Navy Blue","333399","Indigo","333333","Very dark gray","800000","Maroon","FF6600","Orange","808000","Olive","008000","Green","008080","Teal","0000FF","Blue","666699","Grayish blue","808080","Gray","FF0000","Red","FF9900","Amber","99CC00","Yellow green","339966","Sea green","33CCCC","Turquoise","3366FF","Royal blue","800080","Purple","999999","Medium gray","FF00FF","Magenta","FFCC00","Gold","FFFF00","Yellow","00FF00","Lime","00FFFF","Aqua","00CCFF","Sky blue","993366","Red violet","FFFFFF","White","FF99CC","Pink","FFCC99","Peach","FFFF99","Light yellow","CCFFCC","Pale green","CCFFFF","Pale cyan","99CCFF","Light sky blue","CC99FF","Plum"],r=e.settings.textcolor_map||r,r=e.settings[t+"_map"]||r,n=0;n<r.length;n+=2)i.push({text:r[n+1],color:"#"+r[n]});return i}function r(){function t(e,t){var n="transparent"==e;return'<td class="mce-grid-cell'+(n?" mce-colorbtn-trans":"")+'"><div id="'+p+"-"+m++ +'" data-mce-color="'+(e?e:"")+'" role="option" tabIndex="-1" style="'+(e?"background-color: "+e:"")+'" title="'+tinymce.translate(t)+'">'+(n?"×":"")+"</div></td>"}var r,i,o,a,s,u,d,f,h=this,p=h._id,m=0;for(f=h.settings.origin,r=n(f),r.push({text:tinymce.translate("No color"),color:"transparent"}),o='<table class="mce-grid mce-grid-border mce-colorbutton-grid" role="list" cellspacing="0"><tbody>',a=r.length-1,u=0;u<c[f];u++){for(o+="<tr>",s=0;s<l[f];s++)d=u*l[f]+s,d>a?o+="<td></td>":(i=r[d],o+=t(i.color,i.text));o+="</tr>"}if(e.settings.color_picker_callback){for(o+='<tr><td colspan="'+l[f]+'" class="mce-custom-color-btn"><div id="'+p+'-c" class="mce-widget mce-btn mce-btn-small mce-btn-flat" role="button" tabindex="-1" aria-labelledby="'+p+'-c" style="width: 100%"><button type="button" role="presentation" tabindex="-1">'+tinymce.translate("Custom...")+"</button></div></td></tr>",o+="<tr>",s=0;s<l[f];s++)o+=t("","Custom color");o+="</tr>"}return o+="</tbody></table>"}function i(t,n){e.undoManager.transact(function(){e.focus(),e.formatter.apply(t,{value:n}),e.nodeChanged()})}function o(t){e.undoManager.transact(function(){e.focus(),e.formatter.remove(t,{value:null},null,!0),e.nodeChanged()})}function a(n){function r(e){d.hidePanel(),d.color(e),i(d.settings.format,e)}function a(){d.hidePanel(),d.resetColor(),o(d.settings.format)}function s(e,t){e.style.background=t,e.setAttribute("data-mce-color",t)}var c,u,d=this.parent();u=d.settings.origin,tinymce.DOM.getParent(n.target,".mce-custom-color-btn")&&(d.hidePanel(),e.settings.color_picker_callback.call(e,function(e){var t,n,i,o=d.panel.getEl().getElementsByTagName("table")[0];for(t=tinymce.map(o.rows[o.rows.length-1].childNodes,function(e){return e.firstChild}),i=0;i<t.length&&(n=t[i],n.getAttribute("data-mce-color"));i++);if(i==l[u])for(i=0;i<l[u]-1;i++)s(t[i],t[i+1].getAttribute("data-mce-color"));s(n,e),r(e)},t(d.settings.format))),c=n.target.getAttribute("data-mce-color"),c?(this.lastId&&document.getElementById(this.lastId).setAttribute("aria-selected",!1),n.target.setAttribute("aria-selected",!0),this.lastId=n.target.id,"transparent"==c?a():r(c)):null!==c&&d.hidePanel()}function s(){var e=this;e._color?i(e.settings.format,e._color):o(e.settings.format)}var l,c;c={forecolor:e.settings.forecolor_rows||e.settings.textcolor_rows||5,backcolor:e.settings.backcolor_rows||e.settings.textcolor_rows||5},l={forecolor:e.settings.forecolor_cols||e.settings.textcolor_cols||8,backcolor:e.settings.backcolor_cols||e.settings.textcolor_cols||8},e.addButton("forecolor",{type:"colorbutton",tooltip:"Text color",format:"forecolor",panel:{origin:"forecolor",role:"application",ariaRemember:!0,html:r,onclick:a},onclick:s}),e.addButton("backcolor",{type:"colorbutton",tooltip:"Background color",format:"hilitecolor",panel:{origin:"backcolor",role:"application",ariaRemember:!0,html:r,onclick:a},onclick:s})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/textpattern/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("textpattern",function(e){function t(){return c&&(l.sort(function(e,t){return e.start.length>t.start.length?-1:e.start.length<t.start.length?1:0}),c=!1),l}function n(e){for(var n=t(),r=0;r<n.length;r++)if(0===e.indexOf(n[r].start)&&(!n[r].end||e.lastIndexOf(n[r].end)==e.length-n[r].end.length))return n[r]}function r(e,n,r){var i,o,a;for(i=t(),a=0;a<i.length;a++)if(o=i[a],o.end&&e.substr(n-o.end.length-r,o.end.length)==o.end)return o}function i(t){function i(){l=l.splitText(u),l.splitText(c-u-p),l.deleteData(0,h.start.length),l.deleteData(l.data.length-h.end.length,h.end.length)}var o,a,s,l,c,u,d,f,h,p,m;if(o=e.selection,a=e.dom,o.isCollapsed()&&(s=o.getRng(!0),l=s.startContainer,c=s.startOffset,d=l.data,p=t?1:0,3==l.nodeType&&(h=r(d,c,p),h&&(u=Math.max(0,c-p),u=d.lastIndexOf(h.start,u-h.end.length-1),u!==-1&&(f=a.createRng(),f.setStart(l,u),f.setEnd(l,c-p),h=n(f.toString()),h&&h.end&&!(l.data.length<=h.start.length+h.end.length))))))return m=e.formatter.get(h.format),m&&m[0].inline?(i(),e.formatter.apply(h.format,{},l),l):void 0}function o(){var t,r,i,o,a,s,l,c,u,d,f;if(t=e.selection,r=e.dom,t.isCollapsed()&&(l=r.getParent(t.getStart(),"p"))){for(u=new tinymce.dom.TreeWalker(l,l);a=u.next();)if(3==a.nodeType){o=a;break}if(o){if(c=n(o.data),!c)return;if(d=t.getRng(!0),i=d.startContainer,f=d.startOffset,o==i&&(f=Math.max(0,f-c.start.length)),tinymce.trim(o.data).length==c.start.length)return;c.format&&(s=e.formatter.get(c.format),s&&s[0].block&&(o.deleteData(0,c.start.length),e.formatter.apply(c.format,{},o),d.setStart(i,f),d.collapse(!0),t.setRng(d))),c.cmd&&e.undoManager.transact(function(){o.deleteData(0,c.start.length),e.execCommand(c.cmd)})}}}function a(){var t,n;n=i(),n&&(t=e.dom.createRng(),t.setStart(n,n.data.length),t.setEnd(n,n.data.length),e.selection.setRng(t)),o()}function s(){var t,n,r,o,a;t=i(!0),t&&(a=e.dom,n=t.data.slice(-1),/[\u00a0 ]/.test(n)&&(t.deleteData(t.data.length-1,1),r=a.doc.createTextNode(n),t.nextSibling?a.insertAfter(r,t.nextSibling):t.parentNode.appendChild(r),o=a.createRng(),o.setStart(r,1),o.setEnd(r,1),e.selection.setRng(o)))}var l,c=!0;l=e.settings.textpattern_patterns||[{start:"*",end:"*",format:"italic"},{start:"**",end:"**",format:"bold"},{start:"#",format:"h1"},{start:"##",format:"h2"},{start:"###",format:"h3"},{start:"####",format:"h4"},{start:"#####",format:"h5"},{start:"######",format:"h6"},{start:"1. ",cmd:"InsertOrderedList"},{start:"* ",cmd:"InsertUnorderedList"},{start:"- ",cmd:"InsertUnorderedList"}],e.on("keydown",function(e){13!=e.keyCode||tinymce.util.VK.modifierPressed(e)||a()},!0),e.on("keyup",function(e){32!=e.keyCode||tinymce.util.VK.modifierPressed(e)||s()}),this.getPatterns=t,this.setPatterns=function(e){l=e,c=!0}});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/toc/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("toc",function(e){function t(t){return e.schema.isValidChild("div",t)}function n(t){return t&&e.dom.is(t,"."+d.className)&&e.getBody().contains(t)}function r(){var t=this;t.disabled(e.readonly||!o()),e.on("LoadContent SetContent change",function(){t.disabled(e.readonly||!o())})}function i(e){var t,n=[];for(t=1;t<=e;t++)n.push("h"+t);return n.join(",")}function o(){return!(!d||!a(d).length)}function a(t){var n=i(t.depth),r=f(n);return r.length&&/^h[1-9]$/i.test(t.headerTag)&&(r=r.filter(function(n,r){return!e.dom.hasClass(r.parentNode,t.className)})),tinymce.map(r,function(e){return e.id||(e.id=m()),{id:e.id,level:parseInt(e.nodeName.replace(/^H/i,""),10),title:f.text(e)}})}function s(e){var t,n=9;for(t=0;t<e.length;t++)if(e[t].level<n&&(n=e[t].level),1==n)return n;return n}function l(t,n){var r="<"+t+' contenteditable="true">',i="</"+t+">";return r+e.dom.encode(n)+i}function c(e){var t=u(e);return'<div class="'+e.className+'" contenteditable="false">'+t+"</div>"}function u(e){var t,n,r,i,o="",c=a(e),u=s(c)-1;if(!c.length)return"";for(o+=l(e.headerTag,tinymce.translate("Table of Contents")),t=0;t<c.length;t++){if(r=c[t],i=c[t+1]&&c[t+1].level,u===r.level)o+="<li>";else for(n=u;n<r.level;n++)o+="<ul><li>";if(o+='<a href="#'+r.id+'">'+r.title+"</a>",i!==r.level&&i)for(n=r.level;n>i;n--)o+="</li></ul><li>";else o+="</li>",i||(o+="</ul>");u=r.level}return o}var d,f=e.$,h={depth:3,headerTag:"h2",className:"mce-toc"},p=function(e){var t=0;return function(){var n=(new Date).getTime().toString(32);return e+n+(t++).toString(32)}},m=p("mcetoc_");e.on("PreInit",function(){var n=e.settings,r=parseInt(n.toc_depth,10)||0;d={depth:r>=1&&r<=9?r:h.depth,headerTag:t(n.toc_header)?n.toc_header:h.headerTag,className:n.toc_class?e.dom.encode(n.toc_class):h.className}}),e.on("PreProcess",function(e){var t=f("."+d.className,e.node);t.length&&(t.removeAttr("contentEditable"),t.find("[contenteditable]").removeAttr("contentEditable"))}),e.on("SetContent",function(){var e=f("."+d.className);e.length&&(e.attr("contentEditable",!1),e.children(":first-child").attr("contentEditable",!0))});var g=function(t){return!t.length||e.dom.getParents(t[0],".mce-offscreen-selection").length>0};e.addCommand("mceInsertToc",function(){var t=f("."+d.className);g(t)?e.insertContent(c(d)):e.execCommand("mceUpdateToc")}),e.addCommand("mceUpdateToc",function(){var t=f("."+d.className);t.length&&e.undoManager.transact(function(){t.html(u(d))})}),e.addButton("toc",{tooltip:"Table of Contents",cmd:"mceInsertToc",icon:"toc",onPostRender:r}),e.addButton("tocupdate",{tooltip:"Update",cmd:"mceUpdateToc",icon:"reload"}),e.addContextToolbar(n,"tocupdate"),e.addMenuItem("toc",{text:"Table of Contents",context:"insert",cmd:"mceInsertToc",onPostRender:r})});
|
@@ -0,0 +1,135 @@
|
||||
.mce-visualblocks p {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhCQAJAJEAAAAAAP///7u7u////yH5BAEAAAMALAAAAAAJAAkAAAIQnG+CqCN/mlyvsRUpThG6AgA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks h1 {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGu1JuxHoAfRNRW3TWXyF2YiRUAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks h2 {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8Hybbx4oOuqgTynJd6bGlWg3DkJzoaUAAAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks h3 {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIZjI8Hybbx4oOuqgTynJf2Ln2NOHpQpmhAAQA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks h4 {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxInR0zqeAdhtJlXwV1oCll2HaWgAAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks h5 {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjane4iq5GlW05GgIkIZUAAAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks h6 {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDgAKAIABALu7u////yH5BAEAAAEALAAAAAAOAAoAAAIajI8HybbxIoiuwjan04jep1iZ1XRlAo5bVgAAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks div:not([data-mce-bogus]) {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhEgAKAIABALu7u////yH5BAEAAAEALAAAAAASAAoAAAIfjI9poI0cgDywrhuxfbrzDEbQM2Ei5aRjmoySW4pAAQA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks section {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhKAAKAIABALu7u////yH5BAEAAAEALAAAAAAoAAoAAAI5jI+pywcNY3sBWHdNrplytD2ellDeSVbp+GmWqaDqDMepc8t17Y4vBsK5hDyJMcI6KkuYU+jpjLoKADs=);
|
||||
}
|
||||
|
||||
.mce-visualblocks article {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhKgAKAIABALu7u////yH5BAEAAAEALAAAAAAqAAoAAAI6jI+pywkNY3wG0GBvrsd2tXGYSGnfiF7ikpXemTpOiJScasYoDJJrjsG9gkCJ0ag6KhmaIe3pjDYBBQA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks blockquote {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhPgAKAIABALu7u////yH5BAEAAAEALAAAAAA+AAoAAAJPjI+py+0Knpz0xQDyuUhvfoGgIX5iSKZYgq5uNL5q69asZ8s5rrf0yZmpNkJZzFesBTu8TOlDVAabUyatguVhWduud3EyiUk45xhTTgMBBQA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks address {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhLQAKAIABALu7u////yH5BAEAAAEALAAAAAAtAAoAAAI/jI+pywwNozSP1gDyyZcjb3UaRpXkWaXmZW4OqKLhBmLs+K263DkJK7OJeifh7FicKD9A1/IpGdKkyFpNmCkAADs=);
|
||||
}
|
||||
|
||||
.mce-visualblocks pre {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin-left: 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhFQAKAIABALu7uwAAACH5BAEAAAEALAAAAAAVAAoAAAIjjI+ZoN0cgDwSmnpz1NCueYERhnibZVKLNnbOq8IvKpJtVQAAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks figure {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhJAAKAIAAALu7u////yH5BAEAAAEALAAAAAAkAAoAAAI0jI+py+2fwAHUSFvD3RlvG4HIp4nX5JFSpnZUJ6LlrM52OE7uSWosBHScgkSZj7dDKnWAAgA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks hgroup {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhJwAKAIABALu7uwAAACH5BAEAAAEALAAAAAAnAAoAAAI3jI+pywYNI3uB0gpsRtt5fFnfNZaVSYJil4Wo03Hv6Z62uOCgiXH1kZIIJ8NiIxRrAZNMZAtQAAA7);
|
||||
}
|
||||
|
||||
.mce-visualblocks aside {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhHgAKAIABAKqqqv///yH5BAEAAAEALAAAAAAeAAoAAAItjI+pG8APjZOTzgtqy7I3f1yehmQcFY4WKZbqByutmW4aHUd6vfcVbgudgpYCADs=);
|
||||
}
|
||||
|
||||
.mce-visualblocks figcaption {
|
||||
border: 1px dashed #BBB;
|
||||
}
|
||||
|
||||
.mce-visualblocks ul {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIAAALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybGuYnqUVSjvw26DzzXiqIDlVwAAOw==)
|
||||
}
|
||||
|
||||
.mce-visualblocks ol {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybH6HHt0qourxC6CvzXieHyeWQAAOw==);
|
||||
}
|
||||
|
||||
.mce-visualblocks dl {
|
||||
padding-top: 10px;
|
||||
border: 1px dashed #BBB;
|
||||
margin: 0 0 1em 3px;
|
||||
background: transparent no-repeat url(data:image/gif;base64,R0lGODlhDQAKAIABALu7u////yH5BAEAAAEALAAAAAANAAoAAAIXjI8GybEOnmOvUoWznTqeuEjNSCqeGRUAOw==);
|
||||
}
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/visualblocks/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("visualblocks",function(e,t){function n(){var t=this;t.active(o),e.on("VisualBlocks",function(){t.active(e.dom.hasClass(e.getBody(),"mce-visualblocks"))})}var r,i,o;window.NodeList&&(e.addCommand("mceVisualBlocks",function(){var n,a=e.dom;r||(r=a.uniqueId(),n=a.create("link",{id:r,rel:"stylesheet",href:t+"/css/visualblocks.css"}),e.getDoc().getElementsByTagName("head")[0].appendChild(n)),e.on("PreviewFormats AfterPreviewFormats",function(t){o&&a.toggleClass(e.getBody(),"mce-visualblocks","afterpreviewformats"==t.type)}),a.toggleClass(e.getBody(),"mce-visualblocks"),o=e.dom.hasClass(e.getBody(),"mce-visualblocks"),i&&i.active(a.hasClass(e.getBody(),"mce-visualblocks")),e.fire("VisualBlocks")}),e.addButton("visualblocks",{title:"Show blocks",cmd:"mceVisualBlocks",onPostRender:n}),e.addMenuItem("visualblocks",{text:"Show blocks",cmd:"mceVisualBlocks",onPostRender:n,selectable:!0,context:"view",prependToContext:!0}),e.on("init",function(){e.settings.visualblocks_default_state&&e.execCommand("mceVisualBlocks",!1,null,{skip_focus:!0})}),e.on("remove",function(){e.dom.removeClass(e.getBody(),"mce-visualblocks")}))});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/visualchars/plugin.min.js
vendored
Executable file
@@ -0,0 +1 @@
|
||||
tinymce.PluginManager.add("visualchars",function(e){function t(t){function n(e){return'<span data-mce-bogus="1" class="mce-'+h[e]+'">'+e+"</span>"}function o(){var e,t="";for(e in h)t+=e;return new RegExp("["+t+"]","g")}function a(){var e,t="";for(e in h)t&&(t+=","),t+="span.mce-"+h[e];return t}var s,l,c,u,d,f,h,p,m=e.getBody(),g=e.selection;if(h={"\xa0":"nbsp","\xad":"shy"},r=!r,i.state=r,e.fire("VisualChars",{state:r}),p=o(),t&&(f=g.getBookmark()),r)for(l=[],tinymce.walk(m,function(e){3==e.nodeType&&e.nodeValue&&p.test(e.nodeValue)&&l.push(e)},"childNodes"),c=0;c<l.length;c++){for(u=l[c].nodeValue,u=u.replace(p,n),d=e.dom.create("div",null,u);s=d.lastChild;)e.dom.insertAfter(s,l[c]);e.dom.remove(l[c])}else for(l=e.dom.select(a(),m),c=l.length-1;c>=0;c--)e.dom.remove(l[c],1);g.moveToBookmark(f)}function n(){var t=this;e.on("VisualChars",function(e){t.active(e.state)})}var r,i=this;e.addCommand("mceVisualChars",t),e.addButton("visualchars",{title:"Show invisible characters",cmd:"mceVisualChars",onPostRender:n}),e.addMenuItem("visualchars",{text:"Show invisible characters",cmd:"mceVisualChars",onPostRender:n,selectable:!0,context:"view",prependToContext:!0})});
|
1
app/src/main/assets/RichTextEditor/tinymce/plugins/wordcount/plugin.min.js
vendored
Executable file
@@ -0,0 +1,17 @@
|
||||
// AbsoluteLayout
|
||||
|
||||
.@{prefix}-abs-layout {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
body .@{prefix}-abs-layout-item, .@{prefix}-abs-end {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.@{prefix}-abs-end {
|
||||
width: 1px; height: 1px;
|
||||
}
|
||||
|
||||
.@{prefix}-container-body.@{prefix}-abs-layout {
|
||||
overflow: hidden;
|
||||
}
|
10
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Animations.less
Executable file
@@ -0,0 +1,10 @@
|
||||
// Animations
|
||||
|
||||
.@{prefix}-fade {
|
||||
opacity: 0;
|
||||
.transition(opacity .15s linear);
|
||||
|
||||
&.@{prefix}-in {
|
||||
opacity: 1;
|
||||
}
|
||||
}
|
115
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Arrows.less
Executable file
@@ -0,0 +1,115 @@
|
||||
// Arrows
|
||||
|
||||
.@{prefix}-arrow-up {
|
||||
margin-top: 12px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow-down {
|
||||
margin-top: -12px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow:before,
|
||||
.@{prefix}-arrow:after {
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-style: solid;
|
||||
border-color: transparent;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-up:before {
|
||||
top: -9px;
|
||||
border-bottom-color: @panel-border;
|
||||
border-width: 0 9px 9px;
|
||||
margin-left: -9px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-down:before {
|
||||
bottom: -9px;
|
||||
border-top-color: @panel-border;
|
||||
border-width: 9px 9px 0;
|
||||
margin-left: -9px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-up:after {
|
||||
top: -8px;
|
||||
border-bottom-color: mix(@panel-bg, @panel-bg-hlight, 60%);
|
||||
border-width: 0 8px 8px;
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-down:after {
|
||||
bottom: -8px;
|
||||
border-top-color: mix(@panel-bg, @panel-bg-hlight, 60%);
|
||||
border-width: 8px 8px 0;
|
||||
margin-left: -8px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-left:before,
|
||||
.@{prefix}-arrow.@{prefix}-arrow-left:after {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-left:before {
|
||||
left: 8px;
|
||||
}
|
||||
.@{prefix}-arrow.@{prefix}-arrow-left:after {
|
||||
left: 9px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-right:before,
|
||||
.@{prefix}-arrow.@{prefix}-arrow-right:after {
|
||||
left: auto;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-right:before {
|
||||
right: 8px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-right:after {
|
||||
right: 9px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-center.@{prefix}-arrow.@{prefix}-arrow-left:before {
|
||||
left: -9px;
|
||||
top: 50%;
|
||||
border-right-color: @panel-border;
|
||||
border-width: 9px 9px 9px 0;
|
||||
margin-top: -9px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-center.@{prefix}-arrow.@{prefix}-arrow-left:after {
|
||||
left: -8px;
|
||||
top: 50%;
|
||||
border-right-color: mix(@panel-bg, @panel-bg-hlight, 60%);
|
||||
border-width: 8px 8px 8px 0;
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-center.@{prefix}-arrow.@{prefix}-arrow-left {
|
||||
margin-left: 12px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-center.@{prefix}-arrow.@{prefix}-arrow-right:before {
|
||||
right: -9px;
|
||||
top: 50%;
|
||||
border-left-color: @panel-border;
|
||||
border-width: 9px 0 9px 9px;
|
||||
margin-top: -9px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-center.@{prefix}-arrow.@{prefix}-arrow-right:after {
|
||||
right: -8px;
|
||||
top: 50%;
|
||||
border-left-color: mix(@panel-bg, @panel-bg-hlight, 60%);
|
||||
border-width: 8px 0 8px 8px;
|
||||
margin-top: -8px;
|
||||
}
|
||||
|
||||
.@{prefix}-arrow.@{prefix}-arrow-center.@{prefix}-arrow.@{prefix}-arrow-right {
|
||||
margin-left: -14px;
|
||||
}
|
175
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Button.less
Executable file
@@ -0,0 +1,175 @@
|
||||
// Button
|
||||
|
||||
.@{prefix}-btn {
|
||||
border: 1px solid mix(rgb(red(@btn-border-right), green(@btn-border-right), blue(@btn-border-right)), @panel-bg, 30%);
|
||||
border-color: @btn-border-top @btn-border-right @btn-border-bottom @btn-border-left;
|
||||
position: relative;
|
||||
text-shadow: @text-shadow;
|
||||
|
||||
.inline-block();
|
||||
.border-radius(3px);
|
||||
.box-shadow(@btn-box-shadow);
|
||||
.vertical-gradient(@btn-bg, @btn-bg-hlight);
|
||||
|
||||
&:hover, &:focus {
|
||||
color: @btn-text;
|
||||
.vertical-gradient(darken(@btn-bg, 5%), darken(@btn-bg-hlight, 5%));
|
||||
border-color: @btn-border-hover;
|
||||
}
|
||||
|
||||
&.@{prefix}-disabled button, &.@{prefix}-disabled:hover button {
|
||||
cursor: default;
|
||||
.box-shadow(none);
|
||||
.opacity(@btn-box-disabled-opacity);
|
||||
}
|
||||
|
||||
&.@{prefix}-active, &.@{prefix}-active:hover {
|
||||
.vertical-gradient(darken(@btn-bg, 10%), darken(@btn-bg-hlight, 5%));
|
||||
.box-shadow(@btn-box-shadow-active);
|
||||
border-color: darken(@btn-bg, 20%);
|
||||
}
|
||||
|
||||
&:active {
|
||||
.vertical-gradient(darken(@btn-bg, 7%), darken(@btn-bg-hlight, 5%));
|
||||
.box-shadow(@btn-box-shadow-active);
|
||||
border-color: @btn-border-active;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
.@{prefix}-btn button {
|
||||
padding: @btn-padding;
|
||||
font-size: @font-size;
|
||||
line-height: @line-height;
|
||||
*line-height: @line-height - 4px;
|
||||
cursor: pointer;
|
||||
color: @btn-text;
|
||||
text-align: center;
|
||||
|
||||
// Fixes for default inner padding of button
|
||||
overflow: visible; // IE7
|
||||
-webkit-appearance: none; // WebKit
|
||||
&::-moz-focus-inner { // Gecko
|
||||
border: 0;
|
||||
padding: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.@{prefix}-btn i {
|
||||
text-shadow: 1px 1px @btn-text-shadow;
|
||||
}
|
||||
|
||||
.@{prefix}-primary.@{prefix}-btn-has-text {
|
||||
min-width: 50px;
|
||||
}
|
||||
|
||||
.@{prefix}-primary {
|
||||
color: @btn-primary-text;
|
||||
border: 1px solid transparent;
|
||||
border-color: @btn-primary-border;
|
||||
.vertical-gradient(@btn-primary-bg, @btn-primary-bg-hlight);
|
||||
|
||||
&:hover, &:focus {
|
||||
.vertical-gradient(darken(@btn-primary-bg, 5%), darken(@btn-primary-bg-hlight, 5%));
|
||||
border-color: @btn-primary-border-hover;
|
||||
}
|
||||
|
||||
&.@{prefix}-disabled button, &.@{prefix}-disabled:hover button {
|
||||
cursor: default;
|
||||
.box-shadow(none);
|
||||
.opacity(@btn-box-disabled-opacity);
|
||||
}
|
||||
|
||||
&.@{prefix}-active, &.@{prefix}-active:hover, &:not(.@{prefix}-disabled):active {
|
||||
.vertical-gradient(darken(@btn-primary-bg, 10%), darken(@btn-primary-bg-hlight, 10%));
|
||||
.box-shadow(@btn-box-shadow-active);
|
||||
}
|
||||
}
|
||||
|
||||
.@{prefix}-primary button, .@{prefix}-primary button i {
|
||||
color: @btn-primary-text;
|
||||
text-shadow: 1px 1px @btn-primary-text-shadow;
|
||||
}
|
||||
|
||||
.@{prefix}-btn .@{prefix}-txt {
|
||||
font-size: inherit;
|
||||
line-height: inherit;
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-large button {
|
||||
padding: 9px 14px;
|
||||
font-size: @font-size + 2px;
|
||||
line-height: normal;
|
||||
.border-radius(5px);
|
||||
}
|
||||
|
||||
.@{prefix}-btn-large i {
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-small button {
|
||||
padding: 1px 5px;
|
||||
font-size: @font-size - 2px;
|
||||
*padding-bottom: 2px;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-small i {
|
||||
line-height: 20px;
|
||||
vertical-align: top;
|
||||
*line-height: 18px;
|
||||
}
|
||||
|
||||
.@{prefix}-btn .@{prefix}-caret {
|
||||
margin-top: 8px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-small .@{prefix}-caret {
|
||||
margin-top: 8px;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-caret {
|
||||
.inline-block();
|
||||
width: 0; height: 0;
|
||||
vertical-align: top;
|
||||
border-top: 4px solid @btn-caret-border;
|
||||
border-right: 4px solid transparent;
|
||||
border-left: 4px solid transparent;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.@{prefix}-disabled .@{prefix}-caret {
|
||||
border-top-color: @text-disabled;
|
||||
}
|
||||
|
||||
.@{prefix}-caret.@{prefix}-up {
|
||||
border-bottom: 4px solid @btn-caret-border;
|
||||
border-top: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-flat {
|
||||
border: 0;
|
||||
background: transparent;
|
||||
.border-radius(0);
|
||||
.box-shadow(none);
|
||||
filter: none;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-flat:hover, .@{prefix}-btn-flat.@{prefix}-active, .@{prefix}-btn-flat:focus, .@{prefix}-btn-flat:active {
|
||||
border: 0;
|
||||
background: @menubar-bg-active;
|
||||
filter: none;
|
||||
.box-shadow(none);
|
||||
}
|
||||
|
||||
.@{prefix}-btn-has-text .@{prefix}-ico {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
||||
// RTL
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-btn button {
|
||||
direction: rtl;
|
||||
}
|
71
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/ButtonGroup.less
Executable file
@@ -0,0 +1,71 @@
|
||||
// ButtonGroup
|
||||
|
||||
.btn-group-border-left(@border-color) when (@has-button-borders = true) {
|
||||
border-left: 1px solid @border-color;
|
||||
}
|
||||
|
||||
.btn-group-border-right(@border-color) when (@has-button-borders = true) {
|
||||
border-right: 1px solid @border-color;
|
||||
}
|
||||
|
||||
|
||||
.@{prefix}-btn-group .@{prefix}-btn {
|
||||
border-width: @btn-group-border-width;
|
||||
margin: 0;
|
||||
.border-radius(0);
|
||||
margin-left: @flow-layout-spacing;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group .@{prefix}-btn when (@has-button-borders = true) {
|
||||
border-left-width: 0;
|
||||
border-right-width: 0;
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group:not(:first-child) when (@has-button-borders = true) {
|
||||
padding-left: 1px;
|
||||
margin-left: 1px;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group:not(:first-child) when (@has-button-borders = false) {
|
||||
border-left: 1px solid darken(@btn-bg, 15%);
|
||||
padding-left: @flow-layout-spacing + 1px;
|
||||
margin-left: @flow-layout-spacing + 1px;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group .@{prefix}-first {
|
||||
.border-radius(3px 0 0 3px);
|
||||
.btn-group-border-left(@btn-border-left);
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group .@{prefix}-last {
|
||||
.border-radius(0 3px 3px 0);
|
||||
.btn-group-border-right(@btn-border-right);
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group .@{prefix}-first.@{prefix}-last {
|
||||
.border-radius(3px);
|
||||
}
|
||||
|
||||
.@{prefix}-btn-group .@{prefix}-btn.@{prefix}-flow-layout-item {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
// RTL
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-btn-group .@{prefix}-btn {
|
||||
margin-left: 0;
|
||||
margin-right: @flow-layout-spacing;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-btn-group .@{prefix}-first {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-btn-group:not(:first-child) {
|
||||
border-left: none;
|
||||
border-right:1px solid darken(@btn-bg, 15%);
|
||||
padding-right: @flow-layout-spacing + 2px;
|
||||
margin-right: @flow-layout-spacing + 2px;
|
||||
}
|
49
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Checkbox.less
Executable file
@@ -0,0 +1,49 @@
|
||||
// Checkbox
|
||||
|
||||
.@{prefix}-checkbox {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
i.@{prefix}-i-checkbox {
|
||||
margin: 0 3px 0 0;
|
||||
border: 1px solid @checkbox-border;
|
||||
.border-radius(3px);
|
||||
.box-shadow(@checkbox-box-shadow);
|
||||
.vertical-gradient(@checkbox-bg, @checkbox-bg-hlight);
|
||||
text-indent: -10em;
|
||||
*font-size: 0;
|
||||
*line-height: 0;
|
||||
*text-indent: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.@{prefix}-checked i.@{prefix}-i-checkbox {
|
||||
color: @btn-text;
|
||||
font-size: 16px;
|
||||
line-height: 16px;
|
||||
text-indent: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-checkbox:focus i.@{prefix}-i-checkbox, .@{prefix}-checkbox.@{prefix}-focus i.@{prefix}-i-checkbox {
|
||||
border: 1px solid @checkbox-border-focus;
|
||||
.box-shadow(inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px fadeout(@checkbox-border-focus, 15%));
|
||||
}
|
||||
|
||||
.@{prefix}-checkbox.@{prefix}-disabled .@{prefix}-label, .@{prefix}-checkbox.@{prefix}-disabled i.@{prefix}-i-checkbox {
|
||||
color: mix(@text, @panel-bg, 40%);
|
||||
}
|
||||
|
||||
.@{prefix}-checkbox .@{prefix}-label {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
// RTL
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-checkbox {
|
||||
direction: rtl;
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl i.@{prefix}-i-checkbox {
|
||||
margin: 0 0 0 3px;
|
||||
}
|
6
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/ColorBox.less
Executable file
@@ -0,0 +1,6 @@
|
||||
// ColorBox
|
||||
|
||||
.@{prefix}-colorbox i {
|
||||
border: 1px solid @textbox-border;
|
||||
width: 14px; height: 14px;
|
||||
}
|
72
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/ColorButton.less
Executable file
@@ -0,0 +1,72 @@
|
||||
// ColorButton
|
||||
|
||||
.@{prefix}-colorbutton .@{prefix}-ico {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton-grid {
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton button {
|
||||
padding-right: 6px;
|
||||
padding-left: 6px;
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton .@{prefix}-preview {
|
||||
padding-right: 3px;
|
||||
display: block;
|
||||
position: absolute;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
margin-left: -17px;
|
||||
margin-top: 7px;
|
||||
background: gray;
|
||||
width: 13px;
|
||||
height: 2px;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton.@{prefix}-btn-small .@{prefix}-preview {
|
||||
margin-left: -16px;
|
||||
padding-right: 0;
|
||||
width: 16px;
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton .@{prefix}-open {
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
border-left: 1px solid transparent;
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton:hover .@{prefix}-open {
|
||||
border-color: darken(@btn-bg, 20%);
|
||||
}
|
||||
|
||||
.@{prefix}-colorbutton.@{prefix}-btn-small .@{prefix}-open {
|
||||
padding: 0 3px 0 3px;
|
||||
}
|
||||
|
||||
// RTL
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-colorbutton {
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-colorbutton .@{prefix}-preview {
|
||||
margin-left: 0;
|
||||
padding-right: 0;
|
||||
padding-left: 3px;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-colorbutton.@{prefix}-btn-small .@{prefix}-preview {
|
||||
margin-left: 0;
|
||||
padding-right: 0;
|
||||
padding-left: 2px;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-colorbutton .@{prefix}-open {
|
||||
padding-left: 4px;
|
||||
padding-right: 4px;
|
||||
border-left: 0;
|
||||
}
|
80
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/ColorPicker.less
Executable file
@@ -0,0 +1,80 @@
|
||||
// ColorPicker
|
||||
|
||||
.@{prefix}-colorpicker {
|
||||
position: relative;
|
||||
width: 250px;
|
||||
height: 220px;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-sv {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 90%;
|
||||
height: 100%;
|
||||
border: 1px solid @colorpicker-border;
|
||||
cursor: crosshair;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-h-chunk {
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-overlay1, .@{prefix}-colorpicker-overlay2 {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-overlay1 {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff');
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=1,startColorstr='#ffffff', endColorstr='#00ffffff')";
|
||||
background: linear-gradient(to right, rgba(255,255,255,1), rgba(255,255,255,0));
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-overlay2 {
|
||||
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000');
|
||||
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#00000000', endColorstr='#000000')";
|
||||
background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1));
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-selector1 {
|
||||
background: none;
|
||||
position: absolute;
|
||||
width: 12px;
|
||||
height: 12px;
|
||||
margin: -8px 0 0 -8px;
|
||||
border: 1px solid black;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-selector2 {
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
height: 10px;
|
||||
border: 1px solid white;
|
||||
border-radius: 50%;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-h {
|
||||
position: absolute;
|
||||
top: 0; right: 0;
|
||||
width: 6.5%;
|
||||
height: 100%;
|
||||
border: 1px solid @colorpicker-border;
|
||||
cursor: crosshair;
|
||||
}
|
||||
|
||||
.@{prefix}-colorpicker-h-marker {
|
||||
margin-top: -4px;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: -1px;
|
||||
width: 100%;
|
||||
border: 1px solid @colorpicker-hue-border;
|
||||
background: @colorpicker-hue-bg;
|
||||
height: 4px;
|
||||
z-index: 100;
|
||||
}
|
97
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/ComboBox.less
Executable file
@@ -0,0 +1,97 @@
|
||||
// ComboBox
|
||||
|
||||
.@{prefix}-combobox {
|
||||
position: relative;
|
||||
.inline-block();
|
||||
.border-radius(3px);
|
||||
.box-shadow(@textbox-box-shadow);
|
||||
*height: 32px;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox input {
|
||||
border: 1px solid @textbox-border;
|
||||
border-right-color: @combobox-border;
|
||||
height: 28px;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox.@{prefix}-disabled input {
|
||||
color: mix(@text, @textbox-bg, 40%);
|
||||
}
|
||||
|
||||
.@{prefix}-combobox.@{prefix}-has-open input {
|
||||
.border-radius(4px 0 0 4px);
|
||||
}
|
||||
|
||||
.@{prefix}-combobox .@{prefix}-btn {
|
||||
border: 1px solid @textbox-border;
|
||||
border-left: 0;
|
||||
.border-radius(0 4px 4px 0);
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox button {
|
||||
padding-right: 8px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox.@{prefix}-disabled .@{prefix}-btn button {
|
||||
cursor: default;
|
||||
.box-shadow(none);
|
||||
.opacity(@btn-box-disabled-opacity);
|
||||
}
|
||||
|
||||
.@{prefix}-combobox .@{prefix}-status {
|
||||
position: absolute;
|
||||
right: 2px;
|
||||
top: 50%;
|
||||
line-height: 16px;
|
||||
margin-top: -8px;
|
||||
font-size: 12px;
|
||||
width: 15px;
|
||||
height: 15px;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox.@{prefix}-has-status input {
|
||||
padding-right: 20px;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox.@{prefix}-has-open .@{prefix}-status {
|
||||
right: 37px;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox .@{prefix}-status.@{prefix}-i-warning {
|
||||
color: @combobox-warning-text;
|
||||
}
|
||||
|
||||
.@{prefix}-combobox .@{prefix}-status.@{prefix}-i-checkmark {
|
||||
color: @combobox-success-text;
|
||||
}
|
||||
|
||||
.@{prefix}-menu.@{prefix}-combobox-menu {
|
||||
border-top: 0;
|
||||
margin-top: 0;
|
||||
max-height: 200px;
|
||||
|
||||
.@{prefix}-menu-item {
|
||||
padding: 4px 6px 4px 4px;
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.@{prefix}-menu-item-sep {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-text {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.@{prefix}-menu-item-link, .@{prefix}-menu-item-link b {
|
||||
font-size: 11px;
|
||||
}
|
||||
|
||||
.@{prefix}-text b {
|
||||
font-size: 11px;
|
||||
}
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
// Container
|
||||
|
||||
.@{prefix}-container, .@{prefix}-container-body {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.@{prefix}-autoscroll {
|
||||
overflow: hidden;
|
||||
}
|
@@ -0,0 +1,4 @@
|
||||
/* Content.Inline.less */
|
||||
|
||||
@import "Mixins.less";
|
||||
@import "Content.Objects.less";
|
178
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Content.Objects.less
Executable file
@@ -0,0 +1,178 @@
|
||||
/* Content.Objects.less */
|
||||
|
||||
.mce-content-body .mce-reset {
|
||||
margin: 0; padding: 0; border: 0; outline: 0;
|
||||
vertical-align: top; background: transparent;
|
||||
text-decoration: none; color: black;
|
||||
font-family: Arial;
|
||||
font-size: 11px; text-shadow: none; float: none;
|
||||
position: static; width: auto; height: auto;
|
||||
white-space: nowrap; cursor: inherit;
|
||||
line-height: normal; font-weight: normal;
|
||||
text-align: left;
|
||||
-webkit-tap-highlight-color: transparent;
|
||||
-moz-box-sizing: content-box;
|
||||
-webkit-box-sizing: content-box;
|
||||
box-sizing: content-box;
|
||||
direction: ltr;
|
||||
max-width: none;
|
||||
}
|
||||
|
||||
.mce-object {
|
||||
border: 1px dotted #3A3A3A;
|
||||
background: #D5D5D5 url(img/object.gif) no-repeat center;
|
||||
}
|
||||
|
||||
.mce-preview-object {
|
||||
display: inline-block;
|
||||
position: relative;
|
||||
margin: 0 2px 0 2px;
|
||||
line-height: 0;
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
.mce-preview-object .mce-shim {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 100%; height: 100%;
|
||||
background: url(data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7);
|
||||
}
|
||||
|
||||
figure.align-left {
|
||||
float: left;
|
||||
}
|
||||
|
||||
figure.align-right {
|
||||
float: right;
|
||||
}
|
||||
|
||||
figure.image.align-center {
|
||||
display: table;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
|
||||
figure.image {
|
||||
display: inline-block;
|
||||
border: 1px solid gray;
|
||||
margin: 0 2px 0 1px;
|
||||
background: #f5f2f0;
|
||||
}
|
||||
|
||||
figure.image img {
|
||||
margin: 8px 8px 0 8px;
|
||||
}
|
||||
|
||||
figure.image figcaption {
|
||||
margin: 6px 8px 6px 8px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.mce-toc {
|
||||
border: 1px solid gray;
|
||||
}
|
||||
|
||||
.mce-toc h2 {
|
||||
margin: 4px;
|
||||
}
|
||||
|
||||
.mce-toc li {
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.mce-preview-object[data-mce-selected="2"] .mce-shim {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.mce-pagebreak {
|
||||
cursor: default;
|
||||
display: block;
|
||||
border: 0;
|
||||
width: 100%;
|
||||
height: 5px;
|
||||
border: 1px dashed #666;
|
||||
margin-top: 15px;
|
||||
page-break-before: always;
|
||||
}
|
||||
|
||||
@media print {
|
||||
.mce-pagebreak {
|
||||
border: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.mce-item-anchor {
|
||||
cursor: default;
|
||||
display: inline-block;
|
||||
-webkit-user-select: all;
|
||||
-webkit-user-modify: read-only;
|
||||
-moz-user-select: all;
|
||||
-moz-user-modify: read-only;
|
||||
user-select: all;
|
||||
user-modify: read-only;
|
||||
width: 9px !important;
|
||||
height: 9px !important;
|
||||
border: 1px dotted #3A3A3A;
|
||||
background: #D5D5D5 url(img/anchor.gif) no-repeat center;
|
||||
}
|
||||
|
||||
.mce-nbsp, .mce-shy {
|
||||
background: #AAA;
|
||||
}
|
||||
|
||||
.mce-shy::after {
|
||||
content: '-';
|
||||
}
|
||||
|
||||
hr {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mce-match-marker {
|
||||
background: #AAA;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.mce-match-marker-selected {
|
||||
background: #3399ff;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.mce-spellchecker-word {
|
||||
border-bottom: 2px solid #F00;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mce-spellchecker-grammar {
|
||||
border-bottom: 2px solid #008000;
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
.mce-item-table, .mce-item-table td, .mce-item-table th, .mce-item-table caption {
|
||||
border: 1px dashed #BBB;
|
||||
}
|
||||
|
||||
td[data-mce-selected], th[data-mce-selected] {
|
||||
background-color: #3399ff !important;
|
||||
}
|
||||
|
||||
.mce-edit-focus {
|
||||
outline: 1px dotted #333;
|
||||
}
|
||||
|
||||
.mce-content-body *[contentEditable=false] *[contentEditable=true]:focus {
|
||||
outline: 2px solid #2d8ac7;
|
||||
}
|
||||
|
||||
.mce-content-body *[contentEditable=false] *[contentEditable=true]:hover {
|
||||
outline: 2px solid #7ACAFF;
|
||||
}
|
||||
|
||||
.mce-content-body *[contentEditable=false][data-mce-selected] {
|
||||
outline: 2px solid #2d8ac7;
|
||||
}
|
||||
|
||||
.mce-resize-bar-dragging {
|
||||
background-color: blue;
|
||||
.opacity(0.25);
|
||||
}
|
27
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Content.less
Executable file
@@ -0,0 +1,27 @@
|
||||
/* Content.less */
|
||||
|
||||
@font-family: Verdana, Arial, Helvetica, sans-serif;
|
||||
@font-size: 14px;
|
||||
|
||||
body {
|
||||
background-color: #FFFFFF;
|
||||
color: #000000;
|
||||
font-family: @font-family;
|
||||
font-size: @font-size;
|
||||
scrollbar-3dlight-color: #F0F0EE;
|
||||
scrollbar-arrow-color: #676662;
|
||||
scrollbar-base-color: #F0F0EE;
|
||||
scrollbar-darkshadow-color: #DDDDDD;
|
||||
scrollbar-face-color: #E0E0DD;
|
||||
scrollbar-highlight-color: #F0F0EE;
|
||||
scrollbar-shadow-color: #F0F0EE;
|
||||
scrollbar-track-color: #F5F5F5;
|
||||
}
|
||||
|
||||
td, th {
|
||||
font-family: @font-family;
|
||||
font-size: @font-size;
|
||||
}
|
||||
|
||||
@import "Mixins.less";
|
||||
@import "Content.Objects.less";
|
62
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/CropRect.less
Executable file
@@ -0,0 +1,62 @@
|
||||
// CropRect
|
||||
|
||||
.@{prefix}-croprect-container {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle {
|
||||
position: absolute;
|
||||
top: 0; left: 0;
|
||||
width: 20px; height: 20px;
|
||||
border: 2px solid white;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle-nw {
|
||||
border-width: 2px 0 0 2px;
|
||||
margin: -2px 0 0 -2px;
|
||||
cursor: nw-resize;
|
||||
top: 100px; left: 100px;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle-ne {
|
||||
border-width: 2px 2px 0 0;
|
||||
margin: -2px 0 0 -20px;
|
||||
cursor: ne-resize;
|
||||
top: 100px; left: 200px;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle-sw {
|
||||
border-width: 0 0 2px 2px;
|
||||
margin: -20px 2px 0 -2px;
|
||||
cursor: sw-resize;
|
||||
top: 200px; left: 100px;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle-se {
|
||||
border-width: 0 2px 2px 0;
|
||||
margin: -20px 0 0 -20px;
|
||||
cursor: se-resize;
|
||||
top: 200px; left: 200px;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle-move {
|
||||
position: absolute;
|
||||
cursor: move;
|
||||
border: 0;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-block {
|
||||
.opacity(@window-modalblock-opacity);
|
||||
position: absolute;
|
||||
background: black;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle:focus {
|
||||
border-color: @textbox-border-focus;
|
||||
}
|
||||
|
||||
.@{prefix}-croprect-handle-move:focus {
|
||||
outline: 1px solid @textbox-border-focus;
|
||||
}
|
15
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/FieldSet.less
Executable file
@@ -0,0 +1,15 @@
|
||||
// FieldSet
|
||||
|
||||
.@{prefix}-fieldset {
|
||||
border: 0 solid #9E9E9E;
|
||||
.border-radius(3px);
|
||||
}
|
||||
|
||||
.@{prefix}-fieldset > .@{prefix}-container-body {
|
||||
margin-top: -15px;
|
||||
}
|
||||
|
||||
.@{prefix}-fieldset-title {
|
||||
margin-left: 5px;
|
||||
padding: 0 5px 0 5px;
|
||||
}
|
@@ -0,0 +1,9 @@
|
||||
// FitLayout
|
||||
|
||||
.@{prefix}-fit-layout {
|
||||
.inline-block();
|
||||
}
|
||||
|
||||
.@{prefix}-fit-layout-item {
|
||||
position: absolute;
|
||||
}
|
69
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/FloatPanel.less
Executable file
@@ -0,0 +1,69 @@
|
||||
// FloatPanel
|
||||
|
||||
.@{prefix}-floatpanel {
|
||||
position: absolute;
|
||||
.box-shadow(@floatpanel-box-shadow);
|
||||
}
|
||||
|
||||
.@{prefix}-floatpanel.@{prefix}-fixed {
|
||||
position: fixed;
|
||||
}
|
||||
|
||||
// Popover panel
|
||||
|
||||
.@{prefix}-floatpanel .@{prefix}-arrow,
|
||||
.@{prefix}-floatpanel .@{prefix}-arrow:after {
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 0;
|
||||
height: 0;
|
||||
border-color: transparent;
|
||||
border-style: solid;
|
||||
}
|
||||
|
||||
.@{prefix}-floatpanel .@{prefix}-arrow {
|
||||
border-width: @popover-arrow-outer-width;
|
||||
}
|
||||
|
||||
.@{prefix}-floatpanel .@{prefix}-arrow:after {
|
||||
border-width: @popover-arrow-width;
|
||||
content: "";
|
||||
}
|
||||
|
||||
.@{prefix}-floatpanel.@{prefix}-popover {
|
||||
.reset-gradient();
|
||||
.border-radius(6px);
|
||||
.box-shadow(@floatpanel-box-shadow);
|
||||
top: 0;
|
||||
left: 0;
|
||||
background: @popover-bg;
|
||||
border: 1px solid @panel-border;
|
||||
border: 1px solid @popover-arrow-outer;
|
||||
|
||||
&.@{prefix}-bottom {
|
||||
margin-top: @popover-arrow-width;
|
||||
*margin-top: 0;
|
||||
|
||||
& > .@{prefix}-arrow {
|
||||
left: 50%;
|
||||
margin-left: -@popover-arrow-outer-width;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: @panel-border;
|
||||
border-bottom-color: @popover-arrow-outer;
|
||||
top: -@popover-arrow-outer-width;
|
||||
|
||||
&:after {
|
||||
top: 1px;
|
||||
margin-left: -@popover-arrow-width;
|
||||
border-top-width: 0;
|
||||
border-bottom-color: @popover-arrow;
|
||||
}
|
||||
}
|
||||
|
||||
&.@{prefix}-start { margin-left: -22px; }
|
||||
&.@{prefix}-start > .@{prefix}-arrow { left: 20px; }
|
||||
|
||||
&.@{prefix}-end { margin-left: 22px; }
|
||||
&.@{prefix}-end > .@{prefix}-arrow { right: 10px; left: auto; }
|
||||
}
|
||||
}
|
36
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/FlowLayout.less
Executable file
@@ -0,0 +1,36 @@
|
||||
// FlowLayout
|
||||
|
||||
.@{prefix}-flow-layout-item {
|
||||
.inline-block();
|
||||
}
|
||||
|
||||
.@{prefix}-flow-layout-item {
|
||||
margin: @flow-layout-spacing 0 @flow-layout-spacing @flow-layout-spacing;
|
||||
}
|
||||
|
||||
.@{prefix}-flow-layout-item.@{prefix}-last {
|
||||
margin-right: @flow-layout-spacing;
|
||||
}
|
||||
|
||||
.@{prefix}-flow-layout {
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.@{prefix}-tinymce-inline .@{prefix}-flow-layout {
|
||||
white-space: nowrap;
|
||||
}
|
||||
|
||||
// RTL
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-flow-layout {
|
||||
text-align: right;
|
||||
direction: rtl;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-flow-layout-item {
|
||||
margin: @flow-layout-spacing @flow-layout-spacing @flow-layout-spacing 0;
|
||||
}
|
||||
|
||||
.@{prefix}-rtl .@{prefix}-flow-layout-item.@{prefix}-last {
|
||||
margin-left: @flow-layout-spacing;
|
||||
}
|
136
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Icons.Ie7.less
Executable file
@@ -0,0 +1,136 @@
|
||||
/* Icons IE7 */
|
||||
|
||||
@font-face {
|
||||
font-family: 'tinymce';
|
||||
src:url('fonts/tinymce.eot');
|
||||
src:url('fonts/tinymce.eot?#iefix') format('embedded-opentype'),
|
||||
url('fonts/tinymce.woff') format('woff'),
|
||||
url('fonts/tinymce.ttf') format('truetype'),
|
||||
url('fonts/tinymce.svg#tinymce') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'tinymce-small';
|
||||
src:url('fonts/tinymce-small.eot');
|
||||
src:url('fonts/tinymce-small.eot?#iefix') format('embedded-opentype'),
|
||||
url('fonts/tinymce-small.woff') format('woff'),
|
||||
url('fonts/tinymce-small.ttf') format('truetype'),
|
||||
url('fonts/tinymce-small.svg#tinymce') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@iconSize: 16px;
|
||||
|
||||
.@{prefix}-ico {
|
||||
font-family: 'tinymce';
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-size: @iconSize;
|
||||
line-height: 16px;
|
||||
vertical-align: text-top;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
|
||||
display: inline-block;
|
||||
background: transparent center center;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: @btn-text;
|
||||
-ie7-icon: ' ';
|
||||
}
|
||||
|
||||
.@{prefix}-btn-small .@{prefix}-ico {
|
||||
font-family: 'tinymce-small';
|
||||
}
|
||||
|
||||
// .@{prefix}-i-checkbox needs to have zoom overridden since it's set by the gradient mixin
|
||||
.@{prefix}-ico, i.@{prefix}-i-checkbox {
|
||||
zoom: ~"expression(this.runtimeStyle['zoom'] = '1', this.innerHTML = this.currentStyle['-ie7-icon'].substr(1, 1) + ' ')";
|
||||
}
|
||||
|
||||
.@{prefix}-i-save { -ie7-icon: "\e000"; }
|
||||
.@{prefix}-i-newdocument { -ie7-icon: "\e001"; }
|
||||
.@{prefix}-i-fullpage { -ie7-icon: "\e002"; }
|
||||
.@{prefix}-i-alignleft { -ie7-icon: "\e003"; }
|
||||
.@{prefix}-i-aligncenter { -ie7-icon: "\e004"; }
|
||||
.@{prefix}-i-alignright { -ie7-icon: "\e005"; }
|
||||
.@{prefix}-i-alignjustify { -ie7-icon: "\e006"; }
|
||||
.@{prefix}-i-alignnone { -ie7-icon: "\e003"; }
|
||||
.@{prefix}-i-cut { -ie7-icon: "\e007"; }
|
||||
.@{prefix}-i-paste { -ie7-icon: "\e008"; }
|
||||
.@{prefix}-i-searchreplace { -ie7-icon: "\e009"; }
|
||||
.@{prefix}-i-bullist { -ie7-icon: "\e00a"; }
|
||||
.@{prefix}-i-numlist { -ie7-icon: "\e00b"; }
|
||||
.@{prefix}-i-indent { -ie7-icon: "\e00c"; }
|
||||
.@{prefix}-i-outdent { -ie7-icon: "\e00d"; }
|
||||
.@{prefix}-i-blockquote { -ie7-icon: "\e00e"; }
|
||||
.@{prefix}-i-undo { -ie7-icon: "\e00f"; }
|
||||
.@{prefix}-i-redo { -ie7-icon: "\e010"; }
|
||||
.@{prefix}-i-link { -ie7-icon: "\e011"; }
|
||||
.@{prefix}-i-unlink { -ie7-icon: "\e012"; }
|
||||
.@{prefix}-i-anchor { -ie7-icon: "\e013"; }
|
||||
.@{prefix}-i-image { -ie7-icon: "\e014"; }
|
||||
.@{prefix}-i-media { -ie7-icon: "\e015"; }
|
||||
.@{prefix}-i-help { -ie7-icon: "\e016"; }
|
||||
.@{prefix}-i-code { -ie7-icon: "\e017"; }
|
||||
.@{prefix}-i-insertdatetime { -ie7-icon: "\e018"; }
|
||||
.@{prefix}-i-preview { -ie7-icon: "\e019"; }
|
||||
.@{prefix}-i-forecolor { -ie7-icon: "\e01a"; }
|
||||
.@{prefix}-i-backcolor { -ie7-icon: "\e01a"; }
|
||||
.@{prefix}-i-table { -ie7-icon: "\e01b"; }
|
||||
.@{prefix}-i-hr { -ie7-icon: "\e01c"; }
|
||||
.@{prefix}-i-removeformat { -ie7-icon: "\e01d"; }
|
||||
.@{prefix}-i-subscript { -ie7-icon: "\e01e"; }
|
||||
.@{prefix}-i-superscript { -ie7-icon: "\e01f"; }
|
||||
.@{prefix}-i-charmap { -ie7-icon: "\e020"; }
|
||||
.@{prefix}-i-emoticons { -ie7-icon: "\e021"; }
|
||||
.@{prefix}-i-print { -ie7-icon: "\e022"; }
|
||||
.@{prefix}-i-fullscreen { -ie7-icon: "\e023"; }
|
||||
.@{prefix}-i-spellchecker { -ie7-icon: "\e024"; }
|
||||
.@{prefix}-i-nonbreaking { -ie7-icon: "\e025"; }
|
||||
.@{prefix}-i-template { -ie7-icon: "\e026"; }
|
||||
.@{prefix}-i-pagebreak { -ie7-icon: "\e027"; }
|
||||
.@{prefix}-i-restoredraft { -ie7-icon: "\e028"; }
|
||||
.@{prefix}-i-untitled { -ie7-icon: "\e029"; }
|
||||
.@{prefix}-i-bold { -ie7-icon: "\e02a"; }
|
||||
.@{prefix}-i-italic { -ie7-icon: "\e02b"; }
|
||||
.@{prefix}-i-underline { -ie7-icon: "\e02c"; }
|
||||
.@{prefix}-i-strikethrough { -ie7-icon: "\e02d"; }
|
||||
.@{prefix}-i-visualchars { -ie7-icon: "\e02e"; }
|
||||
.@{prefix}-i-ltr { -ie7-icon: "\e02f"; }
|
||||
.@{prefix}-i-rtl { -ie7-icon: "\e030"; }
|
||||
.@{prefix}-i-copy { -ie7-icon: "\e031"; }
|
||||
.@{prefix}-i-resize { -ie7-icon: "\e032"; }
|
||||
.@{prefix}-i-browse { -ie7-icon: "\e034"; }
|
||||
.@{prefix}-i-pastetext { -ie7-icon: "\e035"; }
|
||||
.@{prefix}-i-rotateleft { -ie7-icon: "\eaa8"; }
|
||||
.@{prefix}-i-rotateright { -ie7-icon: "\eaa9"; }
|
||||
.@{prefix}-i-crop { -ie7-icon: "\ee78"; }
|
||||
.@{prefix}-i-editimage { -ie7-icon: "\e914"; }
|
||||
.@{prefix}-i-options { -ie7-icon: "\ec6a"; }
|
||||
.@{prefix}-i-flipv { -ie7-icon: "\eaaa"; }
|
||||
.@{prefix}-i-fliph { -ie7-icon: "\eaac"; }
|
||||
.@{prefix}-i-zoomin { -ie7-icon: "\eb35"; }
|
||||
.@{prefix}-i-zoomout { -ie7-icon: "\eb36"; }
|
||||
.@{prefix}-i-sun { -ie7-icon: "\eccc"; }
|
||||
.@{prefix}-i-moon { -ie7-icon: "\eccd"; }
|
||||
.@{prefix}-i-arrowleft { -ie7-icon: "\edc0"; }
|
||||
.@{prefix}-i-arrowright { -ie7-icon: "\edb8"; }
|
||||
.@{prefix}-i-drop { -ie7-icon: "\e934"; }
|
||||
.@{prefix}-i-contrast { -ie7-icon: "\ecd4"; }
|
||||
.@{prefix}-i-sharpen { -ie7-icon: "\eba7"; }
|
||||
.@{prefix}-i-palette { -ie7-icon: "\e92a"; }
|
||||
.@{prefix}-i-resize2 { -ie7-icon: "\edf9"; }
|
||||
.@{prefix}-i-orientation { -ie7-icon: "\e601"; }
|
||||
.@{prefix}-i-invert { -ie7-icon: "\e602"; }
|
||||
.@{prefix}-i-gamma { -ie7-icon: "\e600"; }
|
||||
.@{prefix}-i-remove { -ie7-icon: "\ed6a"; }
|
||||
.@{prefix}-i-codesample { -ie7-icon: "\e603"; }
|
||||
.@{prefix}-i-checkbox, .@{prefix}-i-selected {
|
||||
-ie7-icon: "\e033";
|
||||
}
|
||||
|
||||
.@{prefix}-i-selected { visibility: hidden; }
|
||||
.@{prefix}-i-backcolor { background: #BBB; }
|
182
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Icons.less
Executable file
@@ -0,0 +1,182 @@
|
||||
/* Icons */
|
||||
|
||||
@font-face {
|
||||
font-family: 'tinymce';
|
||||
src:url('fonts/tinymce.eot');
|
||||
src:url('fonts/tinymce.eot?#iefix') format('embedded-opentype'),
|
||||
url('fonts/tinymce.woff') format('woff'),
|
||||
url('fonts/tinymce.ttf') format('truetype'),
|
||||
url('fonts/tinymce.svg#tinymce') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'tinymce-small';
|
||||
src:url('fonts/tinymce-small.eot');
|
||||
src:url('fonts/tinymce-small.eot?#iefix') format('embedded-opentype'),
|
||||
url('fonts/tinymce-small.woff') format('woff'),
|
||||
url('fonts/tinymce-small.ttf') format('truetype'),
|
||||
url('fonts/tinymce-small.svg#tinymce') format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@iconSize: 16px;
|
||||
|
||||
.@{prefix}-ico {
|
||||
font-family: 'tinymce', Arial;
|
||||
font-style: normal;
|
||||
font-weight: normal;
|
||||
font-variant: normal;
|
||||
font-size: @iconSize;
|
||||
line-height: 16px;
|
||||
speak: none;
|
||||
vertical-align: text-top;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
|
||||
display: inline-block;
|
||||
background: transparent center center;
|
||||
background-size: cover;
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
color: @btn-text;
|
||||
}
|
||||
|
||||
.@{prefix}-btn-small .@{prefix}-ico {
|
||||
font-family: 'tinymce-small', Arial;
|
||||
}
|
||||
|
||||
.@{prefix}-i-save:before { content: "\e000"; }
|
||||
.@{prefix}-i-newdocument:before { content: "\e001"; }
|
||||
.@{prefix}-i-fullpage:before { content: "\e002"; }
|
||||
.@{prefix}-i-alignleft:before { content: "\e003"; }
|
||||
.@{prefix}-i-aligncenter:before { content: "\e004"; }
|
||||
.@{prefix}-i-alignright:before { content: "\e005"; }
|
||||
.@{prefix}-i-alignjustify:before { content: "\e006"; }
|
||||
.@{prefix}-i-alignnone:before { content: "\e003"; }
|
||||
.@{prefix}-i-cut:before { content: "\e007"; }
|
||||
.@{prefix}-i-paste:before { content: "\e008"; }
|
||||
.@{prefix}-i-searchreplace:before { content: "\e009"; }
|
||||
.@{prefix}-i-bullist:before { content: "\e00a"; }
|
||||
.@{prefix}-i-numlist:before { content: "\e00b"; }
|
||||
.@{prefix}-i-indent:before { content: "\e00c"; }
|
||||
.@{prefix}-i-outdent:before { content: "\e00d"; }
|
||||
.@{prefix}-i-blockquote:before { content: "\e00e"; }
|
||||
.@{prefix}-i-undo:before { content: "\e00f"; }
|
||||
.@{prefix}-i-redo:before { content: "\e010"; }
|
||||
.@{prefix}-i-link:before { content: "\e011"; }
|
||||
.@{prefix}-i-unlink:before { content: "\e012"; }
|
||||
.@{prefix}-i-anchor:before { content: "\e013"; }
|
||||
.@{prefix}-i-image:before { content: "\e014"; }
|
||||
.@{prefix}-i-media:before { content: "\e015"; }
|
||||
.@{prefix}-i-help:before { content: "\e016"; }
|
||||
.@{prefix}-i-code:before { content: "\e017"; }
|
||||
.@{prefix}-i-insertdatetime:before { content: "\e018"; }
|
||||
.@{prefix}-i-preview:before { content: "\e019"; }
|
||||
.@{prefix}-i-forecolor:before { content: "\e01a"; }
|
||||
.@{prefix}-i-backcolor:before { content: "\e01a"; }
|
||||
.@{prefix}-i-table:before { content: "\e01b"; }
|
||||
.@{prefix}-i-hr:before { content: "\e01c"; }
|
||||
.@{prefix}-i-removeformat:before { content: "\e01d"; }
|
||||
.@{prefix}-i-subscript:before { content: "\e01e"; }
|
||||
.@{prefix}-i-superscript:before { content: "\e01f"; }
|
||||
.@{prefix}-i-charmap:before { content: "\e020"; }
|
||||
.@{prefix}-i-emoticons:before { content: "\e021"; }
|
||||
.@{prefix}-i-print:before { content: "\e022"; }
|
||||
.@{prefix}-i-fullscreen:before { content: "\e023"; }
|
||||
.@{prefix}-i-spellchecker:before { content: "\e024"; }
|
||||
.@{prefix}-i-nonbreaking:before { content: "\e025"; }
|
||||
.@{prefix}-i-template:before { content: "\e026"; }
|
||||
.@{prefix}-i-pagebreak:before { content: "\e027"; }
|
||||
.@{prefix}-i-restoredraft:before { content: "\e028"; }
|
||||
.@{prefix}-i-bold:before { content: "\e02a"; }
|
||||
.@{prefix}-i-italic:before { content: "\e02b"; }
|
||||
.@{prefix}-i-underline:before { content: "\e02c"; }
|
||||
.@{prefix}-i-strikethrough:before { content: "\e02d"; }
|
||||
.@{prefix}-i-visualchars:before { content: "\e02e"; }
|
||||
.@{prefix}-i-visualblocks:before { content: "\e02e"; }
|
||||
.@{prefix}-i-ltr:before { content: "\e02f"; }
|
||||
.@{prefix}-i-rtl:before { content: "\e030"; }
|
||||
.@{prefix}-i-copy:before { content: "\e031"; }
|
||||
.@{prefix}-i-resize:before { content: "\e032"; }
|
||||
.@{prefix}-i-browse:before { content: "\e034"; }
|
||||
.@{prefix}-i-pastetext:before { content: "\e035"; }
|
||||
.@{prefix}-i-rotateleft:before { content: "\eaa8"; }
|
||||
.@{prefix}-i-rotateright:before { content: "\eaa9"; }
|
||||
.@{prefix}-i-crop:before { content: "\ee78"; }
|
||||
.@{prefix}-i-editimage:before { content: "\e915"; }
|
||||
.@{prefix}-i-options:before { content: "\ec6a"; }
|
||||
.@{prefix}-i-flipv:before { content: "\eaaa"; }
|
||||
.@{prefix}-i-fliph:before { content: "\eaac"; }
|
||||
.@{prefix}-i-zoomin:before { content: "\eb35"; }
|
||||
.@{prefix}-i-zoomout:before { content: "\eb36"; }
|
||||
.@{prefix}-i-sun:before { content: "\eccc"; }
|
||||
.@{prefix}-i-moon:before { content: "\eccd"; }
|
||||
.@{prefix}-i-arrowleft:before { content: "\edc0"; }
|
||||
.@{prefix}-i-arrowright:before { content: "\e93c"; }
|
||||
.@{prefix}-i-drop:before { content: "\e935"; }
|
||||
.@{prefix}-i-contrast:before { content: "\ecd4"; }
|
||||
.@{prefix}-i-sharpen:before { content: "\eba7"; }
|
||||
.@{prefix}-i-resize2:before { content: "\edf9"; }
|
||||
.@{prefix}-i-orientation:before { content: "\e601"; }
|
||||
.@{prefix}-i-invert:before { content: "\e602"; }
|
||||
.@{prefix}-i-gamma:before { content: "\e600"; }
|
||||
.@{prefix}-i-remove:before { content: "\ed6a"; }
|
||||
.@{prefix}-i-tablerowprops:before { content: "\e604"; }
|
||||
.@{prefix}-i-tablecellprops:before { content: "\e605"; }
|
||||
.@{prefix}-i-table2:before { content: "\e606"; }
|
||||
.@{prefix}-i-tablemergecells:before { content: "\e607"; }
|
||||
.@{prefix}-i-tableinsertcolbefore:before { content: "\e608"; }
|
||||
.@{prefix}-i-tableinsertcolafter:before { content: "\e609"; }
|
||||
.@{prefix}-i-tableinsertrowbefore:before { content: "\e60a"; }
|
||||
.@{prefix}-i-tableinsertrowafter:before { content: "\e60b"; }
|
||||
.@{prefix}-i-tablesplitcells:before { content: "\e60d"; }
|
||||
.@{prefix}-i-tabledelete:before { content: "\e60e"; }
|
||||
.@{prefix}-i-tableleftheader:before { content: "\e62a"; }
|
||||
.@{prefix}-i-tabletopheader:before { content: "\e62b"; }
|
||||
.@{prefix}-i-tabledeleterow:before { content: "\e800"; }
|
||||
.@{prefix}-i-tabledeletecol:before { content: "\e801"; }
|
||||
.@{prefix}-i-codesample:before { content: "\e603"; }
|
||||
.@{prefix}-i-fill:before { content: "\e902"; }
|
||||
.@{prefix}-i-borderwidth:before { content: "\e903"; }
|
||||
.@{prefix}-i-line:before { content: "\e904"; }
|
||||
.@{prefix}-i-count:before { content: "\e905"; }
|
||||
.@{prefix}-i-translate:before { content: "\e907"; }
|
||||
.@{prefix}-i-drag:before { content: "\e908"; }
|
||||
.@{prefix}-i-home:before { content: "\e90b"; }
|
||||
.@{prefix}-i-upload:before { content: "\e914"; }
|
||||
.@{prefix}-i-bubble:before { content: "\e91c"; }
|
||||
.@{prefix}-i-user:before { content: "\e91d"; }
|
||||
.@{prefix}-i-lock:before { content: "\e926"; }
|
||||
.@{prefix}-i-unlock:before { content: "\e927"; }
|
||||
.@{prefix}-i-settings:before { content: "\e928"; }
|
||||
.@{prefix}-i-remove2:before { content: "\e92a"; }
|
||||
.@{prefix}-i-menu:before { content: "\e92d"; }
|
||||
.@{prefix}-i-warning:before { content: "\e930"; }
|
||||
.@{prefix}-i-question:before { content: "\e931"; }
|
||||
.@{prefix}-i-pluscircle:before { content: "\e932"; }
|
||||
.@{prefix}-i-info:before { content: "\e933"; }
|
||||
.@{prefix}-i-notice:before { content: "\e934"; }
|
||||
.@{prefix}-i-arrowup:before { content: "\e93b"; }
|
||||
.@{prefix}-i-arrowdown:before { content: "\e93d"; }
|
||||
.@{prefix}-i-arrowup2:before { content: "\e93f"; }
|
||||
.@{prefix}-i-arrowdown2:before { content: "\e940"; }
|
||||
.@{prefix}-i-menu2:before { content: "\e941"; }
|
||||
.@{prefix}-i-newtab:before { content: "\e961"; }
|
||||
.@{prefix}-i-a11y:before { content: "\e900"; }
|
||||
.@{prefix}-i-plus:before { content: "\e93a"; }
|
||||
.@{prefix}-i-insert:before { content: "\e93a"; }
|
||||
.@{prefix}-i-minus:before { content: "\e939"; }
|
||||
.@{prefix}-i-books:before { content: "\e911"; }
|
||||
.@{prefix}-i-reload:before { content: "\e906"; }
|
||||
.@{prefix}-i-toc:before { content: "\e901"; }
|
||||
.@{prefix}-i-checkmark:before { content: "\e033"; }
|
||||
.@{prefix}-i-checkbox:before, .@{prefix}-i-selected:before {
|
||||
content: "\e033";
|
||||
}
|
||||
|
||||
.@{prefix}-i-insert { font-size: 14px; }
|
||||
.@{prefix}-i-selected { visibility: hidden; }
|
||||
i.@{prefix}-i-backcolor { text-shadow: none; background: @colorbtn-backcolor-bg; }
|
6
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/Iframe.less
Executable file
@@ -0,0 +1,6 @@
|
||||
// Iframe
|
||||
|
||||
.@{prefix}-iframe {
|
||||
border: 0 solid @iframe-border;
|
||||
width: 100%; height: 100%;
|
||||
}
|
25
app/src/main/assets/RichTextEditor/tinymce/skins/lightgray/ImagePanel.less
Executable file
@@ -0,0 +1,25 @@
|
||||
// ImagePanel
|
||||
|
||||
.@{prefix}-imagepanel {
|
||||
overflow: auto;
|
||||
background: black;
|
||||
}
|
||||
|
||||
.@{prefix}-imagepanel-bg {
|
||||
position: absolute;
|
||||
background: url('data:image/gif;base64,R0lGODdhDAAMAIABAMzMzP///ywAAAAADAAMAAACFoQfqYeabNyDMkBQb81Uat85nxguUAEAOw==');
|
||||
}
|
||||
|
||||
.@{prefix}-imagepanel img {
|
||||
position: absolute;
|
||||
}
|
||||
|
||||
.@{prefix}-imagetool.@{prefix}-btn .@{prefix}-ico {
|
||||
display: block;
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
text-align: center;
|
||||
line-height: 20px;
|
||||
font-size: 20px;
|
||||
padding: 5px;
|
||||
}
|