Skip to content

Commit dd66e62

Browse files
AlexAlex
authored andcommitted
Updated common editor files and imported editor HTML file from iOS
1 parent efa02b7 commit dd66e62

File tree

11 files changed

+1574
-12
lines changed

11 files changed

+1574
-12
lines changed

example/src/main/AndroidManifest.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@
99
android:theme="@style/AppTheme" >
1010
<activity
1111
android:name=".MainExampleActivity"
12-
android:label="@string/title_activity_example" >
12+
android:label="@string/title_activity_example"
13+
android:exported="true">
1314
</activity>
1415
<activity
1516
android:name=".EditorExampleActivity" >
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<title>ZSSRichTextEditor</title>
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
6+
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
7+
<script type="text/javascript" src="underscore-min.js"></script>
8+
<script type="text/javascript" src="shortcode.js"></script>
9+
<script type="text/javascript" src="jquery.mobile-events.min.js"></script>
10+
<script type="text/javascript" src="ZSSRichTextEditor.js"></script>
11+
<script type="text/javascript">
12+
$(document).ready(function() {
13+
ZSSEditor.init();
14+
ZSSEditor.domLoadedCallback();
15+
console.log("ZSSEditor initialized");
16+
});
17+
</script>
18+
</head>
19+
<body>
20+
<div contenteditable="false" id="zss_field_title" class="field" nostyle>
21+
</div>
22+
<div contenteditable="false" id="separatorDiv" >
23+
<hr/>
24+
</div>
25+
<div contenteditable="false" id="zss_field_content" class="field">
26+
</div>
27+
</body>
28+
</html>

libs/editor-common/assets/android-editor.html

100644100755
Lines changed: 1102 additions & 11 deletions
Large diffs are not rendered by default.
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
<p>
2+
I'm a test post.
3+
4+
<strong>Bold text</strong>
5+
6+
<em>Italic text</em>
7+
8+
<a href="http://www.wordpress.com">I'm a link!</a>
9+
10+
<!--more-->
11+
12+
<del datetime="2014-05-19T20:55:58+00:00">Strikethrough</del>
13+
14+
Moar Text.
15+
</p>
16+
<p>
17+
Code:
18+
<code>
19+
10 PRINT "HOWDY WORLD"
20+
20 GOTO 10
21+
</code>
22+
</p>
23+
<p>
24+
Unordered List:
25+
<ul>
26+
<li>One</li>
27+
<li>Two</li>
28+
<li>Three</li>
29+
</ul>
30+
</p>
31+
<p>
32+
Ordered List:
33+
<ol>
34+
<li>One</li>
35+
<li>Two</li>
36+
<li>Three</li>
37+
</ol>
38+
</p>
39+
<p>
40+
Master cleanse Intelligentsia butcher Brooklyn Tumblr. Etsy lo-fi Marfa bicycle rights. Intelligentsia Helvetica fanny pack, normcore Odd Future fixie brunch mustache aesthetic kitsch artisan cardigan mlkshk. Pour-over hashtag selfies pug Tumblr mlkshk. Food truck small batch McSweeney's trust fund, Intelligentsia bitters Brooklyn twee meh authentic. Normcore distillery American Apparel single-origin coffee artisan try-hard, stumptown XOXO tote bag fanny pack Blue Bottle Shoreditch food truck Banksy. Church-key American Apparel Blue Bottle, swag try-hard Odd Future mustache chia iPhone.
41+
</p>
42+
<p>
43+
Block Quote:
44+
<blockquote>Kale chips Schlitz forage irony, kogi Tumblr Carles chillwave Etsy pug photo booth YOLO biodiesel tote bag actually. PBR Portland yr pickled, bespoke meggings selvage letterpress kitsch plaid before they sold out put a bird on it you probably haven't heard of them. Yr master cleanse slow-carb crucifix, sustainable keytar Helvetica Tumblr High Life mumblecore narwhal cornhole deep v craft beer. Portland forage hashtag locavore, before they sold out put a bird on it irony hella. Godard kale chips street art tote bag cardigan. Church-key next level seitan keytar meggings Portland. Keffiyeh flexitarian post-ironic drinking vinegar wayfarers.</blockquote>
45+
</p>
46+
<p>
47+
Image:<br/><br/>
48+
49+
<img src="http://cdn.buzznet.com/assets/users16/yasfx/default/crazy-cat-fashions-sheriff-style--large-msg-128933191905.jpg" alt="Cowboy Cat" />
50+
</p>
51+
<p>
52+
Fanny pack Odd Future Intelligentsia lo-fi semiotics whatever. Selvage keffiyeh mustache sustainable ethnic, chambray mumblecore McSweeney's biodiesel Pitchfork four loko disrupt post-ironic art party American Apparel. Kitsch umami beard salvia, Vice before they sold out vegan tousled lomo jean shorts pickled PBR&amp;B. Tousled Wes Anderson Shoreditch flannel, 90's XOXO quinoa whatever mumblecore cliche Truffaut stumptown. Photo booth crucifix plaid Brooklyn. Authentic letterpress PBR&amp;B, sustainable VHS master cleanse ethnic High Life. Messenger bag umami pug flannel.
53+
</p>

libs/editor-common/assets/jquery.mobile-events.min.js

100644100755
File mode changed.

libs/editor-common/assets/rangy-core.js

Lines changed: 94 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/editor-common/assets/rangy-cssclassapplier.js

Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

libs/editor-common/assets/rangy-selectionsaverestore.js

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)