Questions tagged [tinymce-3]

TinyMCE is a powerful WYSIWYG editor control for web browsers such as MSIE or Mozilla that enables the user to edit HTML content in a more user friendly way.

TinyMCE is a powerful WYSIWYG editor control for web browsers such as MSIE or Mozilla that enables the user to edit HTML content in a more user friendly way. The editor control is very flexible and is built for integration purposes (usage within systems like intranets, content management systems (CMS), and learning management systems (LMS), for example).

TinyMCE is developed by Moxiecode Systems AB and is currently released under the LGPL License. Read the license agreement for details.

58 questions
8
votes
1 answer

What should I do with tinyMCE when replacing sections of the DOM using ajaxSubmit?

On a multi-tab page, some tabs submit process changes the content of other tabs through an ajaxSubmit. If the other tab contains active tinyMCE edits what should I do to that tab before replacing it's content and what should I do (if anything) after…
OldCurmudgeon
  • 64,482
  • 16
  • 119
  • 213
7
votes
2 answers

TinyMCE onPaste doesn't set content, paste with context menu doesn't trigger change event

I have two related questions regarding TinyMCE (v. 3.5.11) default paste functionality: Why isn't the text available on paste? After pasting text into the editor, the content is visible in the editor, but not available via the .getContent() method.…
gfullam
  • 11,531
  • 5
  • 50
  • 64
7
votes
2 answers

TypeError: window.tinyMCE.execInstanceCommand is not a function

I can't add any shortcode in my wordpress editor. it shows - Uncaught TypeError: Object [object Object] has no method 'execInstanceCommand' . plesase help me to solve this. the code(tinymce.js) function init() { …
6
votes
1 answer

Counter for TinyMCE is not working as expected

I know there are so many solutions out there but cannot get right solution. I have written code for customized counter in tinyMCE version 3 which has maxlength attribute which is not working. I want to stop giving more text when counter reaches to…
Juke
  • 1,306
  • 2
  • 11
  • 27
4
votes
1 answer

Tiny Mce Two way Binding with Angular 2/4

This is my tinymce.component.ts import { Component, OnDestroy, AfterViewInit, EventEmitter, Input, Output } from '@angular/core'; @Component({ selector: 'simple-tiny', template: `` }) export…
atul mishra
  • 253
  • 1
  • 6
  • 20
4
votes
1 answer

TinyMCE: Move cursor to end of inserted text

I have insert a line break within TinyMCE tinyMCE.execCommand('mceInsertContent',false, "
"); However the cursor currently stays where it was before.. which makes sense, however I would like code which moves the cursor the end of the html I just…
bananabreadbob
  • 369
  • 2
  • 10
  • 26
3
votes
1 answer

Wordpress 4.4 TinyMCE javascript error Deprecated TinyMCE API call: .onPaste.add(..)

I am using Wordpress 4.3 or sometimes 4.4 but every time i include editor in front user page it gives me error in console deprecated TinyMCE API call: .onPaste.add(..) help me thanks
vivek.vvs
  • 29
  • 1
  • 6
3
votes
2 answers

Force TinyMCE to strip out data- attributes

I'm using the TinyMCE plugin and have the valid_elements option is set to: "a[href|target:_blank],strong/b,em/i,br,p,ul,ol,li" Even though data- attributes aren't listed, TinyMCE doesn't strip them out. It seems to strip out all other non-listed…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
3
votes
1 answer

Getting wordcount when using tinymce

I am using tinymce editor on the textarea. I am able to initialize the text editor but I now want to get the wordcount in the text editor on key press. Is there a easy way of getting the wordcount using the tiny mce when the user types the words.
user3230561
  • 445
  • 1
  • 10
  • 21
3
votes
1 answer

Getting start and end of selected text from tinyMCE

I have configured the tinyMCE editor with a custom context menu. When I right-click on any word in the editor, the chosen word gets highlighted. I am able to get the selected text with editor.selection.getContent(). How do I get the start and end…
Sriram
  • 10,298
  • 21
  • 83
  • 136
2
votes
0 answers

How do I remove and add a tinyMCE editor from the page and add it again with the same ID, more than once?

I have a html table where I show one instance of tinyMCE editor in a cell, one at a time. Meaning, the user sees one tinyMCE editor in a cell at a time and when they press tab, the editor is deleted from the current cell (value from the editor is…
user21861
  • 21
  • 1
2
votes
1 answer

Replace specific dom element with new content

I have a structure like this:
Some content
Maybe some other content
I defined a custom plugin for editing this section. And I return the new html content to replace the div.foo. I set the…
GhitaB
  • 3,275
  • 3
  • 33
  • 62
2
votes
1 answer

how to add a plugin to tinymce 3.x editor after init (dynamically)?

Is there a way to add a plugin to a tinymce editor on demand? Meaning, after the page loads, tinymce editor has been initialized etc? Say, on click of a button?
user187809
  • 706
  • 2
  • 8
  • 23
2
votes
0 answers

check if an image is drop in TinyMCE Editor or a div of TinyMCE

Is it some how possible to detect a change in TinyMCE ?? I am adding images in TinyMCE by Drag n Drop. I have implement a functionality with Javascript to change the image URL in the process of Drag n Drop. But in IE getData('text/html') does not…
Kamran
  • 4,010
  • 14
  • 60
  • 112
2
votes
1 answer

How to customize tineMCE H tags in Magento

For the CMS page editor in Magento,i would like to change the formatting of the H tags in the tinyMce editor. I would like something like for H1 tag, it is in red, bold, font:36px. how would i go about to achieve this. function init(){ …
Margue
  • 43
  • 6
1
2 3 4