tinymce

tinymce and Jquery UI dialog working nicely

笑着哭i 提交于 2019-12-25 04:33:43
问题 I'm having some problems with Jquery UI Dialog and TinyMCE. Passing data to a text area works well with UI Dialog and Jquery. So setting data in text area like this works fine: $("#MessageDialog #messageDto_Body").val(messagedata.Body); $("#MessageDialog").dialog("open"); When I attach a tinyMCE editor to the text area it correctly adds the editor (and without the UI window the content of the text area is preserved): tinyMCE.execCommand('mceAddControl', false, 'messageDto.Body'); With UI

TinyMCE with Codeigniter

*爱你&永不变心* 提交于 2019-12-25 04:07:10
问题 I am hoping the second text editor is without tinymce but the tinymce is still appearing how to delete it? <!DOCTYPE html> <html> <head> <script src="<?php echo site_url('assets/tinymce/js/tinymce/tinymce.min.js'); ?>"></script> <!-- <script>tinymce.init({ selector:'textarea' });</script> --> <script> tinymce.init({ selector: 'textarea', height: 200, width: 600, menubar: false, plugins: [ 'advlist autolink lists link image charmap print preview anchor', 'searchreplace visualblocks code

TinyMCE with CDN on Contao 3.x

强颜欢笑 提交于 2019-12-25 03:40:46
问题 I have a Contao 3.x website where I use CDN for the assets. The problem that gives rise to on the backend is that TinyMCE does not work anymore. I read that there is a different cdn js for loading TinyMCE with CDN, but on a Contao (or probably the same with any other CMS using TinyMCE), and especially the backend, something like that is auto configured by the system. I could try to make a core change inserting a script tag on the template, but that is not optimal at all and not what I am

Tried to use TinyMce in cakephp but it is not working

混江龙づ霸主 提交于 2019-12-25 01:36:50
问题 I tried to use the TinyMce plugin in cakephp but the editor is not loading but the helpers are. Even after extracting the files to the plugins folder and adding the codes in bootstrap.php file its not working. Helper: <?php App::uses('AppHelper', 'View/Helper'); class TinymceHelper extends AppHelper { // Take advantage of other helpers public $helpers = array('Js', 'Html', 'Form'); // Check if the tiny_mce.js file has been added or not public $_script = false; /** * Adds the tiny_mce.js file

multiple tinymce textareas excluding first

你说的曾经没有我的故事 提交于 2019-12-25 01:34:10
问题 How do we use tinymce in a class used multiple times, except the first time ? I was looking at multiple tinymce textareas but could not find fully as what I wanted. I have .wp-editor-area used multiple times, but do not want the mce in the first instance. I had used : <script> tinymce.init({ selector: ".wp-editor-area" }) </script> 回答1: Effectively you cannot "skip" any elements that match the selector's value - there is no configuration to do that. Can you add a second class? Do the

Sending value to a page using AJAX, form action does not work

穿精又带淫゛_ 提交于 2019-12-25 00:20:53
问题 Good day, I am trying to send data to a page using AJAX, I used ajax because I need the html content of a text area (I used tiny mce plugin text editor), I want to pass the value of the text area and then load it to the page. But then I inspect it and gone to the network XHR, i found out that the page sent the ajax data but its not redirecting to the other page and also my input which has a name of 'title' didn't send the data to the page. Any idea how to fix this? here's my code. Thanks for

jQuery - Select element inside tinyMCE WYSIWYG

大憨熊 提交于 2019-12-24 17:57:39
问题 I have a site with some WYSIWYG-fields (using TinyMCE with Wordpress & Advanced Custom Fields). I want to select and manipulate some elements inside these fields (add a background image) but I'm not sure how to do that. How can I reach inside TinyMCE's iFrame and modify elements? How can I make sure all WYSIWYG-fields are properly loaded before I select them? I'm looking at TinyMCE 4 API, and I still have no clue. 回答1: How can I reach inside TinyMCE's iFrame and modify elements? You can

disable TinyMCE text editor via Jquery

时光毁灭记忆、已成空白 提交于 2019-12-24 17:14:09
问题 I ahave multiple Tiny MCE editors which I am trying to disable editing on. I have tried multiple variations of: if(@Model.hasRegular.ToString().ToLower()) { tinymce.get('#rte').getBody().setAttribute('contenteditable', false); } if(@Model.hasSmall.ToString().ToLower()) { tinymce.get('#rteSmall').getBody().setAttribute('contenteditable', false); } if(@Model.isOneSize.ToString().ToLower()) { tinymce.get('#rteOneSize').getBody().setAttribute('contenteditable', false); } with my editors all

How to set focus on rich-text-field, in edit-mode of a contenttype?

那年仲夏 提交于 2019-12-24 16:57:55
问题 I'd like to initially set the focus onto the text-field of an item when editing it, but cannot overcome TinymMCE'S iframe kickin' in. When disableling TinyMCE, everything works as expected, the text-field is focusable. I tried simulating a click in TinyMCE's body-element, no luck either. Is it possible at all, to focus the body-field via JS? This is what I tried so far: (function($) { $(document).ready(function() { $('#text').focus() // Only works, when TinyMCE is disabled. $('body#content')

Joomla TinyMCE deletes empty span

穿精又带淫゛_ 提交于 2019-12-24 15:16:18
问题 I want to use following tag <h4><span class="icon-phone"></span></h4> but TinyMCE from Joomla always deletes it, when i save it. I find the solution that i have to add span[*] to "Extended Valid Elements" in Options from TinyMCE in PluginManager. but it doesn't work. It always delete it again and again. I searched here for a while and found some articles which was similar to my problem but doesn't solve it. I use Joomla Version 3.3.6 and the plugin is 4.1.2. Hope somebody can help. Best