wysiwyg

CKEditor 4 Toolbar Dropdown in IE7

这一生的挚爱 提交于 2019-12-24 08:19:29
问题 I am using ckeditor 4 for my project. The dropdown list in ckedior toolbar is not opening in IE7 where as it is opening fine in Chrome and Firefox. Any idea why? Internet Explorer 7 Chrome 回答1: Actual version of CKEditor I was using is 4.0.1.1. I reverted back to CKEditor 4.0 and it worked in IE7 as well. It seems there is some problem with version 4.0.1.1. 回答2: I had a similar problem with IE9 downgraded to emulate IE7. Then I did not get a context menu. By forcing the document mode to at

Selection range to HTML element

跟風遠走 提交于 2019-12-24 05:33:44
问题 How can I transform a selected text range into a HTML element? For example, string The quick brown fox jumps over the lazy dog , I've fetched the part brown that reflects selection points start = 10 and end = 14 (selection isn't built by user input). Now, how do I transform this part of string into a <span>brown</span> ? P.S. I've looked into How to wrap with HTML tags a cross-boundary DOM selection range?. The answer provided uses execCommand, but that doesn't satisfy me, because I need this

Summernote WYSIWYG : set code view as default view

坚强是说给别人听的谎言 提交于 2019-12-24 03:16:30
问题 I can't find anything about this on the web. Is there a way to set the default view of Summernote (WYSIWYG jQuery text editor) to be the code/html view. I want to see directly the HTML code when landing on the form page. Thank you 回答1: You can simulate a click on the codeview button (after summernote initialization), it works for me : $('.summernote').summernote({ oninit: function() { $("div.note-editor button[data-event='codeview']").click(); } }); 回答2: Not very elegant and I don't know if

Pass textarea value from WYSIWYG CKEditor

筅森魡賤 提交于 2019-12-24 02:43:07
问题 I'm trying to pass the input I made in a WYSIWYG editor (CK Editor) to JQuery. Currently it's blank no matter what I input. HTML: <textarea type='text' class="ckeditor reply" name='reply'></textarea> <button type="button" STYLE="align: right;" class="btn btn-info reply_button yGreenButton">Submit Reply</button> JS: <script> $(function() { $('.reply_button').click(function(){ var reply=$(this).siblings('.reply').val(); }); }); </script> The textarea shows up as CKeditor. The current value

getting contents with tinyMCE?

感情迁移 提交于 2019-12-23 18:52:30
问题 I have a tinyMCE textarea #frmbody and am using the jquery instance of it. <textarea class="tinymce" name="frmbody" id="frmbody" cols="30" rows="20"></textarea> I'm trying to get the contents of the textarea as the user types. $("#frmbody").live('keyup', function(e) { alert("keyup"); }); The code above is not working and I'm not sure why. If I remove the tinyMCE instance, the code above works fine. Any ideas? 回答1: That's because an instance of TinyMCE isn't a true textarea, so keyup events

WYSIWYG XML Editor java

一世执手 提交于 2019-12-23 17:39:09
问题 I need to write a swing based editor that can open specified xml files, which contains the text i have to use between a <p> and </p> tag, but there are other tags in the file too. There are other useless informations in the file.I don't need to display them, but it needs to be preserved. I need to dispay only the text inside the mentioned tags in a JTextComponent and let the user modifying it and somehow write back the changes to the underlying xml source. The positions of the tags in the xml

TYPO3 can't enable htmlArea RTE

旧巷老猫 提交于 2019-12-23 13:28:12
问题 I try to install the module htmlArea RTE in TYPO3 6.2 (The LTS version). In "Extension Manager", he's active, but in "Page", when I edit or create a new Text record, the WYSIWYG doesn't appear. I'm on Firefox but I tried on other browser and he doesn't appear too. 回答1: Please check in the module "User Settings" on tab "Edit & Advanced functions" if there is a checkmark at the option "Enable Rich Text Editor (if available)". I tried a fresh installation and had the same problem. After set the

How to insert custom html tag using YUI Editor

不羁岁月 提交于 2019-12-23 04:12:08
问题 I've got YUI set up and working. I've created a custom button and it shows up fine. What I would like that button to do is wrap selected text with my own custom 'span' tags, just like clicking the 'bold' button wraps selected text with 'strong' / 'bold' tags. Does anyone have any examples they could point to to make this work? 回答1: Discovered the solution for myself, so I'm posting so others may see as well. :) First, a BIG thanks to MK_Dev for inspiration from his similar question asked back

How to insert custom html tag using YUI Editor

送分小仙女□ 提交于 2019-12-23 04:11:20
问题 I've got YUI set up and working. I've created a custom button and it shows up fine. What I would like that button to do is wrap selected text with my own custom 'span' tags, just like clicking the 'bold' button wraps selected text with 'strong' / 'bold' tags. Does anyone have any examples they could point to to make this work? 回答1: Discovered the solution for myself, so I'm posting so others may see as well. :) First, a BIG thanks to MK_Dev for inspiration from his similar question asked back

How to insert custom html tag using YUI Editor

时间秒杀一切 提交于 2019-12-23 04:11:11
问题 I've got YUI set up and working. I've created a custom button and it shows up fine. What I would like that button to do is wrap selected text with my own custom 'span' tags, just like clicking the 'bold' button wraps selected text with 'strong' / 'bold' tags. Does anyone have any examples they could point to to make this work? 回答1: Discovered the solution for myself, so I'm posting so others may see as well. :) First, a BIG thanks to MK_Dev for inspiration from his similar question asked back