Questions tagged [richtext-editor]

Any questions related to the customization or utilization of the Rich Text Editor (RTE) inside the Sitecore CMS.

Filter by
Sorted by
Tagged with
10
votes
5answers
898 views

display only 100 symbols from rich text

I need to cut rich text field value to render only 100 first symbols and '...' at the end. The issue is rich text field value looks like <strong style="background-color: #ffffff; margin: 0px; ...
10
votes
2answers
1k views

Is it possible to customize HTML Editor Profile based on Sitecore Role a user belongs to?

Is it possible to load different default Rich Text Editor profiles (default for most users but the "full" for a select few) based on Sitecore Roles a user belongs to? For example, if a user is in the "...
6
votes
1answer
878 views

Length cannot be less than zero. When using sitecore link in richtext edtior

The page crashes and gives "Length cannot be less than zero." when i insert a Sitecore link in the RTE. It happens as soon as you visit the specefic page on the site. The error is not thrown when ...
6
votes
1answer
320 views

Edit ForeColor list in RichText editor

how could I edit my forecolor list in RichText editor, for example everytime now I have to use a custom color. By the way, I know it could be achieved by adding classes, but is there any other way ?
5
votes
2answers
627 views

Templates and Rich Text Editor properties

I have a field called "description" but I want to use different Rich Text editors with it. Can I do this with the same template, or do I have to make different templates with the same field name?
5
votes
1answer
1k views

Preventing RTE from removing scripts for specific templates only

I need to prevent Sitecore from removing my script tags in RTE for specific templates even when HtmlEditor.RemoveScripts is true. I have looked at https://laubplusco.net/customizing-sitecore-rich-...
5
votes
2answers
1k views

How can I prevent the richtext field to insert unwanted html?

When editing Sitecore rich text fields, upon saving, it inserts tags that are unnecessary for example around images or for line breaks. Also it adds classes to span's which is not a preferred ...
5
votes
1answer
796 views

Sitecore RTE: a custom button does not trigger a dialog

I'm adding a new custom button to Sitecore Rich Text Editor which should enable a user to add a triggerable modal to RTE content. I haven't found a case quite like that when researching, but there is ...
4
votes
3answers
1k views

rel=“noopener noreferrer” get automatically added on other content when we add new link with target equals to blank in RTE

Sitecore 8.2 update 4 We've been editing some pages, and noticing that rel="noopener noreferrer" get's added into text. I understand that, it's good to have it added to _blank links. But it's being ...
4
votes
4answers
1k views

How to add a class img-responsive to RTE in Sitecore 8.x

I would like to add an option to change class on an image that is inserted into the RTE of the content item. In particularly I would like to add bootstrap class "img-responsive". So what i have done: ...
4
votes
3answers
2k views

Applying rich text editor custom classes

I have a custom css class that has been patched which I have verified in showconfig.aspx <?xml version="1.0" encoding="utf-8"?> <configuration xmlns:patch="http://www.sitecore.net/xmlconfig/"...
4
votes
2answers
1k views

Sitecore 8.2 Rich Text Editor drop down items

In the RTE in Sitecore 8.2 Update 6, I can see one of the definitions for a drop down in the Core database is for "FormatBlock" which displays a set of css classes in a drop down box. Can anyone ...
4
votes
1answer
2k views

Add full media url in Rich text editor

We have email templates that are stored in Sitecore. We are using Richtext field to store html of emails. When I add images from Sitecore media library to that rich text field links are generating as ...
4
votes
1answer
236 views

Remove empty Html tag from RTE

Is it possible to remove empty html Tags like <p>&nbsp;</p> from RTE, because they are getting inserted very easy and destroying the design. The best would be automaticaly :-) on ...
4
votes
1answer
272 views

Rich text editor getting cleared on Sheer's UI ok click

I have implemented a custom Rich text editor button. When I click on the custom RTE button it opens a Sheer dialog where the user can select an item from a list and I build a link based on the ...
4
votes
1answer
978 views

How do I get rid of extra linebreaks <br> in rich text fields when using the Rich Text Editor on Sitecore 8.0?

It doesn't happen on Internet Explorer (IE), but does on Firefox, Opera, and Chrome.
4
votes
1answer
2k views

Failed to execute 'send' on XMLHttprequest' - Sitecore

