Giter Site home page Giter Site logo

zk-codemirror's Introduction

===========================

Build Status License: GPL v3

Jease eases the development of content- & database-driven web-applications with Java.

New branch of Jesae with Relational Database released with name JeasePlus

Home Page

Demo

Demo Admin panel

Getting Started

1) Prerequisites

  • Download and install a recent Java SE Development Kit (Java SE JDK) or OpenJDK. Please note: You'll need a full Java Development Kit (JDK), a simple Java Runtime Environment (JRE) won't work.
  • Check your environment-variables: JAVA_HOME needs to point to the root-directory of your JDK.

2) Install

3) Start

  • Linux: Open a terminal and enter:
    jease/bin/catalina.sh run
  • Windows: Navigate to "jease -> bin" and double-click:
    startup (= startup.bat)

4) Setup

  • Open your browser and call:
    http://localhost:8080/cms/setup
  • Choose a name, login and password for the administration account. The password must contain at minimum 8 characters with mixed case, digits and symbols.
  • Now you're redirected to the login-page. Enter the login and password for the newly created administrator.
  • Have fun...

5) Login

6) (Optional) Config Solr

For use solr in your environment please read this tutorial: https://github.com/jease/solr-core

About

Jease eases the development of content- & database-driven web-applications with Java. Out of the box Jease provides an Ajax-powered Content-Management-System (CMS) which makes use of drag & drop to organize content.

  • A relational database that holds blog posts and users.

This project is just meant to be a demonstration, therefore it is neither well documented nor well tested. Use it to learn about the technologies used, but do not use it for productive applications.

Any feedback is welcome, and I will incorporate useful pull requests.

Technologies

  • DB4O db4o or Perst or ZooDB as object-oriented persistence engines
  • Lucene Lucene as high performance indexing and search technology.
  • Bootstrap
  • ZK ZK as component- & event-driven Ajax-Web-Framework.
  • Solr Apache Solr is the popular, blazing-fast, open source enterprise search platform built on Apache Lucene™.

Running

Make sure Maven >= 2.2.1 is installed on your system. Go into the project dir and type mvn clean package, then deploy war file generated in target folder on a java webserver like tomcat and then point your browser to http://localhost:8080.

Contribution

Please Join us Jease User Group at GoogleGroup https://groups.google.com/forum/#!forum/jease

RoadMap

  • Add configuration properties file
  • Change admin UI framework from zk to jsf based ui
  • Update lucene and use solr based search (Completed #141)
  • Add Shopping service and shopping cart
  • Add Email support
  • Add seo Setting (Completed #140 )
  • Add new responsive themes (Completed #133)

Twitter

@jease18

Facebook

Jease on facebook

License

GPL 3

zk-codemirror's People

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

sffej

zk-codemirror's Issues

Code mirror disable in firefox if it in grid

Assume one grid having four columns  .if i placed a code mirror in 3rd or 4 th 
column in one row.After any event like focus on other tab than came to actual 
tab which code mirror visible .code mirror is became disable and content in 
that is not visible in firefox .if re size the browser then code mirror content 
became visible and editable .it only in fire fox and only if it is in 3rd or 
4th column of grid .

Original issue reported on code.google.com by [email protected] on 11 Apr 2012 at 4:45

Ruby Support

I am using jRuby inside ZK.
will there be Ruby support in the future?
or is there anyway I can add it ?

Original issue reported on code.google.com by [email protected] on 13 Apr 2012 at 6:45

Code mirror appending \n charecter in Mozilla

Hai 
   Take one <codemirror id='sqlQuery' >
         1) Store the intial value String oldValue=sqlQuery.getValue()
         2) Before Closing window with out entering any character in code mirror i am checking  method

 boolean isDataChaged(){
if(!StringUtils.equals(oldValue,sqlQuery.getValue()){

 return true;
}

  In Mozilla  oldValue value is="" and sqlQuery.getValue()="/n"
  so even i did not enter any character it returning true 




Original issue reported on code.google.com by [email protected] on 28 Apr 2012 at 4:35

CodeMirror breaks when Window rerenders

There's a problem when CodeMirror is embedded into a window and the window is 
rerendered (e.g. by changing the window title). Then CodeMirror just 
"disappears".

<zk>
 <window title="zk-codemirror" id="win" border="normal">
  <codemirror id="code" width="100%" height="400px">
   <attribute name="value">Some <b>test</b> data</attribute>
  </codemirror>
 </window>
 <button label="Click" onClick="win.title=self.label" />
</zk>

Original issue reported on code.google.com by [email protected] on 22 Dec 2010 at 8:16

If used with databinding the input flickers and looses focus

By referring to  
http://books.zkoss.org/wiki/ZK%20Developer's%20Reference/MVVM/Advanced/Binding%2
0Annotation%20for%20a%20Custom%20Component#Declare_Data_Binding_in_Language_Addo
n_XML I was able to enable ZK databinding for codemirror component. I was 
trying to bind a Viewmodel property with codemirror with @bind annotation. 

Test case
1. Load some default value
2. change the value of codemirror manually
3. click the "Add Text" button

Expected:
In step #2 the cursor should stay inside the codemirror editor at all times

Actual:
In step #2 after you enter few chars (dur to default delay config) an onChange 
event is fired causing the binder to reload the property in codemirror again. 
This work fine but at the end codemirror editor looses its focus

Notes:
In general databinding implementation the value from component is saved to 
ViewModel whenever there is a onChange event. However for codemirror I see 
onChange is fired for
1. everytime the value in codemirror changes i.e. for every keystroke
2. any cursor activity
because of the default config is 

//from js/codemirror/Codemirror.js _init function
var defaultConfig = {
                                path: zk.ajaxURI("/web/js/codemirror/codemirror/js/", {au : true, ignoreSession : true}),
                                stylesheet: css,
                    parserfile: syntax["js"],
                                readOnly: this._readonly,
                                content: this._value,
                                onChange: function() { wgt._processChange(); },
                                onCursorActivity: function() { wgt._processChange(); }
                };

Ideally if you follow ZK Textbox component behavior it firs onChange when user 
tabs out of the input element i.e. onBlur.
Currently this is not possible with Codemirror component as it doesn't have any 
config options to add onBlur handling.
However I saw in CodeMirror 3.x version there is a Codemirror.on() method that 
allows you to specify a callback function when ever Codemirror looses focus.

Any idea how to get around this in current Codemirror 2.x based implementation 
or any thoughts how easy it is to upgrade to CodeMirror 3.x version?

Original issue reported on code.google.com by [email protected] on 26 Apr 2013 at 4:06

Attachments:

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.