[Yanel-dev] [Bug 6981] New: share code between JS-based editor
resources (e.g. TinyMCE and Xinha)
bugzilla at wyona.com
bugzilla at wyona.com
Tue Feb 10 13:12:39 CET 2009
http://bugzilla.wyona.com/cgi-bin/bugzilla/show_bug.cgi?id=6981
Summary: share code between JS-based editor resources (e.g.
TinyMCE and Xinha)
Product: Yanel
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: Design
AssignedTo: simon.litwan at wyona.org
ReportedBy: guillaume.deflache at wyona.com
QAContact: yanel-development at wyona.com
As discussed with Simon, there are almost no differences, editor configuration
only happens in Jelly scripts:
diff -u
src/contributions/resources/xinha/src/java/org/wyona/yanel/impl/resources/xinha/XinhaResource.java
src/resources/tinymce/src/java/org/wyona/yanel/impl/resources/tinymce/TinyMCEResource.java
---
src/contributions/resources/xinha/src/java/org/wyona/yanel/impl/resources/xinha/XinhaResource.java
2009-02-10 13:04:58.000000000 +0100
+++
src/resources/tinymce/src/java/org/wyona/yanel/impl/resources/tinymce/TinyMCEResource.java
2009-02-10 13:04:37.000000000 +0100
@@ -1,8 +1,8 @@
/*
- * Copyright 2009 Wyona
+ * Copyright 2007,2008,2009 Wyona
*/
-package org.wyona.yanel.impl.resources.xinha;
+package org.wyona.yanel.impl.resources.tinymce;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
@@ -51,9 +51,9 @@
/**
*
*/
-public class XinhaResource extends ExecutableUsecaseResource {
+public class TinyMCEResource extends ExecutableUsecaseResource {
- private static Logger log = Logger.getLogger(XinhaResource.class);
+ private static Logger log = Logger.getLogger(TinyMCEResource.class);
private static final String PARAMETER_EDIT_PATH = "edit-path";
private static final String PARAMETER_CONTINUE_PATH = "continue-path";
@@ -193,7 +193,7 @@
try {
View view = ((ViewableV2)resToEdit).getView(DEFAULT_VIEW_ID);
if (!view.getMimeType().contains("html")) {
- addError("Mime-Type not supported: " + view.getMimeType()
+ ". Only edit html documents with xinha. ");
+ addError("Mime-Type not supported: " + view.getMimeType()
+ ". Only edit html documents with tinyMCE. ");
return false;
}
} catch (Exception e) {
@@ -222,7 +222,7 @@
if (isResToEditVersionableV2()) {
VersionableV2 versionable = (VersionableV2)resToEdit;
try {
- versionable.checkin("Updated with Xinha");
+ versionable.checkin("Updated with tinyMCE");
addInfoMessage("Succesfully checked in resource "
+ resToEdit.getPath() + ". ");
} catch (Exception e) {
String msg = "Could not check in resource: " +
resToEdit.getPath() + " " + e.getMessage() + ". ";
@@ -271,7 +271,7 @@
/**
* Get the content proposed to edit
- * used by xinha.jelly
+ * used by tinyMCE.jelly
* @return String
*/
public String getContentToEdit() {
--
Configure bugmail: http://bugzilla.wyona.com/cgi-bin/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Yanel-development
mailing list