We are using sitecore 7.2 with Coveo for sitecore(3.0). When I try to edit a rich text field for an item using EditHtml, I am getting this message below and not able to accept the changes. Failed to ...
3
votes
2answers
1k views

Prevent Width\Height styles when resizing image in RTE

When inserting Images into RTE content, images are rendered as this: <img src="-/media/AS15F536E453B97C2GJI6901F55GG.ashx?h=857&amp;w=1523" height="857" width="1523" /> This works fine ...
3
votes
1answer
347 views

Rich Text Editor Cell Properties

Folks, got some strange behaviour withe RTE in sitecore, when you create a table, then edit one of the cells, it renders back what looks like a copy of the original table inside the selected cell, ...
3
votes
1answer
280 views

How to create Dropdown in Rich Text Editor (wysiwyg) in Sitecore 9.0.2

I am trying to create a Dropdown in WYSIWYG. I have added the Item using the Html Editor Drop Down Button template and Dropdown values using the Html Editor List Item in the core database. However, it'...
3
votes
3answers
370 views

Prevent content authors removing html from the experience editor

I have been working on a Sitecore 9 migration project. The client told us to use the existing html and stylesheets and use SXA as much as possible. We have used RichText control in a few places but ...
3
votes
2answers
2k views

Apply Css class around <p>, Rich Text Editor - Sitecore 8.2u2

EDIT: I'm doing this in the Design part of RTE, NOT Html. I select a piece of text thats in a <'p>. Then "Apply Css Class" to add a class which changes the background color. This becomes a <'...
3
votes
1answer
241 views

Hyperlink Manager “http://” for external links

When accessing Hyperlink Manager from a Rich Text field, the default value of the "URL" field displayed on the modal is "http://". The code responsible for setting this value is hard-coded inside of "...
3
votes
1answer
483 views

Can Sitecore be customized to auto save pages including the rich text editor?

Trying to solve the issue where an editor is updating content and gets timed out. When they log back in they lost changes. I know you can increase that time out, but can you implement auto save? ...
3
votes
1answer
635 views

What is the easiest way to remove the language and hash from PDF links in Sitecore RTE in 8.1?

We have a link like this in the RTE: http://xyzcompany.com/-/media/xyz/PDFs/71-43444_xyz_guide.pdf#page=13?la=en&hash=8993E559F610238AA496E3A5EE4ACD388E231211 when it is rendered out. However, the ...
3
votes
1answer
1k views

Rich Text Editor “Object reference not set to an instance of an object.” and internal server error thrown

For as long as I can remember, my rich text editor hasn't worked. At this point I'm not sure whether it's a security issue or a web config issue, but the problem does affect all sites under the same ...
3
votes
0answers
171 views

How to let Sitecore 9 RTE Link Manager use “id” attribute instead of “name” attribute for anchors

When adding an anchor link in the Link Manager inside a RTE field in Sitecore 9, the attribute name is used. This is no longer supported with html5 according to W3Schools: The name attribute is ...
2
votes
2answers
363 views

Has anyone ever tried to replace an RTE in Sitecore, with something custom like tinyMCE? If there is there any instructions?

I would like to replace the default RTE in Sitecore with tinyMCE, how would I do it? Where do I start?
2
votes
1answer
940 views

Prevent rich text editor from inserting paragraphs on Ctrl+Enter

When you click [Ctrl+Enter] in Rich Text Editor it inserts a paragraph (<p>) at the cursor, and also encapsulates the content before the cursor in another paragraph. I've already created a ...
2
votes
1answer
493 views

Can't drag & drop SXA components in overlay content (through experience editor)

