All Projects → bxute → MarkDEditor

bxute / MarkDEditor

Licence: other
A WYSIWYG MarkDown editor for Android.

Programming Languages

java
68154 projects - #9 most used programming language

Projects that are alternatives of or similar to MarkDEditor

Awesome Web Editor
🔨 Open source WEB editor summary
Stars: ✭ 306 (+302.63%)
Mutual labels:  markdown-editor, wysiwyg
mead
Mead - Dead simple markdown editor for Windows, Linux and Mac
Stars: ✭ 20 (-73.68%)
Mutual labels:  markdown-editor, wysiwyg
Hypermd
A WYSIWYG Markdown Editor for browsers. Break the Wall between writing and previewing.
Stars: ✭ 1,258 (+1555.26%)
Mutual labels:  markdown-editor, wysiwyg
fluence
WYSIWYG wiki powered by Crystal, markdown, and Git
Stars: ✭ 44 (-42.11%)
Mutual labels:  markdown-editor, wysiwyg
Django Markdown Editor
Awesome Django Markdown Editor, supported for Bootstrap & Semantic-UI
Stars: ✭ 423 (+456.58%)
Mutual labels:  markdown-editor, wysiwyg
typora-hivacruz-theme
A Typora theme forked from Cobalt to match my other color schemes.
Stars: ✭ 38 (-50%)
Mutual labels:  markdown-editor, wysiwyg
vscode-markdown-editor
A vscode extension to make your vscode become a full-featured WYSIWYG markdown editor
Stars: ✭ 249 (+227.63%)
Mutual labels:  markdown-editor, wysiwyg
eMarkDown
✨ Markdown Desktop App with Cloud Sync. MarkDown云笔记软件
Stars: ✭ 25 (-67.11%)
Mutual labels:  markdown-editor
am-editor
A rich text collaborative editor framework that can use React and Vue custom plug-ins. 一个富文本实时协同编辑器框架,可以使用React和Vue自定义插件。
Stars: ✭ 542 (+613.16%)
Mutual labels:  wysiwyg
SkeletonPlaceholderView
A library for creating dynamic skeleton view
Stars: ✭ 25 (-67.11%)
Mutual labels:  custom-view
cnblogs-mdEditor
一个chrome插件,为了改善博客园markdown编辑器
Stars: ✭ 33 (-56.58%)
Mutual labels:  markdown-editor
Seen
A lightweight crawling/spider framework for everyone(support JavaScript!).✨
Stars: ✭ 13 (-82.89%)
Mutual labels:  easy-to-use
Benzaiboten-spot-trading-bot
A trading bot easy to use to be linked to your favorite exchange to automatize the trading on cryptocurrencies
Stars: ✭ 20 (-73.68%)
Mutual labels:  easy-to-use
flasto
A FLoating ASsistive TOuch library for android!
Stars: ✭ 15 (-80.26%)
Mutual labels:  custom-view
octo
Build your knowledge base
Stars: ✭ 252 (+231.58%)
Mutual labels:  markdown-editor
summernote-templates
Summernote Toolbar Buttons to Add Page and Block Templates.
Stars: ✭ 21 (-72.37%)
Mutual labels:  wysiwyg
SoundLine
An Android custom view which offers an audio timeline controller as the SoundCloud Sound Wave
Stars: ✭ 53 (-30.26%)
Mutual labels:  custom-view
tui editor
Implementiert den TOASTUI Markdown Editor
Stars: ✭ 21 (-72.37%)
Mutual labels:  wysiwyg
MenuPopupView
一款仿iOS长按菜单弹窗的自定义控件
Stars: ✭ 26 (-65.79%)
Mutual labels:  custom-view
v-markdown-editor
Vue.js Markdown Editor component
Stars: ✭ 101 (+32.89%)
Mutual labels:  markdown-editor

MarkDEditor

A Markdown Editor For Android.

Your editor will look something like:

Supported Styles

  • Normal Text
  • H1, H2, H3, H4, H5
  • UL (Unordered List)
  • OL (Ordered List)
  • Blockquote
  • Links
  • Horizontal rulers
  • Images.

How to use it ?

Step 1. Add the JitPack repository to your build file

allprojects {
  repositories {
    maven { url 'https://jitpack.io' }
  }
}

Step 2. Add the dependency

dependencies {
  implementation 'com.github.bxute:MarkDEditor:v0.16'
}

Step 3. Add XML declaration

<ScrollView
  android:background="#ffffff"
  android:layout_above="@+id/controlBar"
  android:layout_width="match_parent"
  android:layout_height="match_parent">

 <xute.markdeditor.MarkDEditor
  android:id="@+id/mdEditor"
  android:layout_width="match_parent"
  android:layout_height="match_parent" />

</ScrollView>

<xute.markdeditor.EditorControlBar
  android:id="@+id/controlBar"
  android:layout_alignParentBottom="true"
  android:layout_width="match_parent"
  android:layout_height="48dp" />

Step 4. In Activity file

MarkDEditor markDEditor = findViewById(R.id.mdEditor);
editorControlBar = findViewById(R.id.controlBar);
editorControlBar.setEditorControlListener(this);
markDEditor.configureEditor(
     "",//server url for image upload
     "",              //serverToken
     true,           // isDraft: set true when you are loading draft
     "Type here...", //default hint of input box
     NORMAL
    );
//load draft
//markDEditor.loadDraft(getDraftContent());
editorControlBar.setEditor(markDEditor);

Step 5. Implement Callback methods

@Override
  public void onInsertImageClicked() {
    //openGallery();
  }

  @Override
  public void onInserLinkClicked() {
    //markDEditor.addLink("Click Here", "http://www.hapramp.com");
    
  }

Inserting Image

markDEditor.insertImage(filePath);

Inserting Link

 markDEditor.addLink("Click Here", "http://www.hapramp.com");

Note: You can add take input for link using a DialogFragment.

Getting Markdown from Editor

String md = markDEditor.getMarkdownContent();

Getting List of Images

List<String> images = markDEditor.getImageList();

Contributions

Any contributions are welcome. You can send PR or open issues.

License

MIT License

Copyright (c) 2018 Hapramp Studio Pvt. Ltd.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].