Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
git-svn-id: http://svn.foswiki.org/trunk@4363 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
- Loading branch information
MichaelDaum
authored and
MichaelDaum
committed
Jul 2, 2009
1 parent
e534311
commit 0811725
Showing
54 changed files
with
1,694 additions
and
870 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
Foswiki::Plugins::JQueryPlugin,>=1.00,perl,Required. | ||
Foswiki::Plugins::SetVariablePlugin,>=1.00,perl,Required. | ||
Foswiki::Plugins::UploadPlugin,>=1.00,perl,Required. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
data/System/NatEditHelpText.txt 0644 | ||
data/System/NatEditPluginJSUnitTests.txt 0644 | ||
data/System/NatEditPlugin.txt 0644 | ||
data/System/NatEditWordHelpText.txt 0644 | ||
lib/Foswiki/Plugins/NatEditPlugin/NATEDIT.pm 0644 | ||
lib/Foswiki/Plugins/NatEditPlugin.pm 0644 | ||
pub/System/NatEditPlugin/default/btn_cyan_left.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_cyan_right.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_green_left.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_green_right.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_left.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_red_left.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_red_right.gif 0644 | ||
pub/System/NatEditPlugin/default/btn_right.gif 0644 | ||
pub/System/NatEditPlugin/default/buttons_sprite.gif 0644 | ||
pub/System/NatEditPlugin/default/buttons_sprite.png 0644 | ||
pub/System/NatEditPlugin/default/Makefile 0644 | ||
pub/System/NatEditPlugin/default/styles.css 0644 | ||
pub/System/NatEditPlugin/default/styles.css.gz 0644 | ||
pub/System/NatEditPlugin/edit.js 0644 | ||
pub/System/NatEditPlugin/edit.js.gz 0644 | ||
pub/System/NatEditPlugin/edit.uncompressed.js 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.insertattachment.js 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.insertattachment.js.gz 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.insertlink.js 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.insertlink.js.gz 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.inserttable.js 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.inserttable.js.gz 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.js 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.js.gz 0644 | ||
pub/System/NatEditPlugin/jquery.natedit.uncompressed.js 0644 | ||
pub/System/NatEditPlugin/Makefile 0644 | ||
pub/System/NatEditPlugin/screenshot1.png 0644 | ||
pub/System/NatEditPlugin/styles.css 0644 | ||
pub/System/NatEditPlugin/styles.css.gz 0644 | ||
pub/System/NatEditPlugin/styles.uncompressed.css 0644 | ||
pub/System/NatEditPlugin/wikiringlogo40x40.png 0644 | ||
templates/addform.natedit.tmpl 0644 | ||
templates/editdialog.natedit.tmpl 0644 | ||
templates/editform.natedit.tmpl 0644 | ||
templates/edithelp.natedit.tmpl 0644 | ||
templates/editjavascript.natedit.tmpl 0644 | ||
templates/edit.natedit.tmpl 0644 | ||
templates/editsection.natedit.tmpl 0644 | ||
templates/edittext.natedit.tmpl 0644 | ||
templates/edittoolbar.natedit.tmpl 0644 | ||
templates/edittoolbar.word.natedit.tmpl 0644 | ||
templates/form.natedit.tmpl 0644 | ||
templates/preview.natedit.tmpl 0644 | ||
templates/previewtoolbar.natedit.tmpl 0644 | ||
templates/settings.natedit.tmpl 0644 | ||
templates/settingstoolbar.natedit.tmpl 0644 |
81 changes: 81 additions & 0 deletions
81
NatEditPlugin/lib/Foswiki/Plugins/NatEditPlugin/NATEDIT.pm
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# Plugin for Foswiki - The Free and Open Source Wiki, http://foswiki.org/ | ||
# | ||
# Copyright (C) 2006-2009 Michael Daum, http://michaeldaumconsulting.com | ||
# | ||
# This program is free software; you can redistribute it and/or | ||
# modify it under the terms of the GNU General Public License | ||
# as published by the Free Software Foundation; either version 2 | ||
# of the License, or (at your option) any later version. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details, published at | ||
# http://www.gnu.org/copyleft/gpl.html | ||
|
||
package Foswiki::Plugins::NatEditPlugin::NATEDIT; | ||
use strict; | ||
|
||
use base 'Foswiki::Plugins::JQueryPlugin::Plugin'; | ||
|
||
=begin TML | ||
---+ package Foswiki::Plugins::NatEditPlugin::NATEDIT | ||
This is the perl stub for the jquery.natedit plugin. | ||
=cut | ||
|
||
=begin TML | ||
---++ ClassMethod new( $class, $session, ... ) | ||
Constructor | ||
=cut | ||
|
||
sub new { | ||
my $class = shift; | ||
my $session = shift || $Foswiki::Plugins::SESSION; | ||
|
||
my $this = bless($class->SUPER::new( | ||
$session, | ||
name => 'NatEdit', | ||
version => '1.0', | ||
author => 'Michael Daum', | ||
homepage => 'http://foswiki.org/Extensions/NatEditPlugin', | ||
puburl => '%PUBURLPATH%/%SYSTEMWEB%/NatEditPlugin', | ||
css => ['styles.css'], | ||
javascript => ['edit.js', 'jquery.natedit.js'], | ||
dependencies => ['simplemodal', 'textboxlist', 'form'], | ||
), $class); | ||
|
||
$this->{summary} = <<'HERE'; | ||
HERE | ||
|
||
return $this; | ||
} | ||
|
||
=begin TML | ||
---++ ClassMethod init( $this ) | ||
Initialize this plugin by adding the required static files to the html header | ||
=cut | ||
|
||
sub init { | ||
my $this = shift; | ||
|
||
return unless $this->SUPER::init(); | ||
|
||
Foswiki::Func::addToHEAD("JQUERYPLUGIN::NATEDIT::THEME", <<'HERE', 'JQUERYPLUGIN::NATEDIT'); | ||
<style type="text/css" media="all"> | ||
@import url("%PUBURLPATH%/%SYSTEMWEB%/NatEditPlugin/styles.css"); | ||
@import url("%PUBURLPATH%/%SYSTEMWEB%/NatEditPlugin/%IF{"defined NATEDIT_THEME" then="%NATEDIT_THEME%" else="default"}%/styles.css"); | ||
</style> | ||
HERE | ||
|
||
} | ||
|
||
1; |
File renamed without changes.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.