X-Git-Url: https://git.argeo.org/?p=gpl%2Fargeo-suite.git;a=blobdiff_plain;f=publishing%2Forg.argeo.publishing.ui%2Fsrc%2Forg%2Fargeo%2Fcms%2Ftext%2FIdentityTextInterpreter.java;h=ce59ed6630f2bb3c613ffeff53574c00c79d1c9f;hp=5c019e59b6191298af58b8c499f7138b5f9d3356;hb=7b6b34f956c231ec4dc7aab0acf85c6e7b592e39;hpb=06db6a211a46ba994d007e30f62704165c413177 diff --git a/publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java b/publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java index 5c019e5..ce59ed6 100644 --- a/publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java +++ b/publishing/org.argeo.publishing.ui/src/org/argeo/cms/text/IdentityTextInterpreter.java @@ -20,8 +20,7 @@ public class IdentityTextInterpreter implements TextInterpreter, CmsNames { validateBeforeStoring(raw); node.setProperty(CMS_CONTENT, raw); } else { - throw new CmsException("Don't know how to interpret " - + node); + throw new CmsException("Don't know how to interpret " + node); } } else {// property Property property = (Property) item; @@ -33,6 +32,11 @@ public class IdentityTextInterpreter implements TextInterpreter, CmsNames { } } + @Override + public String readSimpleHtml(Item item) { + return raw(item); + } + @Override public String read(Item item) { try { @@ -58,8 +62,7 @@ public class IdentityTextInterpreter implements TextInterpreter, CmsNames { return node.getProperty(CMS_CONTENT).getString(); } else { - throw new CmsException("Don't know how to interpret " - + node); + throw new CmsException("Don't know how to interpret " + node); } } else {// property Property property = (Property) item; @@ -79,15 +82,13 @@ public class IdentityTextInterpreter implements TextInterpreter, CmsNames { } /** To be overridden, in order to support additional formatting. */ - protected String convertToStorage(Item item, String content) - throws RepositoryException { + protected String convertToStorage(Item item, String content) throws RepositoryException { return content; } /** To be overridden, in order to support additional formatting. */ - protected String convertFromStorage(Item item, String content) - throws RepositoryException { + protected String convertFromStorage(Item item, String content) throws RepositoryException { return content; } }