tag:blogger.com,1999:blog-206145551100712277.post5289612493562640440..comments2024-03-25T11:47:58.644-05:00Comments on Experiencing Adobe Experience Manager (AEM, CQ): AEM 61 - Extend TouchUI Rich Text Editor Table Plugin, Add Summary Fieldsreekanth choudryhttp://www.blogger.com/profile/15578091428034329691noreply@blogger.comBlogger9125tag:blogger.com,1999:blog-206145551100712277.post-52489659668782160822018-01-22T18:08:35.870-06:002018-01-22T18:08:35.870-06:00ON modifying table summary .. inline editing in to...ON modifying table summary .. inline editing in touch UI .<br />The merge functionality of table is not working as getting eaemExtended undefined.<br /><br />(function ($) {<br /> "use strict";<br /> <br /> var _ = window._,<br /> Class = window.Class,<br /> CUI = window.CUI,<br /> EAEM_TABLE = null;<br /><br /> if(CUI.rte.ui.cui.TablePropsDialog.eaemExtended){<br /> return;<br /> }<br /> <br /> CUI.rte.ui.cui.TablePropsDialog = new Class({<br /> <br /> extend: CUI.rte.ui.cui.TablePropsDialog,<br /> <br /> toString: "EAEMTablePropsDialog",<br /> <br /> initialize: function(config) {<br /> this.superClass.initialize.call(this, config);<br /><br /> this.$border.closest(".coral-RichText-dialog-columnContainer").remove();<br /><br /> this.$caption = this.$container.find(".coral-RichText-dialog-column input[data-type=\"caption\"]");<br /><br /> this.$caption.closest(".coral-RichText-dialog-columnContainer").remove();<br /> },<br /><br /> onShow: function() {<br /> //reset dialog input values to defaults<br /> this.$columns.val("3");<br /> this.$rows.val("2");<br /> this.$width.val("800");<br /> this.$height.val("50");<br /> this.$cellPadding.val("30");<br /> this.$cellSpacing.val("0");<br /> }<br /> });<br /> <br /> EAEM_TABLE = new Class({<br /> toString: "EAEMTable",<br /> <br /> extend: CUI.rte.commands.Table,<br /> <br /> transferConfigToTable: function(dom, execDef) {<br /> this.superClass.transferConfigToTable.call(this, dom, execDef);<br /> }<br /> });<br /> <br /> CUI.rte.commands.CommandRegistry.register("_table", EAEM_TABLE);<br /> <br /> CUI.rte.ui.cui.TablePropsDialog.eaemExtended = true;<br />})(jQuery);Anonymoushttps://www.blogger.com/profile/09087813252295916784noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-78267912088900464812016-12-14T20:38:56.734-06:002016-12-14T20:38:56.734-06:00Hi Sreekanth,
Thanks for your bunch of docs, I hav...Hi Sreekanth,<br />Thanks for your bunch of docs, I have some queries plz clarify.<br /><br />1) The JS you are extending "CUI.rte.ui.cui.TablePropsDialog" path is "/etc/clientlibs/granite/coralui2/optional/rte/js/components/rte/ui/dialogs/TablePropsDialog.js", for TablePropsDialog.js file categories name is "rte.coralui2" but why you given "cq.authoring.dialog" ?<br />2)I have same kinda requirement like, need to add three more properties to "LinkBaseDialog.js" for links plugin. Any suggestions? Thanks in advance harishhttps://www.blogger.com/profile/08414998020992575252noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-11299227893549103932016-09-06T14:51:28.668-05:002016-09-06T14:51:28.668-05:00I can't get this to work with 6.2. Do you know...I can't get this to work with 6.2. Do you know why?aldoghttps://www.blogger.com/profile/03827916472142061917noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-16727134934767823982015-12-23T01:27:46.431-06:002015-12-23T01:27:46.431-06:00Hi Sreekanth,
The js with table summary plugin has...Hi Sreekanth,<br />The js with table summary plugin has been added to clientlib folder(name "touchui-libs") with categories "cq.authoring.dialog" and dependencies as "underscore". I am maintaining all the touch ui related scripts in a common folder("touchui-libs"), this is the reason for not including the js in the component.<br />I can see the touchui-libs.js loading in the browser sources.<br />Is the value(given above) for properties "categories" and "dependencies" appropriate?<br /><br />Thanks & Regards,<br />Srikanth Pogula.Srikanth Pogulahttps://www.blogger.com/profile/10425154240572434037noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-47823474570379528312015-12-22T10:15:12.697-06:002015-12-22T10:15:12.697-06:00hi Srikanth, i dont follow, there is no clientlib ...hi Srikanth, i dont follow, there is no clientlib with js logic to show the table summary plugin? i see all project specific codesreekanth choudryhttps://www.blogger.com/profile/15578091428034329691noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-12199923718967544162015-12-22T00:11:18.491-06:002015-12-22T00:11:18.491-06:00Hi Sreekanth,
Here is the google drive link for th...Hi Sreekanth,<br />Here is the google drive link for the component: https://drive.google.com/file/d/0ByRKv68TWVHiOTNuQkdBWGdyaGc/view?usp=sharing<br />I have implemented in-place editing feature for the RTE field in the component in order to persist the content at custom property name(./bodycopytext). Will this in any way affect the way plug-ins are shown in granite/touch ui?Srikanth Pogulahttps://www.blogger.com/profile/10425154240572434037noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-61558929283466397512015-12-21T09:01:51.700-06:002015-12-21T09:01:51.700-06:00hi, yes, in the classic one - dialog/items/tab1/it...hi, yes, in the classic one - dialog/items/tab1/items/text/rtePlugins/table<br /><br />so its working for foundation text component, but not in a custom component? can you upload the component to dropbox/gdrive and share the url here?sreekanth choudryhttps://www.blogger.com/profile/15578091428034329691noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-6346093233901950432015-12-21T06:14:37.305-06:002015-12-21T06:14:37.305-06:00Hi Sreekanth,
Thanks for the demo.
I was able to s...Hi Sreekanth,<br />Thanks for the demo.<br />I was able to see "Table" plugin for "text" component in granite/touch dialog. I believe the "Table" plugin needs to be configured in the classic dialog(/libs/foundation/components/text/dialog/items/tab1/items/text/rtePlugins/table). Is this understanding correct? Or is there any additional configuration for the plugin to be visible in granite/touch dialog?<br />I could not see the "Table" plugin itself for my custom component, even though it is available in classic dialog.<br />Any suggestions on this would be highly appreciated.Srikanth Pogulahttps://www.blogger.com/profile/10425154240572434037noreply@blogger.comtag:blogger.com,1999:blog-206145551100712277.post-60527796206247796512015-12-21T06:12:58.078-06:002015-12-21T06:12:58.078-06:00This comment has been removed by the author.Srikanth Pogulahttps://www.blogger.com/profile/10425154240572434037noreply@blogger.com