Coder Social home page Coder Social logo

iridia / wyzihatkit Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wireload/wktextview

1.0 1.0 0.0 4.95 MB

A Cappuccino control providing a rich text editing view through use of WysiHat.

Home Page: http://wireload.net/open-source/wyzihatkit/

License: MIT License

Objective-J 89.75% Shell 0.54% JavaScript 9.71%

wyzihatkit's Introduction

WyzihatKit

A Cappuccino control providing rich text editing through use of the Google Closure Library editor. In a previous version the Wysihat editor was used, hence the framework name.

This is mostly a hack for use until a proper rich-text-capable CPTextView is introduced.

Installation

Link the WyzihatKit folder into your Frameworks folder.

Create and combine the Resources/WKTextView/closure-editor.js file using the WyzihatKit modified version of the Closure editor:

git submodule init
git submodule update
cd auxiliary
# Edit build.sh to provide the correct path to closure.jar.
sh build.sh

Usage

textView = [[WKTextView alloc] initWithFrame:effectiveFrame];
[textView setAutoresizingMask:CPViewWidthSizable | CPViewHeightSizable];
[textView setDelegate:self];

The view needs to load resources such as editor.html and closure-editor.js. Wait for the textViewDidLoad: delegate call before using.

Sample

A sample program is provided in the sample folder. You can view it online or compile it yourself. To compile, install Frameworks and wysihat.js:

cd sample
capp gen -f -l --force # Installs Cappuccino frameworks.
cd Frameworks
ln -s ../../ WyzihatKit

Then open up index-debug.html in a browser.

License

WysihatKit is released under the Apache License 2.0. The sample incorporates Creative Commons icons from FamFamFam.

Authors

  • Alexander Ljungberg, WireLoad LLC
  • Evadne Wu
  • Klaas Pieter Annema
  • Paul Baumgart
  • xanados

Thanks to

  • Harry Vangberg

wyzihatkit's People

Contributors

aljungberg avatar paulbaumgart avatar klaaspieter avatar

Watchers

James Cloos avatar

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.