Questions tagged [rich-text-editor]

A rich-text editor allows to edit, enter and format content in a web browser with rich markup and styles close to its final appearance.

A rich-text editor (RTE) allows a user or author to edit, enter and format content in a web browser with rich markup and styles close to its final appearance.

An online rich-text editor allows users and contributors of a website to use a WYSIWYG tool with minimal learning curve as their interface is close to the interface of a word processor for example.
Other rich-text editors are WYSIWYM tools (What You See Is What You Mean).

935 questions
10
votes
3 answers

How do I add toolbar buttons to a custom tinymce dropdown menu?

I've created a custom dropdown in tinymce like this: tinymce.init({ toolbar: "alignment", setup: function(editor) { editor.addButton('alignment', { type: 'menubutton', text: 'Alignment', icon:…
MintDeparture
  • 5,745
  • 15
  • 76
  • 136
10
votes
1 answer

How can I configure HTML Purifier to allow data URIs for image src?

How can I allow base64 data for the the src attribute of image tags? I see code like this: $config->set('URI.AllowedSchemes', array('http' => true, 'https' => true, 'mailto' => true, 'ftp' => true, 'nntp' => true, 'news' => true, 'data' =>…
Le Fredd
  • 125
  • 1
  • 7
9
votes
1 answer

CKEditor Defining Custom Toolbar

I am using CKEditor and have defined a custom toolbar in the config.js file. However, this custom toolbar does not appear when I refresh the page where I have the CKEditor appearing. Below is my custom toolbar in the config.js…
Edwin
  • 787
  • 2
  • 13
  • 23
9
votes
1 answer

What is the 'the default user interface' referred to by the aShowDefaultUI parameter in element.execCommand()?

According to the API for the element.execCommand() function, it says that it has three parameters: aCommandName, aShowDefaultUI, aValueArgument. The API's description of the first and third parameters is perfectly clear but I'm unsure about the…
user5508297
  • 695
  • 1
  • 8
  • 17
8
votes
1 answer

Can a `range.insertNode` be undone using browser's undo, in a contenteditable div?

I am working on a contenteditable div to make a simple RichText-Editor. One of the requirement I have is to be able insert html chunk at cursor postion on a button event. I was able to get that part working fine by using range, selection,…
simplyharsh
  • 31,394
  • 12
  • 59
  • 69
8
votes
1 answer

How to customize fonts in CKEditor?

Does anyone know how to customize (add or remove) fonts in the CKEditor 3.x series? I looked all over and I can't figure out how. Supposedly there is a /plugin/fonts folder but it does not exist in 3.5+ of CKEditor.
kidcapital
  • 4,754
  • 8
  • 43
  • 65
8
votes
2 answers

Is there any way to disable image/attachment part for action text in Rails 6?

Do we have a way to disable attachment for action text? something like below has_rich_text :content, attachment: false So that, We can remove active_storage_blobs, active_storage_attachments tables from db. Only having action_text_rich_texts table…
8
votes
2 answers

Share Quill toolbar across multiple editors

With the great Quill rich text editor for Javascript I'm trying to make two or more editors share the same toolbar. I suppose (from documentation) that this is not possible right away at the moment, so I'm trying to "simulate" this by adding the…
TechNyquist
  • 1,197
  • 1
  • 17
  • 23
8
votes
1 answer

Is there a lightweight jQuery text editor?

I have used jQuery's jqrte text editor, but it has many drawbacks. Could anyone please suggest a lightweight jQuery text editor with common tools plus tables and an image upload link with browse button?
kamal
  • 1,506
  • 2
  • 22
  • 32
8
votes
2 answers

CKEditor: Restore caret position after calling editor#setData

I have a CKEditor instance where I want to manipulate the content, and restore the caret position to where it was afterwards. The problem is that, when you call setData, it resets the caret to the beginning of the editor. This is understandable if…
user1082754
8
votes
4 answers

Qt rich text editor - is there an already-made one?

I need a rich text editor for Qt. I've been thinking about using QTextEdit since it's a rich text edit, but I need two things that aren't present in that widget: The user should be able to change the text color, the text font, underline, bold,…
Johnny Pauling
  • 10,391
  • 14
  • 57
  • 104
7
votes
3 answers

How to highlight friends name in Facebook status update box (textarea)?

In Facebook status update box, when I type @ and start typing and choose a name, say Steven Gerrard, from the friends list suggested by fb, my friend's name is highlighted in the textarea like this I checked with Firebug and there's only a…
clu3
  • 782
  • 2
  • 7
  • 10
7
votes
5 answers

Rich HTML editor in WPF

I'm working on a WPF application where we need some rich HTML editing features. The application will typically generate some intitial HTML (tables and such) and present to the user, which in turn could edit before submitting the HTML back to the…
Olav Haugen
  • 1,301
  • 2
  • 11
  • 20
7
votes
1 answer

Rendering HTML page in CKEditor 5

Problem statement: I recently updated from CKEditor 4 to CKEditor 5 and facing an issue with rendering Html page. I found that when I provide HTML content to CKEditor 5, it removes all the styling and render as plain HTML. I went through some…
7
votes
2 answers

How do I style ul/ols to be able to flexibly wrap around float-ed content?

I have what I feel like should be a relatively straightforward set of constraints that I can't seem to find a solution to. I'm trying to build a set of WYSIWYG component stylings that will work flexibly together, and can't get a combination of…
Daniel Thompson
  • 498
  • 2
  • 8
1
2
3
62 63