FAQ Database Discussion Community


Reportlab Unordered List not showing bullets

python,tinymce,pdf-generation,reportlab,rml
Whenever users input unordered lists using TinyMCE and it will look like this under source code <ul> <li>item 1</li> <li>item 2</li> <li>item 3</li></ul> When it renders to PDF using reportlab, it shows up without bullets all on the same line like this: item 1 item 2 item 3 Below is...

TinyMCE appends links to the current URL

javascript,tinymce
I'm running into this weird issue with TinyMCE where selecting a text and adding a link to it without "http://" will cause the new link to append to the current URL. Example (assume my website is www.example.com): Now under my settings "click" will link to "www.example.com/linkexample.com". I need it to...

Skipping tinymce image-upload modal

ruby-on-rails,tinymce,tinymce-4
I'm using the tinymce-rails gem and the tinymce-rails-imageupload gem for image uploads in an editor. I've looked around and cannot find a way to change the default upload process. Instead of clicking the image button in the toolbar and getting a modal-popup to upload an image and add a caption,...

tinymce pagebreak unclosed div

javascript,php,html,tinymce
I use tinymce pagebreak to seperate content and in php side I want to show just second part after pagebreak: $str = '<div> <p dir="rtl" style="text-align: justify;"><span style="font-size:medium;"><!-- pagebreak --></span></p><p>fdsfsdf f sf f s</p></div>' $arr = explode("<!-- pagebreak -->", $str); and when I want to just use echo $arr[0] or...

Line break not woking with Wordpress TinyMCE Advanced

php,wordpress,tinymce
I have a word document, with all my posts already write on it. So I just have to copy/paste all these posts on my tinyMCE advanced Editor in my Wordpress 4.1 The only problem is that it doesn't take care about line break when I echo them in my blog...

How do you make changes from a new windowManager window?

javascript,tinymce,tinymce-4
I'm fairly new to JavaScript, so I'm learning as I'm doing things. On my internship I was asked to adjust a WYSIWYG html editor so it can be used with e-mails. I'm using placeholders to later be replaced by the user. My question: How do I detect the input in...

symfony 2.5 content editable web page and save

php,mysql,tinymce,twig,symfony-2.5
I am working on a project using symfony 2.5 It should be able to have a webpage that is editable text, bg color, bg image, and images etc. I use tinymce for inline editing. my question is how should I save these web pages to the database. I am going...

tinyMCE (phplist plugin) fullscreen mode not displaying in full width

php,tinymce
I installed TinyMCE for my phplist but the fullscreen mode is not displaying in full width I saw this line of code <div id="mce_32" class="mce-tinymce mce-container mce-panel mce-fullscreen" hidefocus="1" tabindex="-1" style="visibility: hidden; border-width: 1px; width: 600px;"> The editor window only has 600px width. I changed it with 100% directly in...

Show/hide tinymce with radio buttons

c#,asp.net,asp.net-mvc,tinymce
I try to show/hide a tinymce with radobutton. Like yes/no. So there are two radio buttons. yes - will show the tiny mce and no will hide the tinymce. I have this: showing tiny mce: <div class="form-group"> @Html.Label(Resources.Entity.Product.PdfMessage, new { @class = "text-bold control-label col-md-2" }) <div class="col-lg-6 col-md-8 col-sm-10...

Obtaining the “default” mockup TinyMCE configuration on Plone 5

tinymce,plone,plone-5.x
I'm trying to configure TinyMCE inside Plone 5 template (so: not the z3c.form widget type). Using the TinyMCE Mockup patter you quickly learn how to display a rudimentary TinyMCE configuration (without any i18n support). But how I can get the "default" configuration applied to TinyMCE when it's loaded for default...

JQuery + TinyMCE = TypeError: validator is undefined

jquery,validation,tinymce,undefined
StackOverflow! This is my first question here, so be gentle! ;) I have searched SO from top to bottom but could not find a solution for "TypeError: validator is undefined" in my code below. The only thing I found was this Q&A: jQuery validation plugin error: TypeError: validator is undefined...

Display TinyMCE editor to textareas after Jquery .load onclick

