tinymce

JavaScript source file not loading in IE8 Popup

六眼飞鱼酱① 提交于 2019-12-11 10:37:12
问题 I have an issue where the JavaScript source file is loading in popup for IE6, Chrome, Firefox, Safari and Opera. But the same source file is not loading up in IE8. As a result of this the HTML is not being replaced in the Popup and I am getting an error in IE8 popup saying tinyMCE is not defined I have referred to Formatting this JavaScript Line and solved issue on all browsers except IE8. The JavaScript function is as follows: function openSupportPage() { var features="width=700,height=400

enable flickr and picasa in TinyMCE

只谈情不闲聊 提交于 2019-12-11 10:35:36
问题 My client needs flickr and picasa support in my TinyMCE editor. Has anybody got any advice on plugins which would allow him to do 'standard' embed functions? I know that wordpress supports this, and I'd like to enable it in my own non-wordpress TinyMCE editor in a similar way. Also, I'm using HTMLPurifier on the server to sanitise any input. I've enabled safe iframe embedding, so can support that, but other types of embed may need some extra work on HTMLPurifier. What are the standard ways of

TinyMCE: Generate dynamic listbox options list

南笙酒味 提交于 2019-12-11 10:15:58
问题 I'm developping a plugin for TinyMCE and I want to have a listbox on which the user can select an option to insert in the editor. This option list is not always the same, it depends on actions made on the website. The values are stored in an array that I successfully pass to the plugin. I process the array to format it as an options list: Object.keys(variablesArray).forEach(function (key) { parametersText = parametersText + "{text: '" + variablesArray[key] + "', value: '{{" + key + "}}'},"; }

tinyMCE adding p tags and nbsp automatically

≯℡__Kan透↙ 提交于 2019-12-11 09:56:06
问题 I am creating a CMS whereby users can edit html pages stored on the server using tinyMCE. The source text is loaded into the editor my C# codebehind file by placing it into a text area. When I place a breakpoint here I can see that the source html has not been altered by the C# code. When the text appears in the editor though it automatically adds <p> tags with non-breaking spaces between them to the top of the document creating larger and larger spacing each time it's saved, even though I

angular-ui/ui-tinymce setup method in tinymceOptions breaks model binding

…衆ロ難τιáo~ 提交于 2019-12-11 09:37:48
问题 I want to add a custom button to the tinymce toolbar, and added a setup function to tinymceOptions as discribed in the docs: $scope.tinymceOptions = { setup: function (editor) { editor.addButton('myMethod', { //myCode } }, //more options } <textarea ui-tinymce="tinymceOptions" ng-model="model.content"></textarea> Adding the setup function breaks the binding with the model. Content added to the editor is not synched to the model and vice-versa. Are there known issues with this approach?

Unrecognized Character Between Empty P Tags TinyMCE

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 09:26:42
问题 What character does tinyMCE put in between empty p tags. I have the following empty p tags: <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> <p> </p> Which I'd like to remove... but they are not recognized by str_replace or preg_replace. The best I could do to track down the issue, is the space between the tags. In other words I can remove the <p> by itself or the </p> ... but when I try searching for <p> </p> it doesn't find it. Tried   or I found many solutions online but NONE work. It seems

TinyMCE and jquery.colorbox

眉间皱痕 提交于 2019-12-11 09:06:33
问题 I have TinyMCE opening in jquery.colorbox, everything is working, all the icons are clickable and I can update the textarea via the HTML icon but I can’t click into the actual editor box! If I open TinyMCE outside Colorbox everything works fine. Has anyone come across this before and if so how can I fix it? Latest Edit, not getting any loving here! I just worked out that this actually almost works perfectly in IE. In Chrome and FF I can’t type into the box but in IE I can, BUT only if I hit

Add attributes to Insert Image dialogue of Umbraco RTE or Create Custom Data type

谁说我不能喝 提交于 2019-12-11 08:23:57
问题 How can I add attributes to the current Insert Image dialogue box on umbraco Richtext Editor? What I really want is to let content editor choose images and set their class, and maybe choose if this is lightbox image or not. If user choose lighbox option, then a hyper link is added with some extra attributes, like data-rel. I even want to be able to modify the image url added by the content editor, if possible. The output should look like this <a href="/media/2813/DSC_2615.JPG" data-rel=

cross domain tinymcePopup (Result of expression 'tinymce' [undefined] is not an object.)

依然范特西╮ 提交于 2019-12-11 08:16:48
问题 I have an AIR application which has tinyMCE js into it. I have added a button on tinyMCE toolbar , upon click of which an inlinepopup window appear. this inline popup loads an url var aa=tinyMCE.activeEditor.windowManager.open({ url : 'http://localhost/Save.html', width : 520, height : 340, resizable : "yes", inline : true, close_previous : "yes" }); Save.html code: <script src="http://www.wiris.net/demo/editor/editor"></script> <script src="http://code.jquery.com/jquery-latest.js"></script>

Character limit in TinyMCE is not working

醉酒当歌 提交于 2019-12-11 07:29:13
问题 i have implemented character limit from http://sourceforge.net/tracker/?func=add&group_id=103281&atid=738747 i have given maxlength of 10 chars.when i am going to insert 11 char its inserting blank space. as i have also implemented how many chars are inserted. so it showing 11 chars in statusbar of TinyMCE. please provide some solution for this or any alternate solution for character limit in TinyMCE. 回答1: You could write your own plugin and check for onkey events and paste. Then you could