cor3000 / aceditor-zk

Ace Editor for ZK 8

Home Page:http://www.dynamia.tools

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Maven Central

ACE Editor for ZK

This library let you use Ace Editor (https://ace.c9.io/) in ZK application using pure Java or ZUL.

Bulding

This is a regular maven project, download and build it using the following command:

mvn clean install

Installation

Just add aceditor-zk-xx.jar to your project dependencies:

Maven

<dependency>
    <groupId>tools.dynamia.zk.addons</groupId>
    <artifactId>aceditor-zk</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

compile "tools.dynamia.zk.addons:aceditor-zk:1.0.0"

Usage

From zul

 <aceditor mode="java" width="700px" height="400px" theme="ambiance">
    <attribute name="value">
        Aceditor ace = new Aceditor();
        ace.setTheme("ambiance");
        ace.setWidth("500px");
        ace.setHeight("400px");
        ace.setMode("html");
    </attribute>
 </aceditor>

Aceditor support ZK MVVM databinding and commands

From Java

Aceditor ace = new Aceditor();
ace.setTheme("ambiance");
ace.setWidth("500px");
ace.setHeight("400px");
ace.setMode("html");
ace.setValue("<h1>Hello ZK</h1>");

License

Aceditor-ZK is available under the Apache 2 License.

Want contribute?

Please read Contributing Guidelines

About

Ace Editor for ZK 8

http://www.dynamia.tools

License:Other


Languages

Language:JavaScript 93.7%Language:Java 6.3%