[go: nahoru, domu]

Skip to content

Commit

Permalink
Updated common editor files and imported editor HTML file from iOS
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex authored and Alex committed Mar 24, 2015
1 parent efa02b7 commit dd66e62
Show file tree
Hide file tree
Showing 11 changed files with 1,574 additions and 12 deletions.
3 changes: 2 additions & 1 deletion example/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
android:theme="@style/AppTheme" >
<activity
android:name=".MainExampleActivity"
android:label="@string/title_activity_example" >
android:label="@string/title_activity_example"
android:exported="true">
</activity>
<activity
android:name=".EditorExampleActivity" >
Expand Down
28 changes: 28 additions & 0 deletions libs/editor-common/assets/android-editor-test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!DOCTYPE html>
<html>
<head>
<title>ZSSRichTextEditor</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0" />
<script type="text/javascript" src="jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="underscore-min.js"></script>
<script type="text/javascript" src="shortcode.js"></script>
<script type="text/javascript" src="jquery.mobile-events.min.js"></script>
<script type="text/javascript" src="ZSSRichTextEditor.js"></script>
<script type="text/javascript">
$(document).ready(function() {
ZSSEditor.init();
ZSSEditor.domLoadedCallback();
console.log("ZSSEditor initialized");
});
</script>
</head>
<body>
<div contenteditable="false" id="zss_field_title" class="field" nostyle>
</div>
<div contenteditable="false" id="separatorDiv" >
<hr/>
</div>
<div contenteditable="false" id="zss_field_content" class="field">
</div>
</body>
</html>
1,113 changes: 1,102 additions & 11 deletions libs/editor-common/assets/android-editor.html
100644 → 100755

Large diffs are not rendered by default.

53 changes: 53 additions & 0 deletions libs/editor-common/assets/example-content.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<p>
I'm a test post.

<strong>Bold text</strong>

<em>Italic text</em>

<a href="http://www.wordpress.com">I'm a link!</a>

<!--more-->

<del datetime="2014-05-19T20:55:58+00:00">Strikethrough</del>

Moar Text.
</p>
<p>
Code:
<code>
10 PRINT "HOWDY WORLD"
20 GOTO 10
</code>
</p>
<p>
Unordered List:
<ul>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ul>
</p>
<p>
Ordered List:
<ol>
<li>One</li>
<li>Two</li>
<li>Three</li>
</ol>
</p>
<p>
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.
</p>
<p>
Block Quote:
<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>
</p>
<p>
Image:<br/><br/>

<img src="http://cdn.buzznet.com/assets/users16/yasfx/default/crazy-cat-fashions-sheriff-style--large-msg-128933191905.jpg" alt="Cowboy Cat" />
</p>
<p>
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.
</p>
Empty file modified libs/editor-common/assets/jquery.mobile-events.min.js
100644 → 100755
Empty file.
94 changes: 94 additions & 0 deletions libs/editor-common/assets/rangy-core.js

Large diffs are not rendered by default.

32 changes: 32 additions & 0 deletions libs/editor-common/assets/rangy-cssclassapplier.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions libs/editor-common/assets/rangy-selectionsaverestore.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit dd66e62

Please sign in to comment.