tinymce

Plugins in IBM/HCL Connections 5 CR6 with TinyMCE editor

此生再无相见时 提交于 2020-01-05 06:28:51
问题 I installed the TinyMCE editor on a vanilla Connections 5 CR6 installation and now want to add plugins. HCL told us that we have the pro version of TinyMCE licenced together with Connections. One example of the pro-plugins is the checklist, which I want to install. So I add the plugin-files of the checklist as well as the lists (required as dependency) in the externalPlugins array of the config.js file: externalPlugins: [ { name: "checklist", url: pluginBaseDir + "checklist/plugin.min.js",

tinymce - resize/scale handelers are not in the same place as resize object

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-05 05:47:10
问题 Tinymce re-size/scale handlers are not appearing in the same place where the re-sizable/scalable object are, but far below the object. I am using inline feature, this issue is happening with all re-sizable, like table, image etc. Here is the screenshot of issue: 回答1: I got the solution, position of parent of re-sizable object need to be relative 来源: https://stackoverflow.com/questions/17779780/tinymce-resize-scale-handelers-are-not-in-the-same-place-as-resize-object

Using regex to remove empty paragraph tags <p> </p> (standard str_replace on “space” not working)

筅森魡賤 提交于 2020-01-05 03:57:02
问题 TinyMCE creates empty paragraph tags when you hit enter twice. like: <p> </p> Which is <p>SPACE</p> In FireBug it calls this space a " " but the html code/DB backend just shows a space. When I do "str_replace('<p> </p>'....." it doesnt find the block... basically I think the "space" is somehow not a standard space and some sort of borked encoded space. Is there a regex I can run that will remove this tag? I've been stuck on this for hours... or even something like regex('<p>LESS THAN THREE

Load html files in TinyMce

戏子无情 提交于 2020-01-05 02:56:51
问题 I have this: <textarea name="content"></textarea> and in javascript code in the same aspx file I call init to tinyMce. I have html file which is in the same folder as this aspx file. How to make it show in the tinyMce? 回答1: Eighter render the content of your html file into the textare directly OR use ajax to get the file contents and set them as content of your editor. I assume your tinymce editor is already initialized then you may set the content from the ajax response using tinymce.get('my

TinyMCE modal in JQuery modal not editable

倖福魔咒の 提交于 2020-01-05 00:49:08
问题 I am running a tinyMCE editor inside a JQuery UI modal dialog. Everything works fine, except for those functions of tinyMCE which themselves open a new modal (links, for example). These modals are displayed fine but the input areas are not editable. The js code is OK according to Firebug and the HTML is pretty straightforward. Any clue where it might come from? Edit: <script type="text/javascript"> tinymce.init({ selector: "textarea", plugins: "autolink link table textcolor", menubar: false,

Server side html filtering library in asp.net mvc

∥☆過路亽.° 提交于 2020-01-04 12:45:46
问题 I'm using TinyMCE. I need server side Html input filtering function or library. TinyMCE recommended htmlLawed HTMLPurifier Zend Filter Input All of this only compatible with PHP. But i'm using asp.net MVC Please tell me, is there any available filtering library or attribute in asp.net MVC For example like this [HtmlInputFilter] //<<-- public ActionResult Post(string html){ ... } 回答1: You could use the Microsoft AntiXSS library to sanitize the HTML. If you want to handle your own whitelists of

assets:precompile - permission denied - only on one computer

穿精又带淫゛_ 提交于 2020-01-04 04:43:05
问题 I have a rails app project folder which is on my dropbox folder. I work on 2 computers - home pc and a laptop (both win 7) If I do bundle exec rake assets:precompile on the pc it works fine and I see the line C:/Ruby193/bin/ruby.exe C:/Ruby193/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets mkdir -p H:/My Dropbox/project/public/assets cp -r C:/Ruby193/lib/ruby/gems/1.9.1/gems/tinymce-rails-3.5.7.1/vendor/assets/javascripts/tinymce H:/My Dropbox/project/public/assets

Remove TinyMCE Toolbar Button

安稳与你 提交于 2020-01-04 02:49:12
问题 How do I remove a button from the TinyMCE toolbar? Do I directly edit the tiny_mce.js file? If so, where? Do I edit my theme's editor_template.js file? Any instruction or hints would be appreciated. 回答1: You can define exactly what you want on the toolbar with the advanced theme and you wind up just specifying a list of buttons. See http://wiki.moxiecode.com/index.php/TinyMCE:Configuration for the configuration reference or the examples at http://tinymce.moxiecode.com/examples/full.php 回答2:

TinyMCE is removing some part of html

只谈情不闲聊 提交于 2020-01-04 02:06:28
问题 I want to be able to insert empty div and span elements, text like [something], but when I save TinyMCE is removing all this code. Is there a config option that tells TinyMCE to return me the exact text I've entered? Thanks. 回答1: Yes, you need to change your valid_elements config option to somethin like // The valid_elements option defines which elements will remain in the edited text when the editor saves. valid_elements: "@[id|class|title|style|onmouseover]," + "a[name|href|target|title|alt

TinyMCE editor dislikes being moved around

人走茶凉 提交于 2020-01-03 07:18:58
问题 On a page I have, I need to move TinyMCE editors in the DOM tree once in a while. However, for some reason, the editor doesn't like it: it clears itself completely and becomes unusable. As far as I can see, this behavior is consistent between Safari 4 and Firefox 3.6, but not Internet Explorer 7/8. Here's an example. It truly is pissing me off to do something that works in Internet Explorer but not with more appreciable browsers. Is there something I missed in the docs about never trying to