I'm trying to edit an overlay content component in the Experience Editor but i just realized that i can't use SXA components such as Rich Text, Links etc (The drag & drop works but once it's ...
2
votes
1answer
235 views

setting tool tip for custom button for rich text editor

I have created a custom insert link button by inserting an item based on /sitecore/templates/System/Html Editor Profiles/Html Editor Button in html editor profile rich text editor. It is working ...
2
votes
1answer
145 views

Change RTE Default font size not reflecting on RTE html editor

I changed RTE default font size by changing Website\sitecore\shell\Controls\Rich Text Editor\Editor.css : body { font-size: 20px; } This is working fine for the RTE Design tab but not for the ...
2
votes
1answer
357 views

Disable inline editing of rich text fields in Experience Editor

How can I disable inline editing of rich text fields in Experience Editor? I still want the users to be able to click the edit icon in the toolbar popup (leftmost icon in the attached screenshot) so ...
2
votes
1answer
154 views

Experience Editor removing opening paragraph tag in RTE

We've noticed that when editing RTE fields in the experience editor of version 9.3 the first paragraph tag is being stripped. For example: This (prior to save): <p>test</p> <p>test&...
2
votes
1answer
242 views

How to configure sitecore rich text editor not to replace url to relative.

I have strange behavior at Rich Text editor (I heard that everyone had it), when user add some Absolute url for example, https://www.example.com/mypage/someextra, after save Sitecore replace it to ...
2
votes
1answer
1k views

What is the allowed Max Length for a Rich Text Field on Sitecore 7.2?

I was asked to implement a new page, Privacy Policy page, I decided to use Sitecore rather than create a whole new outside application. Thus, I picked a similar page that content editors were using ...
2
votes
2answers
820 views

Multiple Languages on One Page

Is it possible to have the English version of a page with multiple rich text editors and each rich text editor will show text in a different language? Or even in the same rich text editor? How would ...
2
votes
0answers
2k views

Make RTE output media item links with a path instead of ID

In Sitecore 8.1, I would like to align the download links to media items (files), as links can be outputted in two different ways for the same item: Links with an ID my.site.com/_/media/...
1
vote
1answer
564 views

How to change Sitecore 8.2 RTE behavior to insert <p> tag instead of <br> on Enter?

We recently upgraded to 8.2. When editing rich text, if I press Enter at the end of a paragraph, it creates a new paragraph, as expected; however, if my cursor is in the middle of a paragraph, when I ...
1
vote
1answer
1k views

Remove 'Is valid XHtml' validation rule for Rich Text field

We have a Rich Text field where we are storing our email's html. When i try to save the item, i ended up with validation error like The field "EmailBody" contains (or lacks) some formatting ...
1
vote
2answers
720 views

Sitecore Rich Text Editor removing 'autoplay' attribute

I'm trying to embed a video in a Rich Text editor like so: <div class="video-wrapper"> <video autoplay loop poster="/img/hero-stills/Homepage.jpg" style="margin-top: -295px;position:...
1
vote
1answer
92 views

How to set different RTE Profile for different Sites in SXA

I want to set different RTE profile for different Sites in SXA. Is there a setting OR a other way to achieve this?
1
vote
2answers
88 views

Sitecore patch from Security Bulletin SC2017-001-170504

I am trying to install the https://kb.sitecore.net/articles/978654 to a SC 8.2 update 2 instance. Once installed I am getting the following error when I open the rich text editor. It looks like it is ...
1
vote
2answers
297 views

Embedding Instagram in RTE

I want to embed Instagram posts in an RTE field and am having trouble with captions. The Instagram Embed code is a block quote and script. This gets converted to an iFrame on rendering. The instagram ...
1
vote
1answer
322 views

How to call javascript for custom Web Edit Button of RTE in Experience Editor

I need to add custom button of template /sitecore/templates/System/WebEdit/WebEdit Button to RTE in Experience Editor. And invoke my custom js function on click. How I can implement that? I've ...
1
vote
2answers
298 views

How to wrap selected content in 2 tags by using a button in Sitecore Rich Text Editor

I have a requirement where the authors want a button in RTE which can wrap selected text with a predefined html structure. E.g. This is the Selected Text Now we want a button/tool in Sitecore Rich ...
1
vote
0answers
266 views

Media item (image) and RTE

I'm running into an issue with using images in RTE. Images upload as expected into the medialibrary so no issues there. But when I insert the newly uploaded image in RTE it'll appear in Experience ...
1
vote
0answers
182 views

WebEdit Button for External Link? (Sitecore 7.2)

I know how to add additional buttons to the WebEdit Toolbar for Rich Text fields when in Page Editor (chromecontrol.js _maxToolbarCommands for lenght, fieldchrometype.js for additional case statement ...
1
vote
1answer
178 views

How to add multiple css classes to the Rich Text Editor

I'm trying to add custom css class to the sitecore Rich Text editor. .infinityNumber .clickable { background-color: #00657c; color: white; padding: 0px 0px; } When ...
1
vote
1answer
45 views

Why does the RTE default to Media Library in the Document Manager?

Sitecore 8.2 u6 When you edit the properties of a link in an RTE and attempt to change the link, the document manager defaults to sitecore/media library. Shouldn't it default to sitecore? Changing ...