<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Alfresco - View in Browser Html file ignoring style in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145644#M38597</link>
    <description>&lt;P&gt;I did the same thing but&amp;nbsp; I am getting error like&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;org.springframework.extensions.webscripts.WebScriptException - 04130115 Web Script format '' is not registered&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Step 1 :&amp;nbsp;&lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/core/repository/src/main/webscripts/de/acosix/acosix-utility/slingshot-content.get.desc.xml" target="_self" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt;&amp;nbsp;path I have created given .xml file with same content for test.&lt;/P&gt;&lt;P&gt;Step 2: Created bean in webscript-context.xml&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'&amp;gt;

&amp;lt;beans&amp;gt;
 	&amp;lt;bean id="webscript.de.acosix.acosix-utility.slingshot-content.get" parent="webscript.default" /&amp;gt; 
&amp;lt;/beans&amp;gt;&lt;/PRE&gt;&lt;P&gt;Step 3 : Create javascript base custom action and opening url.&lt;/P&gt;&lt;PRE&gt;(function() {

	YAHOO.Bubbling
	.fire("registerAction",
					{
						actionName : "viewInBrowser",
						fn : function viewInBrowser(file) {
							console.log(file);
							var contentUrl = Alfresco.constants.PROXY_URI+"acosix/api/utility/node/slingshot/"+file.nodeRef.replace(":/","")+"/"+file.fileName;
							window.open(contentUrl);
						}
					});


})();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Do I need to override all the bean of&amp;nbsp;&lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/core/repository/src/main/config/context/webscripts-context.xml#L45" target="_self" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt;&amp;nbsp; file?&lt;/P&gt;</description>
    <pubDate>Thu, 13 May 2021 05:04:55 GMT</pubDate>
    <dc:creator>sp2</dc:creator>
    <dc:date>2021-05-13T05:04:55Z</dc:date>
    <item>
      <title>Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145638#M38591</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have uploaded html file in documentlibrary.&lt;/P&gt;&lt;P&gt;When I use View in Browser , it is ignoring html style and display plain text only.&lt;/P&gt;&lt;P&gt;it is loading in browser so It should display like normal html file we are opening in browser with style.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 05:05:08 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145638#M38591</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-05-10T05:05:08Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145639#M38592</link>
      <description>&lt;P&gt;Unfortunately, Alfresco Share has a very aggressive "&lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/java/org/alfresco/web/scripts/SlingshotRemoteClient.java#L140" target="_self" rel="nofollow noopener noreferrer"&gt;HTML stripping&lt;/A&gt;" functionality to prevent malicious content / hijacking in HTML files, which applies to the "view in browser" feature for HTML files. Essentially, the style markup is transparently removed from the HTML when it is being loaded from the backend, resulting in the plain-text-like display. In one of my modules I circumvent that URL-based handling by mapping a default functionality to a custom URL, and then reconfigure the "view in browser" action in a customer system to use that non-processed URL instead of the default.&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 08:28:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145639#M38592</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-05-10T08:28:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145640#M38593</link>
      <description>&lt;P&gt;Please help to achieve that scenario.&lt;/P&gt;&lt;P&gt;How Can I change code?&lt;/P&gt;&lt;P&gt;Is it proper way to override bean?&lt;/P&gt;</description>
      <pubDate>Mon, 10 May 2021 12:34:52 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145640#M38593</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-05-10T12:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145641#M38594</link>
      <description>&lt;P&gt;Hi Axel! thanks for the input.&lt;/P&gt;&lt;P&gt;I am having the same issue. Could you please point me on the right direction on how to avoid this filters in order for the html files to load correctly?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 11 May 2021 14:25:01 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145641#M38594</guid>
      <dc:creator>davidzuluaga5</dc:creator>
      <dc:date>2021-05-11T14:25:01Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145642#M38595</link>
      <description>&lt;P&gt;i hope can fix the issue please refer to the &lt;A href="https://mindmajix.com/weblogic-server-adminisration-training" target="_self" rel="nofollow noopener noreferrer"&gt;WebLogic training&lt;/A&gt; tutorial.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 07:04:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145642#M38595</guid>
      <dc:creator>jackandru</dc:creator>
      <dc:date>2021-05-12T07:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145643#M38596</link>
      <description>&lt;P&gt;I do not advocate changing Alfresco code for this. I primarily advocate mapping the download web script to a different URL (similar to how I do it via &lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/core/repository/src/main/webscripts/de/acosix/acosix-utility/slingshot-content.get.desc.xml" target="_self" rel="nofollow noopener noreferrer"&gt;a custom web script&lt;/A&gt; mapped to &lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/core/repository/src/main/config/context/webscripts-context.xml#L45" target="_self" rel="nofollow noopener noreferrer"&gt;a bean extended from the same parent&lt;/A&gt; ), and then reconfiguring the &lt;A href="https://github.com/Alfresco/share/blob/develop/share/src/main/resources/alfresco/share-documentlibrary-config.xml#L847" target="_self" rel="nofollow noopener noreferrer"&gt;view-content action&lt;/A&gt; to use a different href that maps to the custom web script (the default viewUrl is calculated &lt;A href="https://github.com/Alfresco/share/blob/master/share/src/main/webapp/components/documentlibrary/actions.js#L215" target="_self" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt; using &lt;A href="http://this pattern provided by an FTL response template" target="_self" rel="nofollow noopener noreferrer"&gt;https://github.com/Alfresco/share/blob/master/share-services/src/main/resources/alfresco/templates/webscripts/org/alfresco/slingshot/documentlibrary/item.lib.ftl#L72&lt;/A&gt;&amp;nbsp;). E.g. for my web script I would have to configure the following href pattern:&lt;/P&gt;
&lt;PRE&gt;/share/proxy/alfresco/acosix/api/utility/node/slingshot/{node.nodeRef.storeType}/{node.nodeRef.storeId}/{node.nodeRef.id}&lt;/PRE&gt;
&lt;P&gt;If you wanted to eliminate the /share/proxy/alfresco/ prefix and use constants with deployment specific values (technically both "share" and "alfresco" in the prefix could be different in some deployments, but 99.99% stick to the default, and most people probably don't know how it could be changed to begin with), you would have to write a JavaScript based action, register and use it as documented on docs.alfresco.com.&lt;/P&gt;</description>
      <pubDate>Wed, 12 May 2021 13:39:06 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145643#M38596</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-05-12T13:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145644#M38597</link>
      <description>&lt;P&gt;I did the same thing but&amp;nbsp; I am getting error like&amp;nbsp;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;org.springframework.extensions.webscripts.WebScriptException - 04130115 Web Script format '' is not registered&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;Step 1 :&amp;nbsp;&lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/core/repository/src/main/webscripts/de/acosix/acosix-utility/slingshot-content.get.desc.xml" target="_self" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt;&amp;nbsp;path I have created given .xml file with same content for test.&lt;/P&gt;&lt;P&gt;Step 2: Created bean in webscript-context.xml&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;?xml version='1.0' encoding='UTF-8'?&amp;gt;
&amp;lt;!DOCTYPE beans PUBLIC '-//SPRING//DTD BEAN//EN' 'http://www.springframework.org/dtd/spring-beans.dtd'&amp;gt;

&amp;lt;beans&amp;gt;
 	&amp;lt;bean id="webscript.de.acosix.acosix-utility.slingshot-content.get" parent="webscript.default" /&amp;gt; 
&amp;lt;/beans&amp;gt;&lt;/PRE&gt;&lt;P&gt;Step 3 : Create javascript base custom action and opening url.&lt;/P&gt;&lt;PRE&gt;(function() {

	YAHOO.Bubbling
	.fire("registerAction",
					{
						actionName : "viewInBrowser",
						fn : function viewInBrowser(file) {
							console.log(file);
							var contentUrl = Alfresco.constants.PROXY_URI+"acosix/api/utility/node/slingshot/"+file.nodeRef.replace(":/","")+"/"+file.fileName;
							window.open(contentUrl);
						}
					});


})();&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Do I need to override all the bean of&amp;nbsp;&lt;A href="https://github.com/Acosix/alfresco-utility/blob/master/core/repository/src/main/config/context/webscripts-context.xml#L45" target="_self" rel="nofollow noopener noreferrer"&gt;this&lt;/A&gt;&amp;nbsp; file?&lt;/P&gt;</description>
      <pubDate>Thu, 13 May 2021 05:04:55 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145644#M38597</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-05-13T05:04:55Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145645#M38598</link>
      <description>&lt;P&gt;You need to set the parent of the bean to "webscript.org.alfresco.slingshot.download.get". This is done by a dynamic component in my module, but you may simply set it on the existing bean without the dynamic handling (that handling is only in place to be compatible with Alfresco installations where Share Services is not installed)&lt;/P&gt;</description>
      <pubDate>Fri, 14 May 2021 11:58:20 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145645#M38598</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-05-14T11:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145646#M38599</link>
      <description>&lt;P&gt;I did the same thing but getting NullPointerException.&lt;/P&gt;&lt;PRE&gt;2021-05-15 12:46:57,840  ERROR [extensions.webscripts.AbstractRuntime] [http-bio-9090-exec-2] Exception from executeScript - redirecting to status template error: null
 java.lang.NullPointerException
	at org.alfresco.repo.web.scripts.content.ContentGet.execute(ContentGet.java:108)
	at org.alfresco.slingshot.web.scripts.SlingshotContentGet.execute(SlingshotContentGet.java:114)
	at org.alfresco.repo.web.scripts.RepositoryContainer$3.execute(RepositoryContainer.java:505)
	at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457)
	at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:580)
	at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:649)
	at org.alfresco.repo.web.scripts.RepositoryContainer.executeScriptInternal(RepositoryContainer.java:421)
	at org.alfresco.repo.web.scripts.RepositoryContainer.executeScript(RepositoryContainer.java:301)
	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:378)
	at org.springframework.extensions.webscripts.AbstractRuntime.executeScript(AbstractRuntime.java:209)
	at org.springframework.extensions.webscripts.servlet.WebScriptServlet.service(WebScriptServlet.java:132)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.alfresco.web.app.servlet.GlobalLocalizationFilter.doFilter(GlobalLocalizationFilter.java:61)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
	at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
	at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
	at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
	at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)&lt;/PRE&gt;&lt;P&gt;Here I am attching&amp;nbsp;&lt;A href="https://github.com/SanjayBandhniya/alfrescohtmlfilter" target="_self" rel="nofollow noopener noreferrer"&gt;Demo&lt;/A&gt;&amp;nbsp;.&lt;/P&gt;&lt;P&gt;Here is&amp;nbsp;&lt;A href="https://github.com/SanjayBandhniya/alfrescohtmlfilter/blob/main/demo-platform/src/main/resources/alfresco/module/demo-platform/context/webscript-context.xml" target="_self" rel="nofollow noopener noreferrer"&gt;bean&lt;/A&gt;&amp;nbsp;.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Action Name is&amp;nbsp;&lt;A href="https://github.com/SanjayBandhniya/alfrescohtmlfilter/blob/main/demo-share/src/main/resources/alfresco/web-extension/site-data/extensions/add-doclib-actions-extension-modules.xml" target="_self" rel="nofollow noopener noreferrer"&gt;View In Browser HTML&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Am i doing anything wrong?&lt;/P&gt;&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;&amp;nbsp; Any Suggestion?&lt;/P&gt;</description>
      <pubDate>Sat, 15 May 2021 06:09:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145646#M38599</guid>
      <dc:creator>sp2</dc:creator>
      <dc:date>2021-05-15T06:09:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145647#M38600</link>
      <description>&lt;P&gt;This error is due to the fact that you are calling the web script without any URL parameters. The implementation expects that there is at least one parameter (e.g. the `?a=true` to trigger sending the response with attachment disposition), and does not check for null - so you could say you are simply running into a bug / implementation mistake by an Alfresco developer here.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jun 2021 13:07:11 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145647#M38600</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2021-06-02T13:07:11Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145648#M38601</link>
      <description>&lt;P&gt;Hi &lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt; ,&lt;/P&gt;&lt;P&gt;i followed the steps as is and I am getting the same null pointer exception but it is not resolved after adding ?a=true.&lt;/P&gt;&lt;P&gt;My URL:&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:8180/share/proxy/alfresco/acosix/workspace/SpacesStore/d83c8c3c-c7ca-49c8-bdc3-3fdd95b3892b/gran.html?a=true" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8180/share/proxy/alfresco/acosix/workspace/SpacesStore/d83c8c3c-c7ca-49c8-bdc3-3fdd95b3892b/gran.html?a=true&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The LOGS:&lt;/P&gt;&lt;P&gt;my-all-in-one-acs_1 | 2022-05-24 14:43:56,425 ERROR [extensions.webscripts.AbstractRuntime] [http-nio-8080-exec-4] Exception from executeScript: null&lt;BR /&gt;my-all-in-one-acs_1 | java.lang.NullPointerException&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.repo.web.scripts.content.ContentGet.execute(ContentGet.java:131)&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.slingshot.web.scripts.SlingshotContentGet.execute(SlingshotContentGet.java:133)&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.lambda$transactionedExecute$2(RepositoryContainer.java:553)&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:450)&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecute(RepositoryContainer.java:544)&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:685)&lt;BR /&gt;my-all-in-one-acs_1 | at org.alfresco.repo.web.scripts.RepositoryContainer.transactionedExecuteAs(RepositoryContainer.java:721)&lt;BR /&gt;my-all-in-one-acs_1&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 14:52:46 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145648#M38601</guid>
      <dc:creator>SalmanEdhi</dc:creator>
      <dc:date>2022-05-24T14:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145649#M38602</link>
      <description>&lt;P&gt;Unfortunately Alfresco's base class is missing a null check for a technically optional property} URL template fragment. In your case you are not providing it. Though I do not recognise your URL as a valid URL for either the default ContentGet nor my patched one.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:35:19 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145649#M38602</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2022-05-24T15:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145650#M38603</link>
      <description>&lt;P&gt;Could you please tell me what are template vars and how I can provide them?&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is how it is getting the template vars&lt;/P&gt;&lt;PRE&gt;Map&amp;lt;String&lt;SPAN&gt;, &lt;/SPAN&gt;String&amp;gt; templateVars = req.getServiceMatch().getTemplateVars()&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;PRE&gt;String contentPart = templateVars.get(&lt;SPAN&gt;"property"&lt;/SPAN&gt;)&lt;SPAN&gt;;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Also, could you please tell me what is wrong or missing in the URL? because when I clikc on the action "View&amp;nbsp; in Browser HTML", this is the link I get&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:8180/share/proxy/alfresco/acosix/workspace/SpacesStore/d83c8c3c-c7ca-49c8-bdc3-3fdd95b3892b/gran.html" target="_blank" rel="noopener nofollow noreferrer"&gt;http://localhost:8180/share/proxy/alfresco/acosix/workspace/SpacesStore/d83c8c3c-c7ca-49c8-bdc3-3fdd95b3892b/gran.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The URL is different because I copied the project shared by the other member and the webscript configration is as follows:&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;&amp;lt;webscript&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;&amp;lt;!-- This is just like the default download.get.desc.xml --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;!-- Only the URL is remapped to avoid the Slingshot / Share content filtering via the SlingshotRemoteClient --&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;    &lt;SPAN&gt;&amp;lt;shortname&amp;gt;&lt;/SPAN&gt;DownloadContentTEST&lt;SPAN&gt;&amp;lt;/shortname&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;url&amp;gt;&lt;/SPAN&gt;/acosix/{store_type}/{store_id}/{id}?a={attach?}&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;url&amp;gt;&lt;/SPAN&gt;/acosix/{store_type}/{store_id}/{id}/content{property}?a={attach?}&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;url&amp;gt;&lt;/SPAN&gt;/acosix/{store_type}/{store_id}/{id}/{filename}?a={attach?}&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;url&amp;gt;&lt;/SPAN&gt;/acosix/{store_type}/{store_id}/{id}/content{property}/{filename}?a={attach?}&lt;SPAN&gt;&amp;lt;/url&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;format &lt;/SPAN&gt;&lt;SPAN&gt;default&lt;/SPAN&gt;&lt;SPAN&gt;=""&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;argument&lt;SPAN&gt;&amp;lt;/format&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;authentication&amp;gt;&lt;/SPAN&gt;user&lt;SPAN&gt;&amp;lt;/authentication&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;transaction &lt;/SPAN&gt;&lt;SPAN&gt;buffersize&lt;/SPAN&gt;&lt;SPAN&gt;="4096" &lt;/SPAN&gt;&lt;SPAN&gt;allow&lt;/SPAN&gt;&lt;SPAN&gt;="readonly"&lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;required&lt;SPAN&gt;&amp;lt;/transaction&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;    &amp;lt;lifecycle&amp;gt;&lt;/SPAN&gt;internal&lt;SPAN&gt;&amp;lt;/lifecycle&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;/webscript&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 25 May 2022 07:15:38 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145650#M38603</guid>
      <dc:creator>SalmanEdhi</dc:creator>
      <dc:date>2022-05-25T07:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145651#M38604</link>
      <description>&lt;P&gt;&lt;A href="https://migration33.stage.lithium.com/t5/user/viewprofilepage/user-id/16045"&gt;@afaust&lt;/A&gt;I got it to work. So basically, "content" word was required in the url. Otherwise, it does not work&lt;/P&gt;&lt;P&gt;&lt;A href="http://localhost:8180/share/proxy/alfresco/acosix/workspace/SpacesStore/d83c8c3c-c7ca-49c8-bdc3-3fdd95b3892b/" target="_blank" rel="nofollow noopener noreferrer"&gt;http://localhost:8180/share/proxy/alfresco/acosix/workspace/SpacesStore/d83c8c3c-c7ca-49c8-bdc3-3fdd95b3892b/&lt;/A&gt;&lt;STRONG&gt;content&lt;/STRONG&gt;/gran.html&lt;/P&gt;&lt;P&gt;Now, I have 2 questions if you could answer please,&lt;/P&gt;&lt;P&gt;1. This is done on the View in browser option, Is this possible to do this for the inline editor view that share provides?&lt;/P&gt;&lt;P&gt;2. If yes, is it advised to do this? My client wants to edit HTML documents from wihtin the inline editor and the document viewer.&amp;nbsp; If this is possible to override, could you please guide me how it could be achieved.&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 08:01:54 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145651#M38604</guid>
      <dc:creator>SalmanEdhi</dc:creator>
      <dc:date>2022-05-25T08:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145652#M38605</link>
      <description>&lt;P&gt;1. Yes - if you are willing to patch / override source code. I am using the alternative URLs at a customer for a custom inline editor, as I did not only want to alter the URL but also provide more capabilities (using Cloud9 editor).&lt;/P&gt;
