Skip to content
Browse files

Updating files per rename of module and repo

  • Loading branch information...
1 parent 59f94d8 commit 6e7bff79b96bc92130c552bdbd324893168ac0a9 Jason Straughan committed Feb 2, 2011
View
4 classes/controller/jqueryrte.php → classes/controller/lwrte.php
@@ -5,7 +5,7 @@
*
* Based on the jqueryrte upload.php file by Andrey Gayvoronsky - http://www.gayvoronsky.com
*/
-class Controller_jQueryRTE extends Controller {
+class Controller_LWRTE extends Controller {
/**
* Handles XHR POST request for file upload from RTE
@@ -15,7 +15,7 @@ class Controller_jQueryRTE extends Controller {
public function action_upload()
{
- $config = Kohana_Config::instance()->load('jqueryrte');
+ $config = Kohana_Config::instance()->load('lwrte');
$upload_dir = $config['upload']['directory'];
View
4 classes/kohana/jqueryrte.php → classes/kohana/lwrte.php
@@ -3,7 +3,7 @@
/**
* Helper methods to setup jQueryRTE with default scripts and styles
*/
-class Kohana_jQueryRTE {
+class Kohana_LWRTE {
/**
* Gets an array from Kohan_Config
@@ -12,7 +12,7 @@ class Kohana_jQueryRTE {
*/
protected static function _get_config($type)
{
- $config = Kohana_Config::instance()->load('jqueryrte');
+ $config = Kohana_Config::instance()->load('lwrte');
return $config[$type];
}
View
2 classes/jqueryrte.php → classes/lwrte.php
@@ -1,3 +1,3 @@
<?php defined('SYSPATH') or die('No direct script access.');
-class jQueryRTE extends Kohana_jQueryRTE {}
+class LWRTE extends Kohana_LWRTE {}
View
8 config/jqueryrte.php → config/lwrte.php
@@ -5,11 +5,11 @@
'directory' => '/uploads'
),
'scripts' => array(
- 'jqueryrte/media/jquery.rte.js',
- 'jqueryrte/media/jquery.rte.ocupload.js',
- 'jqueryrte/media/jquery.rte.tb.js'
+ 'lwrte/media/jquery.rte.js',
+ 'lwrte/media/jquery.rte.ocupload.js',
+ 'lwrte/media/jquery.rte.tb.js'
),
'styles' => array(
- 'jqueryrte/media/jquery.rte.css'
+ 'lwrte/media/jquery.rte.css'
)
);
View
8 init.php
@@ -2,15 +2,15 @@
$modules = Kohana::modules();
-Route::set('jqueryrte-media', 'jqueryrte/media(/<file>)', array('file' => '.+'))
+Route::set('lwrte-media', 'lwrte/media(/<file>)', array('file' => '.+'))
->defaults(array(
- 'controller' => 'jqueryrte',
+ 'controller' => 'lwrte',
'action' => 'media',
'file' => NULL,
));
-Route::set('jqueryrte-upload','jqueryrte/upload')
+Route::set('lwrte-upload','lwrte/upload')
->defaults(array(
- 'controller' => 'jqueryrte',
+ 'controller' => 'lwrte',
'action' => 'upload'
));
View
17 readme.md
@@ -1,14 +1,13 @@
##What
-A simple wrapper for Lightweight Rich Text Editor (RTE / WYSIWYG) for jQuery
-
-<http://code.google.com/p/lwrte/>
+A simple wrapper for the Lightweight Rich Text Editor for jQuery <http://code.google.com/p/lwrte/>
##Why
Keeping the javascript, helper methods, and config in a module makes it easy.
##How
1. Add to bootstrap
2. Override config file and update with your upload directory
+ 3. Set your site root in the /media/jquery.rte.tb.js file (have not forked js project to fix)
###Optional
@@ -17,8 +16,8 @@ Use the helpers to create your scripts/styles in your document's head:
This:
- <?= jQueryRTE::get_scripts_html(); ?>
- <?= jQueryRTE::get_styles_html(); ?>
+ <?= LWRTE::get_scripts_html(); ?>
+ <?= LWRTE::get_styles_html(); ?>
<script type="text/javascript">
$(function() {
@@ -31,10 +30,10 @@ This:
Will produce this:
- <script type="text/javascript" src="http://localhost/yoursite/jqueryrte/media/jquery.rte.js"></script>
- <script type="text/javascript" src="http://localhost/yoursite/jqueryrte/media/jquery.rte.ocupload.js"></script>
- <script type="text/javascript" src="http://localhost/yoursite/jqueryrte/media/jquery.rte.tb.js"></script>
- <link type="text/css" href="http://localhost/yoursite/jqueryrte/media/jquery.rte.css" rel="stylesheet" />
+ <script type="text/javascript" src="http://localhost/yoursite/lwrte/media/jquery.rte.js"></script>
+ <script type="text/javascript" src="http://localhost/yoursite/lwrte/media/jquery.rte.ocupload.js"></script>
+ <script type="text/javascript" src="http://localhost/yoursite/lwrte/media/jquery.rte.tb.js"></script>
+ <link type="text/css" href="http://localhost/yoursite/lwrte/media/jquery.rte.css" rel="stylesheet" />
<script type="text/javascript">
$(function() {
var arr = $('.wysiwyg').rte({

0 comments on commit 6e7bff7

Please sign in to comment.
Something went wrong with that request. Please try again.