jquery,html,tinymce
I am trying to add a TinyMCE WYSIWYG editor to my textareas. I have a table with a td that the user can click to .load a form with input fields, labels, textareas etc. My td looks like this: <a href="#" id="display_info" onclick="displayFacilityInformation(61)">Something</a> displayFacilityInformation() looks like this: function displayFacilityInformation (facID){...

Where do we add the custom format in TinyMCE

tinymce,joomla3.0,custom-formatting
So I want to add some custom formats in the TinyMCE editor for Joomla. I am a novice and this might sound like a stupid question, but where is the init function where I add these custom formats. I have read through the following link http://www.tinymce.com/tryit/custom_formats.php I do understand that...

Permission denied when implementing JavaScript within an iframe from the parent page

javascript,jquery,iframe,https,tinymce
I am trying to implement JavaScript within an iframe from the parent page. I read Invoking JavaScript code in an iframe from the parent page, however, get the following error. Error: Permission denied to access property "showIt" document.getElementById('targetFrame').contentWindow.showIt(); I've tried implementing this both on jsfiddle as well as my server...

What can cause Sprockets::CachedEnvironment error?

javascript,ruby-on-rails-4,tinymce,erb,centos6
My RoR application falls down with the following error: ActionView::Template::Error (undefined method `attributes_for' for Sprockets::CachedEnvironment:0x00000005baf3d8 As I found out this error happens when the javascript in the html.erb template is rendering. Also I noticed that in all templates where it happens exists tinyMCE initialization command. I suppose, that it is...

How can I change color of tinymce background onchange using query

javascript,jquery,html,css,tinymce
I have a form with various input fields and if they change I want to change the background color I use the following code which does what I need $( document ).ready(function() { $('textarea, input, select').change(function () { $(this).css({ 'background': '#D6FFD6' }); }); }); The problem comes with one of...

Moxiemanager not opening browse window in dialog

tinymce,moxiemanager
I recently upgraded my moxiemanager tinymce plugin to the new 2.0 version. I use the Tinymce wysiwyg (4.1.9) in a jquery dialog popup. Everything seems to be working fine, until I click Upload > Local Machine to upload a new file. It will not open the browse window in any...

protractor tinymce automated tests

angularjs,selenium,tinymce,jasmine,protractor
I'm trying to test AngularJS tinyMCE with protractor and I keep bumping into problems when trying to send content or do any test on the tinyMCE editor. The environment for testing is Selenium with Jasmine2 Currently i have: HTML <textarea id="page-editor" ui-tinymce="tinymceOptions" ng-model="item.description"> </textarea> Test browser.switchTo().frame('page-editor_ifr'); var body = element(by.id('tinymce'));...

Classic ASP Post to MS Access DB - Doesen't Work from Textarea Editor

ms-access,asp-classic,tinymce
I use a textarea modifyed with TinyMCE but when I send the form to New.asp which is my "New Post" page, it simply won't upload the content to the server. That is the error... Microsoft Office Access Database Engine error '80040e14' Syntax error (missing operator) in query expression ''&#60;p&#62;-: CLEANED...

Visual Composer like plugin for TinyMCE [closed]

wordpress,tinymce,wysiwyg
I'm looking for Visual Composer (of Wordpress) like plugin for TinyMCE. Support for rows and columns would be fine. Does anybody know such thing?

How to shim tinymce in webpack?

javascript,node.js,tinymce,webpack,shim
I'm trying to get tinymce recognized by webpack. It sets a property named tinymce on window, so evidently one option is to require() it using syntax like this (described at the bottom of the EXPORTING section of the webpack docs): require("imports?window=>{}!exports?window.XModule!./file.js But in this example, how is ./file.js resolved? I...

Get (altered) textarea content from webBrowser element in C#

c#,windows,forms,tinymce,textarea
I've searched the web for 2 days now and am about to give up on this, but I'm soo close to the final solution... so you're my last hope. ;) I have made a little C# application with Windows Forms GUI that uses a webBrowser element to display an HTML...

Reactjs together with TinyMCE editor code plugin

tinymce,reactjs,tinymce-4
I'm using Reactjs together with the tinyMCE 4.1.10 html editor (together with the code plugin) and bootsrap css + js elements. A fairly working setup after a few quirks with the editor have been removed (manual destruction if the parent element unmounts) Now the question: The textarea input of the...

How to add tinymce 4.x dynamically to textarea?

javascript,jquery,html,tinymce,tinymce-4
I have a little problem with adding tinymce dynamically to textarea after init. tinymce.init({ selector: "textarea", theme: "modern", height: 100, plugins: [ "advlist autolink image lists charmap print preview hr anchor pagebreak spellchecker", "link searchreplace wordcount visualblocks visualchars code fullscreen insertdatetime media nonbreaking", "save table contextmenu directionality emoticons template paste...

I'd like to add a table style, like the ones that appear in the tinyMCE style combo box, not the table properties box

tinymce,plone
When you go through the choices for the tinyMCE "style..." combo box, there is a section for styling tables, cells and rows. How can I add another of these? It doesn't seem to match up with the options in TinyMCE settings -> styles. ...

TinyMCE - how to add custom insert template button for each template

javascript,tinymce,zurb-foundation,tinymce-4
For keeping site responsiveness and applying standard grid system (I'm using Zurb Foundation) on custom user data entered on my web application I have defined some templates in tinyMCE to insert custom user data and pages on my web application. But it only includes one button in toolbar which is...

tinyMCE 4.1.9 and Small Window Size Freezes

javascript,php,tinymce
tinyMCE on the smaller screen sizes seem to just completely freeze. This happens on iPads and on a full-desktop using Chrome but with the window resized. I'm not doing anything fancy: <script type="text/javascript"> tinymce.init({ selector: "textarea#tinyMCE", height: 350, toolbar: [ "undo redo | fontselect | fontsizeselect | bullist numlist |...

Post HTML5 using Lemoon CMS

html5,tinymce,lemoon
I am using the Lemoon CMS, and the wysiwyg (tiny_mce) editor is stripping out my HTML5 tags on save. Any way around this? I could possibly inject the HTML on the server side of things, but that completely negates having a CMS in place for that page.

set Content of a TinyMCE textarea via HTML

javascript,jquery,html,tinymce,tinymce-4
To set a content of a TinyMCE textarea we use this code in JavaScript : tinymce.activeEditor.selection.setContent('<strong>Some contents</strong>'); but how can I set the content via html, without JavaScript ?? I tried to use <textarea>Some Contents</textarea> but this is not working. Thanks...

Google transliterate not working inside tinymce editor

javascript,tinymce,transliteration
I tried to integrate google transliteration in to a project where the editor is tinymce. My textarea: <textarea id="to_be_translated" style="width:100%"></textarea> I followed this tutorial for integrating google transliterate and gave my textarea's id to_be_translated to the following line control.makeTransliteratable(['to_be_translated']) and used the following code to implement Tinymce for the above...

Default config of tinymceBundle

symfony2,tinymce
I can't seem to set the default configuration for stfalcon's tinymce bundle. I followed the instructions given here to no avail. This is what I have in my config.yml: stfalcon_tinymce: theme: advanced: plugins: - "advlist autolink lists link image charmap print preview anchor" - "searchreplace visualblocks code fullscreen" - "insertdatetime...

Display Datetime picker on tiny mce plugin

javascript,jquery,jquery-ui,datepicker,tinymce
I am using j-query tinyMce plugin as editor . Everything was going fine . But now i need to add a custom button so that i can insert date from a date picker . What i did is added a button in the toolbar . and its working to show...

Rich text editor (tinymce) images - how to disable auto height and width?

tinymce,umbraco,umbraco7
We're using Umbraco v7.2.1 to serve what is supposed to be responsive content. When you add an image from the media library to the tinymce editor, this is the html that is inserted by tinymce: <img style="width: 500px; height:500px;" src="/media/1007/jobs-block.jpg?width=500&amp;height=500" alt="undefined" rel="1097" /> I really don't want ANY w x...

SilverStripe wysiwyg style constraints

css,tinymce,wysiwyg,silverstripe
Is there any way to prevent certain custom wysiwyg styles to be applied to certain HTML elements? Suppose I have two styles called "red" and "framed". One colours text red and the latter puts a frame around photos. Can I control which styles are available when highlighting text or an...

TinyMCE, gzip and caching

asp.net,webforms,tinymce,gzip,http-caching
I am trying to get TinyMCE, gzip and caching to work correctly but are stuck with the browsers not caching requests to the gzip.ashx handler. My setup: TinyMCE (currently 4.1.7) TinyMCE Compressor (.NET 4.0.1) ASP.NET WebForm application / IIS. This is my code (pretty standard): <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head>...

Silverstripe: How to allow javascript in tinymce?

tinymce,silverstripe
Admins and editors on one of my sites wants to include some javascript embeds like twitter, facebook, instagram or whatever, on pages. I thought it would be really easy to just set the extended_valid_elements to allow the script tag in the html editor of tinyMCE, but it apparently doesn't work....

TinyMCE doesn't work on second init

javascript,jquery,tinymce,tinymce-4
I have a button, which loads a form when clicked, and another cancel button, which removes the form from dom. When the form is inserted, the textarea is initialized with TinyMCE and it works fine. But after I click cancel, and then load the form for the second time, it...

cant focus on tinymce inside colorbox

jquery,tinymce,colorbox
I am creating a tinymce editor inside a colorbox. The first time the colorbox loads up, it works fine. Subsequent times, I can't click or tab to get focus on the tinymce editor. I am using tinymce.EditorManager.execCommand('mceAddEditor', true, 'tbContent'); and tinymce.EditorManager.execCommand('mceRemoveEditor', true, 'tbContent'); to create and remove the editor when...

tinymce - update plugin property after editor initialization

javascript,javascript-events,tinymce,tinymce-4
I need to update the colors list after init (or even on init), the plugins is textcolor. I'm using tinyMCE 4.1.9. How can I do that?

tinymce with mvc no selector name called tinymce-textarea?

javascript,jquery,html,asp.net-mvc,tinymce
I can't seem to get the output that my previous answer is getting for TinyMCE. I am using MVC and my HTML razor-view looks like below. The TextAreaFor is my TinyMCE. When looking at the HTML in the browser I don't see an area for #tinymce-textarea? So I am not...

django: disable tinymce for one certain field

python,django,tinymce,field
I have a lot of models with tinymce(django-tinymce) enabled by default for TextFields and this is ok. But for one field I don't want to apply tinymce widget (in admin interface). Please tell me how do I implement that? class Page(models.Model): one = models.TextField() two = models.TextField() three = models.TextField()...