&lt;P&gt;2. "Advised" is such a subjective word. Depending on your ability to cope / deal with the process of making such customisations, including maintenance on updates etc. it can be either. Editing HTML in the viewer itself I would not advise - it clearly is meant to be a read-only view, and as such should not have editing capabilities unless an expliict "I want to edit now" button is clicked - which is the "Edit Inline" action already present. But I know that in the end customers' wishes have to be met somehow, and one could certainly implement a viewer which can toggle between read/write mode without changing the page, and which transparently saves the changes, and reloads the metadata (which may be changed indirectly by the content update).&lt;/P&gt;</description>
      <pubDate>Sat, 28 May 2022 09:41:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145652#M38605</guid>
      <dc:creator>afaust</dc:creator>
      <dc:date>2022-05-28T09:41:24Z</dc:date>
    </item>
    <item>
      <title>Re: Alfresco - View in Browser Html file ignoring style</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145653#M38606</link>
      <description>&lt;P&gt;The custom inline editor that you have used, is it integrated in share (do you access it from within share) or you are using it as a different system? I managed to get the HTML document to display the correct content, it was not displaying images correctly in both the view document online and the inline-editor. I want to make changes in the inline-editor and provide more functionalities such as uploading videos etc. Can you suggest how that can/should be done using the inline-editor provided by share. For editing the inline-editor would I have to make changes in the source code directly or these changes can also be made using the all-in-one project and the sdk4.1. I see that in the alfresco-share-community they have seperate projects for the web-editor. Also, the inline-edit page opens the editor as a form andthat code is present in web-framework-commons. So the code is mixed up over multiple projects. Could you guide or if possible share any docs on editing/updating the inline-editor.&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;the inline editor is the tinyMCE editor which alfresco uses. Could you give me any insights on how to extend the functionality of this editor? My exact scenario that I want to achieve is, from within the editor when I click on the add image action, I can select and image from the directory, convert it into base64 and then save it in editor.&lt;/P&gt;</description>
      <pubDate>Tue, 31 May 2022 07:21:24 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/alfresco-view-in-browser-html-file-ignoring-style/m-p/145653#M38606</guid>
      <dc:creator>SalmanEdhi</dc:creator>
      <dc:date>2022-05-31T07:21:24Z</dc:date>
    </item>
  </channel>
</rss>

