Hi,I can follow the code examples and reference web pages for guidance on how to write javascript to back Sightly html. However, I am not clear on where the code documentation is to reference when authoring such javascript. Are there server-side javascript documents akin to the Sightly javadocs?
Thanks @smacdonald2008 but as you'll see in my question (and the snippets of code i included) I've already overridden ('overlayed') the file that you suggested. The thing that has me stumped here is I have made almost identical changes for the italic markup produced by the RTE as I have for bold. ...
Using an OSX/Chrome combination, I have specified the html rules - for use by my custom Rich Text Editor in the snippet at the foot of this question. I've also provided an overridden copy of DefaultFormatting.js and specified the elements to use as shown in the snippet at the foot of this question....
One approach would be to provide your own custom version of the rich text editor - by copying the components scripts and configuration to your own /apps/your-app/components/content/text node and remove the unwanted tab.You could also hide the Style tab using javascript, again ideally in a custom of ...
Thanks Purnendra,Actually my page is built with jsps (resource super type, foundation/components/page), perhaps the init scripts, global jsp etc do something similar to the code in head.js for page templates built in sightly? I'll take a look.
I haven't tried this with jsp but I'm doing something similar in Sightly/ javascript and encountering the same issue. I've had to resort to something similar to the above comments : in preview/ publish mode fetch the design values via currentDesign.getJSON(), parse the value returned from that and...
A query regarding the reference docs: http://docs.adobe.com/docs/en/aem/6-0/develop/sightly/use-api-in-javascript.html.Are the Simple Example code listings correct? The html code mentions info.js but the data-sly-use directive specifies "Info" and the subsequent content tree shows "Info.java". Thi...
Thanks for this info : yes I am using chrome with OSX (quite a common combination I'd have thought!). I will make the change suggested and raise a daycare ticket regards the bug (I'm hoping to get the same behaviour for the italic key shortcut)
Thanks both for the replies I'd previously done both of what's been suggested; it's the keystroke bit I can't figure out - it seems clicking the Bold icon button in the RTE is processed differently than using the shortcut keys (ctrl+B).thanks
Using AEM6 and the RTE editor, I'd like the Bold format plugin to use the <strong> html element in place of <b>.I've almost done this with a combination of overlaying /apps/cq/ui/rte/core/commands/DefaultFormatting.js and rtePlugins: htmlRules: semanticMarkupMap entries.However, in the RichTextEdito...