tinymce

two instances of tinymce mvc c#

北战南征 提交于 2019-12-13 06:27:41
问题 TinyMCE View Template <script src="@Url.Content("~/Scripts/tinymce/tiny_mce.js")" type="text/javascript"></script> <script type="text/javascript"> (function () { tinyMCE.init({ mode: "textareas", //elements: "engRichMCE,araRichMCE", elements: "@ViewData.TemplateInfo.GetFullHtmlFieldName(string.Empty)", theme: "simple", height: "300", width: "400", verify_html: false, theme_simple_resizing: true, content_css: "@Url.Content("~/Content/Site.css")", convert_urls: false }) })(); </script> @Html

Apply tinyMCE settings to dynamicly created textarea

霸气de小男生 提交于 2019-12-13 06:24:20
问题 I create lots of tinymce with django: <script type="text/javascript" src="{{ STATIC_PREFIX }}js/tiny_mce/tiny_mce.js" </script> <script type="text/javascript" src="{{ STATIC_PREFIX }}js/tiny_mce/tiny_init.js" </script> <script type="text/javascript"> tinyMCE.settings = configArray[1]; tinyMCE.execCommand('mceAddControl', true, "tobs"); </script> {% for obs in obss %} <div id="obs"> DateTime:<samp>{{ obs.date }}</samp><br> Description: <br> <textarea id="tobs" class="ro">{{ obs.description }}<

Wordpress change functionality of TinyMCE button U (underline)

天大地大妈咪最大 提交于 2019-12-13 05:53:36
问题 does anybody know how to change functionality of button in wordpress content textarea? There is a "u" button (underline) which makes text <span style="text-decoration-line: underline;">text underlined</span> what I need is change functionality of this button to put in content: <u>text underlined</u> Can someone help? 回答1: You can get this formatting once you define the underline format in the init method. HTML <form> <textarea id='instance1'></textarea> </form> <button id='get'>Test</button>

Disabling some buttons from wp_editor

徘徊边缘 提交于 2019-12-13 05:18:56
问题 I use tinyMce editor in meta boxes of Wordpress by the following line of code, I want to remove some buttons when I use there. I don't want to affect the main editor. I know how to remove some buttons, which is told here. My question is, is it possible to disable some buttons (e.g. more) when I call editor with wp_editor. I checked its manual, arguments doesn't seem to support this. wp_editor( $careers_settings["description"], "editor", array("media_buttons"=>FALSE, "textarea_name"=>

interface disappears when TinyMCE is added to module

荒凉一梦 提交于 2019-12-13 05:05:11
问题 So I'm working on an Angular-fullstack project where I'm trying to add ui-TinyMCE to my project. However when I change angular.module('academiaUnitateApp') .controller('NewEntryCtrl', function ($http, $scope, $stateParams, entryService, Auth) { $scope.entry = {}; }); into angular.module('academiaUnitateApp', ['ui-tinymce']) .controller('NewEntryCtrl', function ($http, $scope, $stateParams, entryService, Auth) { $scope.entry = {}; $scope.tinymceOptions = {}; }); my interface changes from into

TinyMCE formatted text in MySQL database

拜拜、爱过 提交于 2019-12-13 04:07:13
问题 I have been searching for an answer for this for quite some time now, and I haven't been able to find a logical one yet. I want to use TinyMCE to allow users to post formatted blogs. I don't want to force the user to use HTML tags in the textarea to put a new paragraph, they should just be able to hit the return key to get a new line, push a button to get bolded text, etc... My question is, if I am storing these blog posts in a mysql database, how can I preserve the formatting in the database

Issues with files loading based on path

隐身守侯 提交于 2019-12-13 03:54:03
问题 I'm using rails 2, and in one of the plugin I'm working on, I found this weird issue, I've TinyMce 4 customized text editor. I've loaded the script at the beginning of the page, in the new form. <script type="text/javascript" src="../tinymce/tinymce.min.js"></script> TinyMce loads normally, and works completely fine. In case of edit form the same script tag above doesn't work, I've move up 1 level to load it, I mean <script type="text/javascript" src="../../tinymce/tinymce.min.js"></script>

jquery Bind a iframe (tinymce)

时光总嘲笑我的痴心妄想 提交于 2019-12-13 03:35:21
问题 I can bind eventsin the current window, but I'm using TinyMCE which creates an iframe, and I want to be able to set a keybind to the iframe window to capture a control-S I have: $(window.child).keydown(function(e) { if(!args) args=[]; // IE barks when args is null if(e.keyCode == key.charCodeAt(0) && e.metaKey) { callback.apply(this, args); return false; } }); But that isn't working. Ideas? Thanks 回答1: It's at first a problem of timing, when to access the iframe. If you bind it somewhere

UTF-8 issues with tinymce?

与世无争的帅哥 提交于 2019-12-13 02:35:13
问题 I am experiencing some issues with curly quotes and apostrophes when pasting from a word document into tincymce hmtl editor, for some reason it converts these characters into Â, ’ etc. Things I have checked: Firstly I have ensured all the html pages all have the correct content type tag declared: <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> Additionally, when var_dumping the output into the browser the characters display correctly which lead me into thinking that

Sharing TinyMCE plugin across multiple applications

匆匆过客 提交于 2019-12-13 02:31:53
问题 I'm using CakePHP 2.4.7 and the TinyMCE plugin from CakeDC. I set up my CakePHP core along with the plugin in a shared location on my server so that multiple applications can access it. This keeps me from having to update multiple copies of TinyMCE. Everything was working well until I migrated to a new server and updated software. The new server is running Apache 2.4 instead of 2.2 and using mod_ruid2 instead of suexec. I now get this error when trying to load the editor: Fatal Error (4):