Removing Default Paragraph Symbol from Richtext CQ Component - aem

I've a richtext CQ component. On dropping it to the page, ΒΆ-symbol is displayed till I configure any text into the component. I want to show some default text instead. For eg:- "Click here to set text". Then on opening the configuration dialogue, the default etxt should go off. Please help

copy the component at /libs/foundation/components/text and replace line number 20 in /libs/foundation/components/text/text.jsp with
<cq:text property="text" placeholder="click here to set text"/>
for more check out this link

Related

How do I replicate the tinymce link plugin's HTML markup behavior by adding succeeding text outside of the current node instead of inside?

When the user adds a link on selected text, it adds the URL markup only on the selected section and doesn't add the markup to any added text (after the markup is added) if the linked text is at the end of the string. This behavior differs from bold/italics/underline which adds added text to the bold/underline markup if the user adds more text at the end of a string.
I am implementing a custom button that should emulate the behavior of the link plugin. I have gone through the link/plugin.js file to no avail for which code block I need to re-use to get this behavior for my custom button.
How do I implement the link plugin's markup behavior? Are there any tinyMCE commands I should be using (setAttribs, etc)?
Video example of bold vs link plugin

Customize page-header area default theme in Moodle

I am using the default Boost theme and want to add some text beside the logo in the page-header section.
I have tried doing so in the Additional HTML in Within HEAD, but does not add the text in that area.
I am on version 3.6.3
The HEAD is before the BODY in HTML so isn't displayed.
You could add the text to "When BODY is opened" (additionalhtmltopofbody)
Via Site admin > Appearance > Additional HTML
Or direct to /admin/settings.php?section=additionalhtml
Anything you enter there will be displayed at the top of the page.

In TinyMCE 3, how can I remove a field from the table dialog?

We would like to alter the appearance of the "Insert/Edit Table" dialog in TinyMCE. Presently the dialog displays fields which manage attributes that are deprecated in HTML5. For instance, the border attribute is considered obsolete.
Now, I can successfully remove the border attribute from the rendered markup, by extending a technique presented here:
http://krompaco.nu/2010/05/alter-default-initoptions-for-tinymce-in-episerver-6/
But the "Insert/Edit Table" dialog still presents a "Border" field when we launch the table dialog from the TinyMCE menu button. The toolbar option for TinyMCE enables programmers to control the actual buttons that get displayed by the editor.
https://www.tinymce.com/docs/configure/editor-appearance/#toolbarn
We still want to display the Table button, but want to remove some of the deprecated fields from that dialog. How can we do this?
We are using the EpiServer CMS (versions 8-10) which employs TinyMCE version 3.3.9.3. Thanks for your help.
You could probably use virtualPathMappings. I think they're still supported in CMS8-10.
This means you have to create a copy of the aspx or ascx file with the dialog in it. Have the file Inherit="" from EPiServer code and change the markup how you want and then add the below configuration in section of web.config:
<virtualPathMappings>
<add url="~/yourprefix/CMS/Edit/LinkDialogName.ascx" mappedUrl="~/YourProjectFolder/LinkDialogName.ascx" />
</virtualPathMappings>
This is a bit of a hack however.

How to use Rich Text Editor in AEM web page

I am creating a form, and in that I need to input some text and I want to use Rich Text editor in it.
When that page is published, then the user must be able to enter the text using that rich text format, i.e. Bold, italics, bullet number list etc .
How can i use the AEM rich text editor in it. I know I can include any other free editor available in the market.
I like to know that how can I use the rich text editor which is used in dialog by AEM?
You need to use a existing richtext editor in front end side like a field in the form. For example: wysihtml5

Tool Tip for text in iReport

What functionality in iReport allows for tool tip text?
I have a field name description that contains very large text. Instead of displaying large text I want to show two or three lines and rest of text as a tool tip. How is this possible?
You can use hyperlinkTooltipExpression expression for textField element, for example.
You can find sample here.
In iReport you can call dialog for setting tooltip with help of context menu Hyperlink.