tinymce

How do I make tinyMCE editor stay in my jQgrid textarea formedit form after first initialize?

不打扰是莪最后的温柔 提交于 2019-12-30 07:48:17
问题 I have a jqgrid that I am trying to use tinyMCE in the text area to send/store html in my database and reload to my grid. I have a custom column with tinyMCE for the text area but after I open editform once and close it next time it is opened tinymce does not initialize and a regular textarea appears. (Also when url modal it looses focus and focuses on editform. The text is pasted to the back "Project" field instead(picture below).)What I'm I doing wrong? Reason why my TineMCE "Links" was

How to add a new font in tinymce editor?

安稳与你 提交于 2019-12-30 05:46:09
问题 I want to add new font in tinymce editor which are display in font dropdown and apply to editor text. I try to add ttf font in fonts folder of advance themes skin folder and also add in editor_template.js and add css in contect.css for @font-face. I got font name in fonts dropdown. But when i apply to any text no any font effect on that text. What is actual problem i can't found. Hope this is path issue or other... 回答1: I solved the issue, Check all the possible issues below and fix them to

How do you set the focus of a TinyMCE textarea element?

无人久伴 提交于 2019-12-30 01:39:06
问题 I'm using TinyMCE for a textarea on a page but it doesn't play nice in the tabbing order of the other elements. I can use the following code to capture when I tab out of the first element: $('#title').live('keypress', function (e) { if(e.keyCode == 9) { alert('tabbed out'); } }); How can I set the focus to a TinyMCE editor? 回答1: Finally found an answer... use the command: tinymce.execCommand('mceFocus',false,'id_of_textarea'); For my purposes, 'id_of_texterea' was "description", ie <textarea

Plone 4.3 default editor isn't showing up

雨燕双飞 提交于 2019-12-29 09:13:46
问题 I have a Plone 4.3 site that was a migration from a Plone 2.5 site. It had been working fine, but for some reason the default editor that shows up when editing any page or content item is the straight HTML view. I've tested it in Firefox, Chrome, and Safari — all shows up the same. The drop down menu above the editing box shows these options: I've also tried switching the "Default editor" both in the Site setup > Editing Control Panel and also through the ZMI > portal_properties > site

TinyMCE not working when loading two textareas

蓝咒 提交于 2019-12-29 08:55:43
问题 I have two textareas that I load when the page loads, these two textareas are in the same table row. My tinyMCE looks like this tinyMCE.init({ mode : "textareas", theme : "simple" }); For some odd reason only the first textarea gets assigned the editor and the second does not. Although it only does this in Firefox. The text areas have different names and don't contain ids. Any advice will be appreciated. 回答1: Give them different ids. Tinymce editor id is equal to the textareas id; if no

Unable to get TinyMCE working with jQuery Unobtrusive Validation

微笑、不失礼 提交于 2019-12-28 04:33:06
问题 I've got a form that's using unobtrusive validation and works as expected for all of my fields but once I added TinyMCE (or any other WYSIWYG editor) the textarea it uses gets hidden and is preventing the field from being included in client-side validation. Is there a way I could hook into the validation to include this hidden field, or maybe a different way to hide the textarea so it gets validated before the post back? 回答1: I had the same issue this week. Ended up solving it with this: //

How to automatic resize tinyMCE?

时间秒杀一切 提交于 2019-12-28 03:48:09
问题 I have a TinyMCE that is set over a TextArea, and I want this editor area to ocuppy all the space of its parent div, all times. I have a JS function that get the current space and set the textarea.style.height to it, but when I enables TinyMCE it seems to stop working. Also, the textarea has width: 100%; it doesn't resize by HTML rendering when it's using TinyMCE too. Any ideas? 回答1: Nowadays, you should use the autoresize plugin that comes with tinyMCE. You will have to call tinyMCE like

EXTJS中整合tinymce的富文本编辑器,添加上传图片功能

让人想犯罪 __ 提交于 2019-12-26 12:18:46
提供部分代码。Ext.create('Ext.window.Window', { id: 'wind', title: 'CRUD窗口', modal: true, height: 800, width: 1050, hideMode: 'display', closeAction: 'hide', maximizable: false, layout: { type: 'fit', align: 'left' }, bodyPadding: 0, items: [{ xtype: 'form', layout: 'anchor', autoScroll: true, bodyPadding: 10, defaults: { xtype: 'combo', anchor: '10', labelAlign: 'left' }, items: [{ fieldLabel: '(案件)物证名称', name: 'EName', maxLength: 100, allowBlank: false, queryMode: 'local', valueField: 'EName', displayField: 'EName', listConfig: { maxHeight: 200, }, editable: true, value: '------请选择或输入(案件)物证名称------

Tags Get Removed When Using Codesample Plugin with TinyMCE

落爺英雄遲暮 提交于 2019-12-25 19:02:25
问题 Since 4.3.0 TinyMCE includes Codesample plugin that lets you enter code snippets. This works very well for languages like Java, PHP, C# etc. that are not directly running in the browser. You save your code snippet to the server, load it back into the browser, edit it, and save it back to the server again - no hassle. If you want to do it with HTML, JavaScript, or XML, then it seems not to be possible to load the code snippet back into the browser after saving it to the server. Most of the

SilverStripe 3.6.1 unable to load TinyMCE

时间秒杀一切 提交于 2019-12-25 18:48:16
问题 A fresh installation of SilverStripe is not able to load TinyMCE correctly because the path to some files is not correct, see screenshot: https://www.imgpaste.net/image/Ds9Ve Does anyone know what I'm missing? 回答1: This is caused by gzip compression on the server clashing with the TinyMCE code used by HTMLEditorield . To disable gzip on our HTMLEditorield we can put the following in our config.yml file: HtmlEditorField: use_gzip: false 来源: https://stackoverflow.com/questions/45658301