Giter Club home page Giter Club logo

gwt-codemirror's People

Contributors

pandurangpatil avatar rajgaurav avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

lxbzmy

gwt-codemirror's Issues

Add event handling which can be used from GWT code.

Add event handling which can be used from GWT code.

For more detail which events to handle refer

To add any event mechanism following steps need to be followed. One can also refer to very first commit with on focus event handling

  1. Add eventHandler interface refer OnFocusHandler
  2. add Event instance refer OnFocusEvent.
  3. Modify CodeMirror and add method to accept registration of eventHandler ( refer CodeMirror. addFocusHandler()). Add method which can be called from event handler register through JSNI.
  4. Modify Editor. fromTextArea() JSNI method and register this event through JavaScript refer. And from this JavaScript Event handler call method defined in step three for more details refer onFocus event handling.

Add modules for addons

Add GWT modules for all addons creating module for each .js init separately which will enable us to create any combination modules inside another module. For reference refer edit_closebrackets.

For more details on original documentation refer

Add GWT modules for all modes.

Prepare GWT module for all mode. inside src/main/resources package com.agnie.gwt.codemirror.mode

Create one .gwt.xml for each theme refer htmlmixed.gwt.xmll. 'htmlmixed' mode requires combination of other mode javascripts also to be loaded, which is achieved by inheriting all dependent modules. Need to add module files for all other modes.

Prepare theme GWT module for all themes

Prepare theme GWT module for all themes. inside src/main/resources package com.agnie.gwt.codemirror.theme

Create one .gwt.xml for each theme refer monokai.gwt.xml. Following is list of themes

3024-day.css
blackboard.css
mbo.css
night.css
the-matrix.css
3024-night.css
cobalt.css
mdn-like.css
paraiso-dark.css
tomorrow-night-eighties.css
ambiance-mobile.css
eclipse.css
midnight.css
paraiso-light.css
twilight.css
ambiance.css
elegant.css
monokai.css
pastel-on-dark.css
vibrant-ink.css
base16-dark.css
erlang-dark.css
neat.css
rubyblue.css
xq-dark.css
base16-light.css
lesser-dark.css
neo.css
solarized.css
xq-light.css

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.