tinymce

tinymce autoresize with chrome when readonly

青春壹個敷衍的年華 提交于 2019-12-20 05:21:24
问题 Hi guys i tried the full day, but i did not get it. I use the tinymce editor and in all browsers it works fine, except in * * chrome. I use the autoresize in readonly mode and i always have the problem that in chrome the editor iframe is ~20px to small, so that often text is missing. I am not the jquery or javascript crack and did not find a solution for it. There is a row where it is setting the style h.setStyle(h.get(a.id + "_ifr"), "height", k + "px"); but when i would add +20 i have the

tinymce autoresize with chrome when readonly

浪尽此生 提交于 2019-12-20 05:21:13
问题 Hi guys i tried the full day, but i did not get it. I use the tinymce editor and in all browsers it works fine, except in * * chrome. I use the autoresize in readonly mode and i always have the problem that in chrome the editor iframe is ~20px to small, so that often text is missing. I am not the jquery or javascript crack and did not find a solution for it. There is a row where it is setting the style h.setStyle(h.get(a.id + "_ifr"), "height", k + "px"); but when i would add +20 i have the

Radio buttons acts as Check-box in TinyMce 4

﹥>﹥吖頭↗ 提交于 2019-12-20 05:04:58
问题 Here's the fiddle, the type is radio but acts like check-box {type: 'radio', name: 'letter', label: 'Letter'}, {type: 'radio', name: 'custom', label: 'Custom'}, I tried using them under one name that didn't work out, and my 2nd question: how to make one of them as default(as selected). Keep Smiling :) 回答1: It seems like the tinymce/ui/Radio class is not implemented yet. It act like a tinymce/ui/Checkbox . You can use the tinymce/ui/ListBox class as a workaround. 回答2: for the 2nd question:

Radio buttons acts as Check-box in TinyMce 4

怎甘沉沦 提交于 2019-12-20 05:03:03
问题 Here's the fiddle, the type is radio but acts like check-box {type: 'radio', name: 'letter', label: 'Letter'}, {type: 'radio', name: 'custom', label: 'Custom'}, I tried using them under one name that didn't work out, and my 2nd question: how to make one of them as default(as selected). Keep Smiling :) 回答1: It seems like the tinymce/ui/Radio class is not implemented yet. It act like a tinymce/ui/Checkbox . You can use the tinymce/ui/ListBox class as a workaround. 回答2: for the 2nd question:

Save formatted text to database and retrieve it back 'as is' like a formatted string

寵の児 提交于 2019-12-20 03:57:08
问题 I am embedding tinymce [http://www.tinymce.com/] in twitter bootstrap form , so that user can input formatted text which I can persist to a postgres database. The problem I am facing is that I get plain text on submit of the form. Can someone help me get the formatted text as a string that I can persist and echo to the html page . Here is my code [Note:It uses HAML] %html{:lang => "en"} %head %meta{:charset => "utf-8"} %link{:href => "//netdna.bootstrapcdn.com/twitter-bootstrap/2.2.2/css

tinyMCE editor bar not showing up

笑着哭i 提交于 2019-12-20 03:38:08
问题 I'm running Plone 4.1.4 and when I try to edit a text area that used to display the tinyMCE editor all I get is a dialog box listing a dict of "valid elements". I installed the kupu editor and that works fine, but I prefer tinyMCE. Has anyone run in to this issue? Any help would be greatly appreciated. 回答1: Browser and version? IE 9 has TinyMCE issues, and requires you to use a development release. To get around it I had to install a version from github. If you have mr.developer, use:

tinyMCE - get content up to cursor position

瘦欲@ 提交于 2019-12-20 02:32:10
问题 I am making a little word prediction plugin for tinyMCE and need to extract a bit of text and later insert text from a list of predicted words. The insertion should be no problem, as I know where the cursor is and can use the mceInsertContent command. Getting the text for the prediction however... I need to extract a subset of the text ending at the letter immediately before the cursor position and starting at, well, the start of the text. I can strip HTML tags myself if neccessary, but I

HTML Tags stripped using tinyMCE

拜拜、爱过 提交于 2019-12-19 20:39:34
问题 Latest version of tinyMCE is stripping my embed tags, and javascript when I use it. I tried setting the verify_html flag to false without any luck. Here is my config js for tinyMCE, can anyone see what I am doing wrong? Update : I am positive it is not a server side issue. I used a plain textarea without tinymce loaded and it worked perfectly. It is tinyMCE doing the stripping. tinyMCE.init({ // General options mode: "textareas", theme: "advanced", plugins: safari,pagebreak,style,layer,table

HTML Tags stripped using tinyMCE

﹥>﹥吖頭↗ 提交于 2019-12-19 20:39:11
问题 Latest version of tinyMCE is stripping my embed tags, and javascript when I use it. I tried setting the verify_html flag to false without any luck. Here is my config js for tinyMCE, can anyone see what I am doing wrong? Update : I am positive it is not a server side issue. I used a plain textarea without tinymce loaded and it worked perfectly. It is tinyMCE doing the stripping. tinyMCE.init({ // General options mode: "textareas", theme: "advanced", plugins: safari,pagebreak,style,layer,table

TinyMCE inside hidden div are not displayed as enabled when we put the div visible

不打扰是莪最后的温柔 提交于 2019-12-19 19:31:11
问题 I am having an issue with tinyMCE (WYSIWYG editor). I am actually adding the textarea inside a HTML element like a DIV which is currently having the style attribute "display:none". When I am changing the DIV display style to visible the tinyMCE editor is shown as disabled. Important Note: The setting which is causing the issue is the "auto_resize" option. This is the only option that I turn on/off that make the tinyMCE editor goes in edit or read-only mode. Here's my code: tinyMCE.init({ mode