tinymce

tinymce build script to compress all js files

三世轮回 提交于 2019-12-13 02:13:06
问题 I am looking for a way to compress all tinymce js files into one single file. I would like to use ant, yui-compressor and a build script. There seems to exist something like this already: https://github.com/tinymce/tinymce But i have not been able to make it work. Can anybody with experience give me some assistance? 回答1: Solution from the tinymce forum (Spocke): Install Java. Install ant Add ant to environment variable "path" Open a console cd to the tinymce dir and type "ant build_full" 回答2:

tinymce : Remove css styles from style attribute

帅比萌擦擦* 提交于 2019-12-13 02:04:10
问题 I am trying to configure tinymce to not allow css styles in style attribute. I just want to allow one style which is text-decoration. Here is a similar problem http://tinymce.moxiecode.com/punbb/viewtopic.php?pid=76101 . The valid_styles option is not present and I dont want to use regexp on my content, coz there got to be some or the other option with tinymce. I searched through the tinymce forums but couldn't find any proper solution. Can anybody help? 回答1: What you need to do is tu use the

TinyMCE limit text on scrollerActived

三世轮回 提交于 2019-12-13 00:49:47
问题 I have a textarea in my rails application to collect content from user in a database. The rails application is further feeding that text to an XML-driven flex application. The flex application has number of fixed sized containers which wraps the text inside (from the XML created by Rails app on-the-fly), but truncates the text if it exceeds the container's height. Problem is; there is no way to present the large text in XML, so it gets adjusted automatically in the compiled flex application.

TinyMCE installation gives warning

半城伤御伤魂 提交于 2019-12-13 00:39:06
问题 I did pip install django-tinymce and it gives this warning Downloading django-tinymce-1.5.1.tar.gz (2.4MB): 2.4MB downloaded Running setup.py egg_info for package django-tinymce warning: no previously-included files found matching '*.pyc' Installing collected packages: django-tinymce Running setup.py install for django-tinymce warning: no previously-included files found matching '*.pyc' Successfully installed django-tinymce Cleaning up... What does this error means I have have also installed

Input code in TinyMCE

这一生的挚爱 提交于 2019-12-13 00:12:42
问题 I'm using TinyMCE on my blog and it seems to be removing the code I'm trying to paste. I want to add this: <Files somefile.png> DefaultType application/x-httpd-php </Files> (it's a .htaccess directive) This gets saved ok (as < and > in the html), but when I reopen my form for editing, it gets transformed as : DefaultType application/x-httpd-php Edit : I'm using TinyMCE in a Symfony form, using sfFormExtraPlugin. Edit 2 : I tried verify_html: false .... now my code gets transformed as : <p>

Image upload from local computer in wysiwyg

心已入冬 提交于 2019-12-12 23:15:38
问题 What´s the best way how can I add image upload from local computer to TinyMCE? I found IMCE but it is just for drupal or not? I need solution which will work with asp.net MVC3. Then I found this TinySLUpload but I want solution without silverlight. What´s my options and which is the best? 回答1: !!!!ENJOY!!! here is the solution to load directly from local computer JSFIDDLE DEMO `tinymce.init({ selector: "textarea", toolbar: "mybutton", height:400, setup: function(editor) { editor.addButton(

tinymce and ibrowser

时间秒杀一切 提交于 2019-12-12 21:40:20
问题 I have been trying to add an upload functionality to tinyMCE but have not had any luck getting it to work despite following several online guides. Here are my steps: unzip ibrowse into the plugins folder of tinymce configured my folder paths in the config file of the ibrowse folder (ibrowser/config/config.inc.php) as such: $cfg['ilibs'] = array ( array ( 'value' => '/uploads/pictures/', 'text' => 'Site Pictures', ), array ( 'value' => '/uploads/gallery/', 'text' => 'Gallery', ), ); Gave write

How to prevent Wordpress TinyMCE from stripping url having no link text

本小妞迷上赌 提交于 2019-12-12 20:48:37
问题 I'm using a custom button on the TinyMCE editor on my wordpress site to insert a list of urls without having to type the markup. The problem is that TinyMCE automatically removes the urls that do not have a link text. For example, if the custom button is programmed to insert <a href="http://example.com"></a> well, nothing is inserted. But if I make the button insert <a href="http://example.com">Example.com</a> it works. I do not want a link text as I need an image link by using background

Need to autosave TinyMCE

两盒软妹~` 提交于 2019-12-12 20:13:46
问题 I am looking for some help autosaving tinyMCE. I want to save the content within tiny into its respective textarea after content has been updated. So that when I make an ajax call the content is in the textarea ready to be posted. Currently I have this little bit of code but it only updates the text area when you press a button in tiny (like bold, italics, underline, etc). I also have the link where I found the code. Any help would be appreciated. $('.AjaxEdit textarea.tiny').tinymce({ /

use tinyMCE with angular 6 without apikey (free)

て烟熏妆下的殇ゞ 提交于 2019-12-12 19:09:33
问题 I tried to install tinyMCE with angular 6. I am following the docs on https://www.tiny.cloud/docs/integrations/angular2/. Everything OK but I must to have an apiKey to use the tinyMCE cloud. I got the error : "This domain is not registered with TinyMCE Cloud. Start a free trial to discover our premium cloud services and pro support." I want to use the self hosted version without apiKey. So as explained on the doc https://www.tiny.cloud/docs/integrations/angular2/#loadingtinymcebyyourself we