wysiwyg

Approaches / libraries for resize dragging

一世执手 提交于 2019-12-12 05:28:15
问题 I'm currently working on a WYSISYG editor that allows the user to move, resize and rotate shapes by directly manipulating them. The resizing seems to be fairly complex when the shape is rotated. I got this working for non-rotated shapes, but it will take some trigonometric calculations to resize shapes that are rotated. The registration point is always is the middle of the rectangle because this makes rotating a lot easier. Before I start implementing this, I was wondering if anyone knew of

Magento wysiwyg editor in phtml file

*爱你&永不变心* 提交于 2019-12-12 04:02:15
问题 I have created one form in template file using HTML Tags like input, select, buttons etc. I have added textarea in form for address and i want to change it to wysiwyg editor . Shall i use js/css provided by magento itself? How to achieve this (change textarea to wysiwyg editor ) quickly? P.S. : I want to do this in template html file only. There is no form.php, grid.php etc. 回答1: I went through couple of other question/answers here on stackoverflow/magentostack regarding bringing backend

Forbid script tags and event listeners in jqte jQuery text editor using htmlpurifier

吃可爱长大的小学妹 提交于 2019-12-12 02:28:13
问题 I am using jqte to give users of a cms I wrote some WYSIWYG for their content. To output the content publicly I use htmlPurifier so there is no way, editors will do harm to the visitors of the site. They could however place <button onclick="alert('this sux')">klick me</button> in the textarea and the next user will find a working button. <script>evilcode</script> is even executed. Has anyone dealt with this before me and can give me a hint to an elegant solution here? 回答1: I'm going to go out

Is there a CMS (WYSIWYG) Component for Agile Toolkit?

笑着哭i 提交于 2019-12-12 01:33:40
问题 I haven't seen the code in the standard distribution of Agile Toolkit. Does anyone have a add-on code which integrates Agile Toolkit form with some WYSIWYG editor? 回答1: any jQuery based editor would fit best. last one we played around with was ELRTE and it was very easy to get it up and running. 回答2: With this we can add a field richtext maybe?! Don't forget the all mighty TinyMCE and FCKEditor 回答3: Ok, I have got this code from other developer: $url=$this->api->locateURL('js','wymeditor

Ckeditor with jQuery form wizard

跟風遠走 提交于 2019-12-12 01:23:09
问题 I am creating a jQuery wizard based form(form is splitted in 5 steps) wizard form, in last two steps I put two ckeditor respectively.My problem is that these two ckeditors are not responding i.e they dont accept any input.I am unable to figure out why this happens.the same ckeditor works fine without form wizard.I think there is conflict between form wizard plugin and ckeditor plugin but dont know what exactly happens there. Sample project on github Link of grails project. Edit1: This is my

CKEditor - how to get the template attributes

南笙酒味 提交于 2019-12-11 23:37:14
问题 I'm using CKEditor 's template plugin to load the templates in the editor. In the templates I've defined likt this. templates: [ { title: "Quickclick 1", image: "template1.png", description: "Quickclick 1 template", html_et: "<span>test1</span>", html:' <span>test</span>' }] When the user selects a template, the html is loaded which is fine. But also, it would be great if there is a way to get the property of the current selected template from the CKEditor instance. I need to get the html_et

How to get current caret position in a SCEditor textarea?

风流意气都作罢 提交于 2019-12-11 22:18:33
问题 I'm using SCEditor along jQuery in my website and I wonder how can I get the current caret position relative to the beginning of the textarea/div? I tried things like: $J('#textarea').sceditor('instance').getRangeHelper().selectedRange().startOffset but that only gives me the position relative to the current DOM object, not the entire textarea. What I'm trying to accomplish is to remove all the text after the caret from the textarea. Maybe there is another way to do that. Thanks, 回答1: You can

Magento WYSIWYG editor button not working

坚强是说给别人听的谎言 提交于 2019-12-11 21:07:30
问题 in magento administration > product page, I click on the WYSIWYG button to open the tiny_mce editor, but nothing happens. I checked the page console using Firebug and I'm getting the following error: catalogWysiwygEditor is not defined and the error applies to this part of code: <button id="id_24edece0c646ca9ab683ec22d0479550" title="WYSIWYG Editor" type="button" class="scalable btn-wysiwyg" onclick="catalogWysiwygEditor.open('http://website.com/index.php/admin/catalog_product/wysiwyg/key

wyswyg html form printing

≯℡__Kan透↙ 提交于 2019-12-11 19:09:13
问题 I am starting this web app project (asp.net mvc) It's a document-based system, such that nearly each web page is a model of an official printed form (and users sometimes should be able to produce prints). I am wondering how much cost and time saving it will be if the form could be a wyswyg page that will serve both electronic and paper audiences. I know that Adobe Acrobat forms has something like that. Would've have been perfect for my purposes but it's not pluggable -- meaning I don't have a

WYSIWYG again, IE simplest execCommand

99封情书 提交于 2019-12-11 15:55:37
问题 I wrote the simplest WYSIWYG in js/jquery: http://jsfiddle.net/XnSWF/ Works perfectly (eg. set to write in bold or set bold on selected text) on newset Opera 11, Chrome 16, Firefox 9 and Safari 5.1 but in IE9 I can't set bold to selected text and always when i use bold button, this carret go to first line to first letter... Why? 回答1: It's because the selection is destroyed before the click event fires in IE. You can get round this by using the the mousedown event instead, or (better) by