tinymce

TinyMCE push down submenus using fixed_toolbar_container

别等时光非礼了梦想. 提交于 2019-12-24 13:24:09
问题 I'm using the developer version of TinyMCE version 4.1.5 and I'm having problems with the submenus when using fixed_toolbar_container. The submenus are being pushed down at the bottom of the page. What should I do so that it would appear as if they're in the same container even if the divs generated for the submenus are appended at the end of the page. Here's a screenshot and I've highlighted the part where the submenus appear: http://i61.tinypic.com/vdq2iu.png 来源: https://stackoverflow.com

Vertical Scrolling Sync For 2 Divs

自古美人都是妖i 提交于 2019-12-24 12:12:25
问题 I am trying to sync the vertical scrolls of 2 divs; One is TinyMCE editor's body, and the other one is dynamically created preview div. The preview looks like this: For the preview div, I managed to get the % of the scroll by using: setup : function(ed) { ed.on('init', function() { $('.editorContainer > .mce-tinymce > .mce-container-body').children().eq(2).on('scroll', function () { var tmceBody = ed.getBody(); console.log("this offsetHeight: " + this.offsetHeight); // 501 console.log("this

Getting wiki output from TinyMCE/CKEditor (for Trac plugin)

二次信任 提交于 2019-12-24 10:35:46
问题 I'm working for a company that uses Trac. Problem is, no one likes Trac's wiki-editor, and the wysiwyg plugin isn't as good as we'd like. To solve this, we've decided to create our own Trac wysiwyg plugin (hopefully, I'll be allowed to Opensource it.) The plan right now is to use either TinyMCE or CKEditor as they wysiwyg editor. Problem is, their output is html. Ideally, we'd like their output to be native trac-wiki code. My question: Is there any way of getting TinyMCE or CKEditor to output

Why don't the list and code buttons appear in my editor?

≯℡__Kan透↙ 提交于 2019-12-24 09:48:12
问题 I've followed the docs to set up a TinyMCE component in my Angular project. Got the editors showing up but am running into two snags (so far): I can't seem to get list formatting buttons to appear. I've tried using advlist by importing tinymce/plugins/advlist and adding them to plugins: ['link', 'table', 'advlist'] , but I'm not seeing any change to the editor. I'm also trying to find where to turn on the code editing button. Using TinyMCE 4.5.6, angular-cli1.0.0-rc.0. 回答1: Loading the

Cross-browser compatible select all TinyMCE text after initialization

只愿长相守 提交于 2019-12-24 08:57:46
问题 This is the code from this question: How to use TinyMCE functions on text without actually selecting that text? - could we just have a browser/platform-compatible version of it? tinyMCE.init({ ... setup : function(ed) { ed.onInit.add(function(ed, evt) { ed.getBody().setAttribute('contenteditable', false); var range = ed.selection.dom.createRng(); range.setStartBefore(ed.getBody().firstChild); range.setEndAfter(ed.getBody().lastChild); ed.selection.setRng(range); }); } }); It works on my

django-tinymce modern theme

廉价感情. 提交于 2019-12-24 08:34:51
问题 I'm having issues getting the modern theme to work with django-tinymce. Both the simple and the advanced themes render correctly, but when I switch to the modern theme nothing renders and I get a 404 error for /static/tiny_mce/themes/modern/editor_template.js in the console I am attempting to do all of this in the django admin. The error is coming from /static/tiny_mce/tiny_mce.js which is interesting because I don't have anything installed in that directory. I'm using /static/js/tinymce as

How do I make textarea a TinyMCE in Joomla?

守給你的承諾、 提交于 2019-12-24 08:23:45
问题 I have a component and I want to make a textarea on the admin backend interface use the TinyMCE editor: How do I reference the TinyMCE that is being used by other components (instead of duplicating it) 2.) How do I hook into the page init or some place where I can let TinyMCE do it's magic (of if Joomla provides a way) Thanks 回答1: Looks like all I had to do was get an instance of JEditor and use this to render my textarea: <?php echo $this->editor->display('name_of_your_field', 'predefined

Wordpress Admin Editor

寵の児 提交于 2019-12-24 07:23:09
问题 I want to enable multiple <br /> tags in the back office editor as user press [SHIFT + ENTER] . Like Gmail Editor. Otherwise, I need to disable line breaks on [SHIFT + ENTER] and it should just add <p> a tag like normal enter, I know <br /> could not be added then. But this is for Chinese website. So they do not mind line breaks. I tried Disable wpautop plugin - But existing articles are affecting TinyMCE advanced - does not meet the above requirements Advanced TinyMCE config - force_br_lines

Preserve content within iframe after drag and drop - TinyMCE

只谈情不闲聊 提交于 2019-12-24 05:44:10
问题 I am trying to work TinyMCE into a large professional project I am working on. In one spot we need to have multiple instances in table rows that are draggable. However, when you begin dragging one of the rows the content that is in the TinyMCE iFrame (whether it was loaded with the page or altered by the user) disappears. Once you drop the row the content is still gone but re-appears upon page refresh/reload. Is there a way to get the TinyMCE iFrame to preserve its content without needing to

TinyMCE - Adding Event Listeners Issue

核能气质少年 提交于 2019-12-24 05:32:24
问题 I'm stuck on understanding how to setup event handlers for my tinymce editors. This post may get long, so my apologies. I'm reading up on this post, which is exactly what I want to do: I may be instantiating my TinyMCE editor instances in a way that is confusing me with extending it's power. On my sites, I mostly have my editors doing the most simple, bare-bones work. And now I'm on a page that I want to reflect onkeyup changes to be displayed in <div id="displayHtml"> (similar to what SOF is