My favorites | Sign in
Project Logo
             
Details: Show all Hide all

Last 30 days

  • Dec 09, 2009
    issue 47 (IE7 not works basic key functions) reported by info.yawriter   -   When I try push "Enter", for go to new line, or select some part of text and push "Delete", it not works. Any keys not works in textarea with this wysiwyg. Can anybody help me please?
    When I try push "Enter", for go to new line, or select some part of text and push "Delete", it not works. Any keys not works in textarea with this wysiwyg. Can anybody help me please?
  • Dec 09, 2009
    issue 28 (How can I change Enter mode?) commented on by info.yawriter   -   I have the same proble, can you help me please. I need it much!!!
    I have the same proble, can you help me please. I need it much!!!
  • Dec 02, 2009
    issue 15 (Error uploading images) commented on by ecolasurdo   -   Theres a way to open a new window and Call the insertImage function with the image path?
    Theres a way to open a new window and Call the insertImage function with the image path?
  • Dec 02, 2009
    issue 45 (<strong> insted of <b>) commented on by cindreta   -   yes i tought so, i would actually have to write a new plugin for bold wich would replace the <b> tags with <strong>. thats a lot of codeing for all of them, if you do make it i will post the code here.
    yes i tought so, i would actually have to write a new plugin for bold wich would replace the <b> tags with <strong>. thats a lot of codeing for all of them, if you do make it i will post the code here.
  • Dec 02, 2009
    issue 45 (<strong> insted of <b>) Status changed by plandem   -   it depends on browser, because default toolbar use 'editor' mode of browser. but you can extend 'disable' and use additional processing(replace 'strong' for 'b'), for example.
    Status: Done
    it depends on browser, because default toolbar use 'editor' mode of browser. but you can extend 'disable' and use additional processing(replace 'strong' for 'b'), for example.
    Status: Done
  • Dec 02, 2009
    issue 46 (full screen mode) reported by cindreta   -   Can somebody tell me would this be hard to make, does anybody have a fullscreen plugin for this editor already, something like fck(cke) editor and tinymce have?
    Can somebody tell me would this be hard to make, does anybody have a fullscreen plugin for this editor already, something like fck(cke) editor and tinymce have?
  • Nov 29, 2009
    issue 45 (<strong> insted of <b>) reported by cindreta   -   Hi i am just wondering how to get tags like bold, italica and break to be <strong>, <em>, <br/> insted of <b>, <i> and <br>??? Thank you
    Hi i am just wondering how to get tags like bold, italica and break to be <strong>, <em>, <br/> insted of <b>, <i> and <br>??? Thank you

Earlier this year

  • Nov 24, 2009
    issue 35 (No support for CTRL+KEY shortcuts) commented on by CharlieKonsor   -   I had this same issue (not really an issue, just a desired funtionality) and was able to add some basic styling (bold, italic, underline). First I included the small js-hotkeys jquery plugin in my js files (http://code.google.com/p/js-hotkeys/). Then I added this code in enable_design_mode function: $(self.iframe_doc).bind('keydown', 'Ctrl+b',function (evt){ self.editor_cmd("bold"); return false; }); $(self.iframe_doc).bind('keydown', 'Ctrl+i',function (evt){ self.editor_cmd("italic"); return false; }); $(self.iframe_doc).bind('keydown', 'Ctrl+u',function (evt){ self.editor_cmd("underline"); return false; }); This binds keydown events to the rte iframe. The self.editor_cmd("bold") bit applies the style, and 'return false;' stops normal action from happening (the Bookmarks sidebar, etc.) My code just does bold, italic, and underline, but you could easily add more basic functions (strikethrough, justifyright, indent, subscript, etc.) just using the basic execCommand values (here's a good list: http://www.quirksmode.org/dom/execCommand.html). I would like, however, to be able to call up the link function (lwrte_link) on a Ctrl+L keypess, but haven't yet figure out how to do that. If anyone could advise me on this it'd be appreciated.
    I had this same issue (not really an issue, just a desired funtionality) and was able to add some basic styling (bold, italic, underline). First I included the small js-hotkeys jquery plugin in my js files (http://code.google.com/p/js-hotkeys/). Then I added this code in enable_design_mode function: $(self.iframe_doc).bind('keydown', 'Ctrl+b',function (evt){ self.editor_cmd("bold"); return false; }); $(self.iframe_doc).bind('keydown', 'Ctrl+i',function (evt){ self.editor_cmd("italic"); return false; }); $(self.iframe_doc).bind('keydown', 'Ctrl+u',function (evt){ self.editor_cmd("underline"); return false; }); This binds keydown events to the rte iframe. The self.editor_cmd("bold") bit applies the style, and 'return false;' stops normal action from happening (the Bookmarks sidebar, etc.) My code just does bold, italic, and underline, but you could easily add more basic functions (strikethrough, justifyright, indent, subscript, etc.) just using the basic execCommand values (here's a good list: http://www.quirksmode.org/dom/execCommand.html). I would like, however, to be able to call up the link function (lwrte_link) on a Ctrl+L keypess, but haven't yet figure out how to do that. If anyone could advise me on this it'd be appreciated.
  • Nov 19, 2009
    issue 44 (Removing formatting when parsing into texareea) reported by 06studio   -   What steps will reproduce the problem? 1. when pasting the content from a already formatted document, it keep the original formatting. 2. 3. What is the expected output? What do you see instead? - When pasting into the textarea, it must remove all formating code and keep only the text. What version of the product are you using? On what operating system? rte1.2 / Vista /IE8/FF/Chrome
    What steps will reproduce the problem? 1. when pasting the content from a already formatted document, it keep the original formatting. 2. 3. What is the expected output? What do you see instead? - When pasting into the textarea, it must remove all formating code and keep only the text. What version of the product are you using? On what operating system? rte1.2 / Vista /IE8/FF/Chrome
  • Oct 27, 2009
    issue 40 (Очень глючит resizer.) commented on by assane101   -   Use tranlate tool like Google Translate !
    Use tranlate tool like Google Translate !
  • Oct 25, 2009
    issue 40 (Очень глючит resizer.) commented on by gyurko.d...@e-arc.hu   -   I don't speak Russian, but from "resizer" I suspect that this issue is about the resizer bug. First of all, lwrte is the best rich text editor I met so far: it is well designed (separation of core and toolbars is awesome), flexible, and easy to customize. Really nice job. However, there are some slight glitches, for example: jQuery 1.3.2, lwrte 1.2, Firefox 3.5 (Shiretoko) on Ubuntu 9.04: The editor area is resizable, but on the release of mousebutton the click event is propagated (site.com/# is loaded). I hope for a fix of this bug. Thank you for your effort!
    I don't speak Russian, but from "resizer" I suspect that this issue is about the resizer bug. First of all, lwrte is the best rich text editor I met so far: it is well designed (separation of core and toolbars is awesome), flexible, and easy to customize. Really nice job. However, there are some slight glitches, for example: jQuery 1.3.2, lwrte 1.2, Firefox 3.5 (Shiretoko) on Ubuntu 9.04: The editor area is resizable, but on the release of mousebutton the click event is propagated (site.com/# is loaded). I hope for a fix of this bug. Thank you for your effort!
  • Oct 21, 2009
    issue 4 (Linking sometimes doesn't work.) commented on by CharlieKonsor   -   Just another note. If you alert(self.get_selected_html()); right after the self.editor_cmd('createLink', rte_tag); you'll want something like this (assuming 'test' was the selected text): <a href="-rte-tmp-tag-">test</a> If you do the alert in Safari (4.03) you get simply: test I think the problem is in the get_selected_html() function. Again, don't know how to fix it, just thought I'd add that. One last thing, as I said the links work in Safari if there are tags amidst them (test <b>test</b> test) but it actually is creating 3 links, one on each word. Not sure if this is what is supposed to happen.
    Just another note. If you alert(self.get_selected_html()); right after the self.editor_cmd('createLink', rte_tag); you'll want something like this (assuming 'test' was the selected text): <a href="-rte-tmp-tag-">test</a> If you do the alert in Safari (4.03) you get simply: test I think the problem is in the get_selected_html() function. Again, don't know how to fix it, just thought I'd add that. One last thing, as I said the links work in Safari if there are tags amidst them (test <b>test</b> test) but it actually is creating 3 links, one on each word. Not sure if this is what is supposed to happen.
  • Oct 21, 2009
    issue 4 (Linking sometimes doesn't work.) commented on by CharlieKonsor   -   I've had this same problem and I discovered that the error occurs (in Firefox 3.5 at least) when there are no tags in the source code of the texteditor. Simplest fix is to always include a tag (I put in a <br /> tag if there are no tags in the content being loaded or if there is no content at all). This DOES NOT, however, seem to work in Safari (4.03). Grace.BasilioR, I tried your Safari fix and it does indeed work, but it removes any formatting in the selected text. Example: test1 <b>test2</b> test3. If you created a link on that text the bold tags would disappear. That being said, I can't come up with a better solution so I'm going with yours for now. I think this error is the same as the other, without any html tags it doesn't know how to create a link around the text for whatever reason. Also, I think the fact that you commented out self.selection_replace_with(tmp.html()); means it won't work in any other browser. And you might want to check to see if you have title / target values before putting them in the link tag. Here's my browser specific code when the #ok button is clicked: if($.browser.safari) { var html = '<a href="' + url + '"'; if(target.length > 0) html = html + ' target="'+target+'"'; if(title.length > 0) html = html + ' title="'+title+'"'; html = html + ' />' + self.get_selected_text() + '</a>'; self.selection_replace_with(html); } I'm sure there's a more elegant way to do that, but I don't know it so...
    I've had this same problem and I discovered that the error occurs (in Firefox 3.5 at least) when there are no tags in the source code of the texteditor. Simplest fix is to always include a tag (I put in a <br /> tag if there are no tags in the content being loaded or if there is no content at all). This DOES NOT, however, seem to work in Safari (4.03). Grace.BasilioR, I tried your Safari fix and it does indeed work, but it removes any formatting in the selected text. Example: test1 <b>test2</b> test3. If you created a link on that text the bold tags would disappear. That being said, I can't come up with a better solution so I'm going with yours for now. I think this error is the same as the other, without any html tags it doesn't know how to create a link around the text for whatever reason. Also, I think the fact that you commented out self.selection_replace_with(tmp.html()); means it won't work in any other browser. And you might want to check to see if you have title / target values before putting them in the link tag. Here's my browser specific code when the #ok button is clicked: if($.browser.safari) { var html = '<a href="' + url + '"'; if(target.length > 0) html = html + ' target="'+target+'"'; if(title.length > 0) html = html + ' title="'+title+'"'; html = html + ' />' + self.get_selected_text() + '</a>'; self.selection_replace_with(html); } I'm sure there's a more elegant way to do that, but I don't know it so...
  • Oct 07, 2009
    API Wiki page commented on by 06studio   -   hi, is it me or the image upload doesnt work? The image arent uploaded into the /uploads/ dir but anything else working. thank for your help!
    hi, is it me or the image upload doesnt work? The image arent uploaded into the /uploads/ dir but anything else working. thank for your help!
  • Oct 06, 2009
    issue 43 (Feature Request: HTML Tag WhiteList) commented on by plandem   -   It's feature for toolbar, not for core of plugin.
    It's feature for toolbar, not for core of plugin.
  • Sep 05, 2009
    issue 43 (Feature Request: HTML Tag WhiteList) reported by haacked   -   I'd like to be able to set a white-list of HTML tags and attributes so that if someone tries to enter a tag not in the white list (such as a <script> tag), it would HTML encode it.
    I'd like to be able to set a white-list of HTML tags and attributes so that if someone tries to enter a tag not in the white list (such as a <script> tag), it would HTML encode it.
  • Aug 25, 2009
    issue 42 (Can't get CSS into lwrte) reported by movinghouse   -   What steps will reproduce the problem? 1. Set up lwrte as instructed 2. In the ' css: ['style.css'] ' setting, attempt every conceivable way of pointing to the path of where my css file is stored. eg, 'style.css', '../style.css', '../../style.css'. I even placed the same css file multiple times in every directory of my website hoping one of them would pick up. What is the expected output? What do you see instead? I expect to see my CSS classes and/or ids appearing in the rte's CSS dropdown box. Instead it always says 'no css'. What version of the product are you using? On what operating system? 1.2, running on MAMP on Mac OSX Leopard. Php installed and working. Please provide any additional information below. I understand that CSS files are passed onto a 'styles.php' file to parse them. In the javascript for the styles function, I setup an alert in the 'success' of the styles.php function being called. No alert popped up. I did, however, get an alert to pop up when I placed it just above the 'success', just inside 'if(rte.css.length)' before the ajax is called. Meaning that it attempts to start the CSS fetching function?
    What steps will reproduce the problem? 1. Set up lwrte as instructed 2. In the ' css: ['style.css'] ' setting, attempt every conceivable way of pointing to the path of where my css file is stored. eg, 'style.css', '../style.css', '../../style.css'. I even placed the same css file multiple times in every directory of my website hoping one of them would pick up. What is the expected output? What do you see instead? I expect to see my CSS classes and/or ids appearing in the rte's CSS dropdown box. Instead it always says 'no css'. What version of the product are you using? On what operating system? 1.2, running on MAMP on Mac OSX Leopard. Php installed and working. Please provide any additional information below. I understand that CSS files are passed onto a 'styles.php' file to parse them. In the javascript for the styles function, I setup an alert in the 'success' of the styles.php function being called. No alert popped up. I did, however, get an alert to pop up when I placed it just above the 'success', just inside 'if(rte.css.length)' before the ajax is called. Meaning that it attempts to start the CSS fetching function?
  • Aug 22, 2009
    issue 41 (Spaces becomes &nbsp; in Safari) reported by marcusolovsson   -   What steps will reproduce the problem? 1. Write some text 2. Try making it bold (for example) 3. Look at the source What is the expected output? What do you see instead? In Firefox it just adds the <b>, but in Safari (4, on Mac) the spaces in the <b>-tag becomes &nbsp; (non-breakable spaces, which is annoying on longer texts). What version of the product are you using? On what operating system? Mac OS X 10.5.8, Safari 4.0.3 (5531.9)
    What steps will reproduce the problem? 1. Write some text 2. Try making it bold (for example) 3. Look at the source What is the expected output? What do you see instead? In Firefox it just adds the <b>, but in Safari (4, on Mac) the spaces in the <b>-tag becomes &nbsp; (non-breakable spaces, which is annoying on longer texts). What version of the product are you using? On what operating system? Mac OS X 10.5.8, Safari 4.0.3 (5531.9)
  • Aug 21, 2009
    issue 40 (Очень глючит resizer.) Status changed by plandem   -   что за изменение размеров?
    Status: Started
    что за изменение размеров?
    Status: Started
  • Aug 21, 2009
    issue 38 (GPL License) Status changed by plandem   -   yep, sure.
    Status: Done
    yep, sure.
    Status: Done
  • Aug 21, 2009
    issue 39 (remove PHP dependency) commented on by plandem   -   style.php - is way to get css classes from CSS file/page. I tried DOM way, but without success in some browsers.
    style.php - is way to get css classes from CSS file/page. I tried DOM way, but without success in some browsers.
  • Aug 21, 2009
    issue 40 (Очень глючит resizer.) reported by ilvinokurov   -   Изменение размеров глючит во всех браузерах. Использую jquery-1.3.2.min.js
    Изменение размеров глючит во всех браузерах. Использую jquery-1.3.2.min.js
  • Aug 11, 2009
    issue 20 (enable_design_mode adds duplicate submit events) commented on by gd.wingard   -   Thanks, that worked for me for the most part. I ended up just removing the ability to toggle to html mode just because my users really don't need that functionality. Unless it is already there and I'm just missing it, it would be nice to have the ability to turn on and off the toggle button as an option to send to the plug-in when I create it.
    Thanks, that worked for me for the most part. I ended up just removing the ability to toggle to html mode just because my users really don't need that functionality. Unless it is already there and I'm just missing it, it would be nice to have the ability to turn on and off the toggle button as an option to send to the plug-in when I create it.
  • Jul 14, 2009
    issue 39 (remove PHP dependency) reported by azrael.falls   -   What steps will reproduce the problem? 1. run it 2. 3. What is the expected output? What do you see instead? Since I'm not running a php program this application is unusable What version of the product are you using? On what operating system? the latest Please provide any additional information below. If you can provide a breakdown of what you are doing with style.php I can provide the replacement code.
    What steps will reproduce the problem? 1. run it 2. 3. What is the expected output? What do you see instead? Since I'm not running a php program this application is unusable What version of the product are you using? On what operating system? the latest Please provide any additional information below. If you can provide a breakdown of what you are doing with style.php I can provide the replacement code.
  • Jul 13, 2009
    issue 38 (GPL License) reported by fossifoo   -   The library looks nice, but being a GPLed JS gives me legalese headaches. Would you consider relicensing GPL and MIT/BSD (like jQuery)? Would make things a whole lot easier. BTW: The source does not contain *any* license information, not even the GPL header.
    The library looks nice, but being a GPLed JS gives me legalese headaches. Would you consider relicensing GPL and MIT/BSD (like jQuery)? Would make things a whole lot easier. BTW: The source does not contain *any* license information, not even the GPL header.
  • Jul 12, 2009
    issue 8 (Content not appearing in designMode) commented on by ekemokai   -   Basically the only fix I have found for this is to create the RTE control after its containing element has already been rendered (ie made visible). This is my containing element, which is rendered as a dialog. <div id="text-dialog" title="Text"> <div id="textEditorFrm"> </div> </div> Every time a button is clicked to show the dialog above which would contain the rte, i do this: $('#text-dialog').dialog("open"); $('#textEditorFrm').html('<textarea id="textEditor"></textarea>'); $('#textEditor').rte({ css: ['default.css'], width:485, height:200, controls_rte: rte_toolbar, controls_html: html_toolbar });
    Basically the only fix I have found for this is to create the RTE control after its containing element has already been rendered (ie made visible). This is my containing element, which is rendered as a dialog. <div id="text-dialog" title="Text"> <div id="textEditorFrm"> </div> </div> Every time a button is clicked to show the dialog above which would contain the rte, i do this: $('#text-dialog').dialog("open"); $('#textEditorFrm').html('<textarea id="textEditor"></textarea>'); $('#textEditor').rte({ css: ['default.css'], width:485, height:200, controls_rte: rte_toolbar, controls_html: html_toolbar });
  • Jul 10, 2009
    issue 37 (Slow response in IE) reported by vikas.programmer   -   What steps will reproduce the problem? 1. Just type little faster in IE6+ What is the expected output? What do you see instead? It takes the input with a delay of 2-3 seconds. What version of the product are you using? On what operating system? lwrte 1.2 (latest) on XP/IE Please provide any additional information below.
    What steps will reproduce the problem? 1. Just type little faster in IE6+ What is the expected output? What do you see instead? It takes the input with a delay of 2-3 seconds. What version of the product are you using? On what operating system? lwrte 1.2 (latest) on XP/IE Please provide any additional information below.
  • Jul 08, 2009
    issue 7 (Linking selected text safari 3.2.1 not working) commented on by jasonrosewell   -   That last edit works great in the most current version of Safari. Thank-you!
    That last edit works great in the most current version of Safari. Thank-you!
  • Jun 20, 2009
    issue 20 (enable_design_mode adds duplicate submit events) commented on by goran.hellstrom   -   I had the same problem (aspx - WinForm). Solved it like this: lwRTE.prototype.enable_design_mode = function() { ... /* added */ $(self.iframe).parents('form').unbind('submit'); /* original */ $(self.iframe).parents('form').submit( function() { self.disable_design_mode(true); } ); ... }
    I had the same problem (aspx - WinForm). Solved it like this: lwRTE.prototype.enable_design_mode = function() { ... /* added */ $(self.iframe).parents('form').unbind('submit'); /* original */ $(self.iframe).parents('form').submit( function() { self.disable_design_mode(true); } ); ... }
  • Jun 17, 2009
    issue 36 (lwrte + jquery UI Tabs widget) reported by jitzzz   -   Hi, I'm trying to implement lwrte in a chat platform i'm working on... the platform is built upon jquery UI's Tabs widget ( http://jqueryui.com/demos/tabs )... Each tab represents a chat window with a user, and each tab contains an instance of lwrte... The editor seems to work fine, but there are a few issues that only happens when lwrte is integrated to the tabs: * color selection doesnt work * the array returned from the rte() function, comes empty.. And therefore - internal functions cannot be used as described in the documentation Got any idea why? I'm using jQuery 1.2.6 - can it be the reason? Many thanks in advance, David
    Hi, I'm trying to implement lwrte in a chat platform i'm working on... the platform is built upon jquery UI's Tabs widget ( http://jqueryui.com/demos/tabs )... Each tab represents a chat window with a user, and each tab contains an instance of lwrte... The editor seems to work fine, but there are a few issues that only happens when lwrte is integrated to the tabs: * color selection doesnt work * the array returned from the rte() function, comes empty.. And therefore - internal functions cannot be used as described in the documentation Got any idea why? I'm using jQuery 1.2.6 - can it be the reason? Many thanks in advance, David
  • Jun 16, 2009
    issue 4 (Linking sometimes doesn't work.) commented on by Grace.BasilioR   -   Hi all, please check http://code.google.com/p/lwrte/issues/detail?id=7 I posted the fix for this there.
    Hi all, please check http://code.google.com/p/lwrte/issues/detail?id=7 I posted the fix for this there.
  • Jun 16, 2009
    issue 7 (Linking selected text safari 3.2.1 not working) commented on by Grace.BasilioR   -   I did some modifications to the script and then tested with IE, FF and Safari and it works just fine. Please see below: #### ON jquery.rte.js REPLACE THE OLD selection_replace_with FUNCTION WITH THE FOLLOWING #### lwRTE.prototype.selection_replace_with = function(html) { var rng = this.get_selection_range(); var iframe_window = this.iframe.contentWindow; if(!rng) return; this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags! if(iframe_window.getSelection) { rng.deleteContents(); if ($.browser.safari) { rng.insertNode(html); } rng.insertNode(rng.createContextualFragment(html)); this.editor_cmd('delete'); } else { this.editor_cmd('delete'); rng.pasteHTML(html); } } #### ON jquery.rte.tb.js REPLACE THE OLD $("#ok").clic() event INSIDE THE lwrte_link FUNCTION WITH THE FOLLOWING #### $('#ok', panel).click( function() { var url = $('#url', panel).val(); var target = $('#target', panel).val(); var title = $('#title', panel).val(); if(self.get_selected_text().length <= 0) { alert('Select the text you wish to link!'); return false; } panel.remove(); if(url.length <= 0) return false; self.editor_cmd('unlink'); // we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3) if ($.browser.safari) { var html = '<a href="' + url + '" target="_blank" title="'+title+'" />' + self.get_selected_text() + '</a>'; self.editor_cmd("insertHTML", html) } else { self.editor_cmd('createLink', rte_tag); var tmp = $('<span></span>').append($.trim (self.get_selected_html())); if(target.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('target', target); if(title.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('title', title); $('a[href*="' + rte_tag + '"]', tmp).attr('href', url); //self.selection_replace_with(tmp.html()); } self.set_content($.trim(self.get_content())); return false; } ); I hope this works for you guys just like it worked for me.
    I did some modifications to the script and then tested with IE, FF and Safari and it works just fine. Please see below: #### ON jquery.rte.js REPLACE THE OLD selection_replace_with FUNCTION WITH THE FOLLOWING #### lwRTE.prototype.selection_replace_with = function(html) { var rng = this.get_selection_range(); var iframe_window = this.iframe.contentWindow; if(!rng) return; this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags! if(iframe_window.getSelection) { rng.deleteContents(); if ($.browser.safari) { rng.insertNode(html); } rng.insertNode(rng.createContextualFragment(html)); this.editor_cmd('delete'); } else { this.editor_cmd('delete'); rng.pasteHTML(html); } } #### ON jquery.rte.tb.js REPLACE THE OLD $("#ok").clic() event INSIDE THE lwrte_link FUNCTION WITH THE FOLLOWING #### $('#ok', panel).click( function() { var url = $('#url', panel).val(); var target = $('#target', panel).val(); var title = $('#title', panel).val(); if(self.get_selected_text().length <= 0) { alert('Select the text you wish to link!'); return false; } panel.remove(); if(url.length <= 0) return false; self.editor_cmd('unlink'); // we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3) if ($.browser.safari) { var html = '<a href="' + url + '" target="_blank" title="'+title+'" />' + self.get_selected_text() + '</a>'; self.editor_cmd("insertHTML", html) } else { self.editor_cmd('createLink', rte_tag); var tmp = $('<span></span>').append($.trim (self.get_selected_html())); if(target.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('target', target); if(title.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('title', title); $('a[href*="' + rte_tag + '"]', tmp).attr('href', url); //self.selection_replace_with(tmp.html()); } self.set_content($.trim(self.get_content())); return false; } ); I hope this works for you guys just like it worked for me.
  • Jun 16, 2009
    issue 7 (Linking selected text safari 3.2.1 not working) commented on by Grace.BasilioR   -   I did some modifications to the script and then tested with IE, FF and Safari and it works just fine. Please see below: #### ON jquery.rte.js REPLACE THE OLD selection_replace_with FUNCTION WITH THE FOLLOWING #### lwRTE.prototype.selection_replace_with = function(html) { var rng = this.get_selection_range(); var iframe_window = this.iframe.contentWindow; if(!rng) return; this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags! if(iframe_window.getSelection) { rng.deleteContents(); if ($.browser.safari) { rng.insertNode(html); } rng.insertNode(rng.createContextualFragment(html)); this.editor_cmd('delete'); } else { this.editor_cmd('delete'); rng.pasteHTML(html); } } #### ON jquery.rte.tb.js REPLACE THE OLD $("#ok").clic() event INSIDE THE lwrte_link FUNCTION WITH THE FOLLOWING #### $('#ok', panel).click( function() { var url = $('#url', panel).val(); var target = $('#target', panel).val(); var title = $('#title', panel).val(); if(self.get_selected_text().length <= 0) { alert('Select the text you wish to link!'); return false; } panel.remove(); if(url.length <= 0) return false; self.editor_cmd('unlink'); // we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3) if ($.browser.safari) { var html = '<a href="' + url + '" target="_blank" title="'+title+'" />' + self.get_selected_text() + '</a>'; self.editor_cmd("insertHTML", html) //$.htmlClean.trim (contentWindow.document.body.innerHTML); self.set_content($.trim(self.get_content())); return false; } else { self.editor_cmd('createLink', rte_tag); var tmp = $('<span></span>').append($.trim (self.get_selected_html())); if(target.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('target', target); if(title.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('title', title); $('a[href*="' + rte_tag + '"]', tmp).attr('href', url); self.selection_replace_with(tmp.html()); return false; } } ); I hope this works for you guys just like it worked for me.
    I did some modifications to the script and then tested with IE, FF and Safari and it works just fine. Please see below: #### ON jquery.rte.js REPLACE THE OLD selection_replace_with FUNCTION WITH THE FOLLOWING #### lwRTE.prototype.selection_replace_with = function(html) { var rng = this.get_selection_range(); var iframe_window = this.iframe.contentWindow; if(!rng) return; this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags! if(iframe_window.getSelection) { rng.deleteContents(); if ($.browser.safari) { rng.insertNode(html); } rng.insertNode(rng.createContextualFragment(html)); this.editor_cmd('delete'); } else { this.editor_cmd('delete'); rng.pasteHTML(html); } } #### ON jquery.rte.tb.js REPLACE THE OLD $("#ok").clic() event INSIDE THE lwrte_link FUNCTION WITH THE FOLLOWING #### $('#ok', panel).click( function() { var url = $('#url', panel).val(); var target = $('#target', panel).val(); var title = $('#title', panel).val(); if(self.get_selected_text().length <= 0) { alert('Select the text you wish to link!'); return false; } panel.remove(); if(url.length <= 0) return false; self.editor_cmd('unlink'); // we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3) if ($.browser.safari) { var html = '<a href="' + url + '" target="_blank" title="'+title+'" />' + self.get_selected_text() + '</a>'; self.editor_cmd("insertHTML", html) //$.htmlClean.trim (contentWindow.document.body.innerHTML); self.set_content($.trim(self.get_content())); return false; } else { self.editor_cmd('createLink', rte_tag); var tmp = $('<span></span>').append($.trim (self.get_selected_html())); if(target.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('target', target); if(title.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('title', title); $('a[href*="' + rte_tag + '"]', tmp).attr('href', url); self.selection_replace_with(tmp.html()); return false; } } ); I hope this works for you guys just like it worked for me.
  • Jun 16, 2009
    issue 7 (Linking selected text safari 3.2.1 not working) commented on by Grace.BasilioR   -   I did some modifications to the script and then tested with IE, FF and Safari and it works just fine. Please see below: #### ON jquery.rte.js REPLACE THE OLD selection_replace_with FUNCTION WITH THE FOLLOWING #### lwRTE.prototype.selection_replace_with = function(html) { var rng = this.get_selection_range(); var iframe_window = this.iframe.contentWindow; if(!rng) return; this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags! if(iframe_window.getSelection) { if ($.browser.safari) { rng.deleteContents(); rng.insertNode(html) } else { rng.deleteContents(); } rng.insertNode(rng.createContextualFragment(html)); this.editor_cmd('delete'); } else { this.editor_cmd('delete'); rng.pasteHTML(html); } } #### ON jquery.rte.tb.js REPLACE THE OLD $("#ok").clic() event INSIDE THE lwrte_link FUNCTION WITH THE FOLLOWING #### $('#ok', panel).click( function() { var url = $('#url', panel).val(); var target = $('#target', panel).val(); var title = $('#title', panel).val(); if(self.get_selected_text().length <= 0) { alert('Select the text you wish to link!'); return false; } panel.remove(); if(url.length <= 0) return false; self.editor_cmd('unlink'); // we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3) if ($.browser.safari) { var html = '<a href="' + url + '" target="_blank" title="'+title+'" />' + self.get_selected_text() + '</a>'; self.editor_cmd("insertHTML", html) //$.htmlClean.trim (contentWindow.document.body.innerHTML); self.set_content($.trim(self.get_content())); return false; } else { self.editor_cmd('createLink', rte_tag); var tmp = $('<span></span>').append($.trim (self.get_selected_html())); if(target.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('target', target); if(title.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('title', title); $('a[href*="' + rte_tag + '"]', tmp).attr('href', url); self.selection_replace_with(tmp.html()); return false; } } ); I hope this works for you guys just like it worked for me.
    I did some modifications to the script and then tested with IE, FF and Safari and it works just fine. Please see below: #### ON jquery.rte.js REPLACE THE OLD selection_replace_with FUNCTION WITH THE FOLLOWING #### lwRTE.prototype.selection_replace_with = function(html) { var rng = this.get_selection_range(); var iframe_window = this.iframe.contentWindow; if(!rng) return; this.editor_cmd('removeFormat'); // we must remove formating or we will get empty format tags! if(iframe_window.getSelection) { if ($.browser.safari) { rng.deleteContents(); rng.insertNode(html) } else { rng.deleteContents(); } rng.insertNode(rng.createContextualFragment(html)); this.editor_cmd('delete'); } else { this.editor_cmd('delete'); rng.pasteHTML(html); } } #### ON jquery.rte.tb.js REPLACE THE OLD $("#ok").clic() event INSIDE THE lwrte_link FUNCTION WITH THE FOLLOWING #### $('#ok', panel).click( function() { var url = $('#url', panel).val(); var target = $('#target', panel).val(); var title = $('#title', panel).val(); if(self.get_selected_text().length <= 0) { alert('Select the text you wish to link!'); return false; } panel.remove(); if(url.length <= 0) return false; self.editor_cmd('unlink'); // we wanna well-formed linkage (<p>,<h1> and other block types can't be inside of link due to WC3) if ($.browser.safari) { var html = '<a href="' + url + '" target="_blank" title="'+title+'" />' + self.get_selected_text() + '</a>'; self.editor_cmd("insertHTML", html) //$.htmlClean.trim (contentWindow.document.body.innerHTML); self.set_content($.trim(self.get_content())); return false; } else { self.editor_cmd('createLink', rte_tag); var tmp = $('<span></span>').append($.trim (self.get_selected_html())); if(target.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('target', target); if(title.length > 0) $('a[href*="' + rte_tag + '"]', tmp).attr ('title', title); $('a[href*="' + rte_tag + '"]', tmp).attr('href', url); self.selection_replace_with(tmp.html()); return false; } } ); I hope this works for you guys just like it worked for me.
  • Jun 03, 2009
    issue 35 (No support for CTRL+KEY shortcuts) reported by cfxchange   -   What steps will reproduce the problem? 1. Load a page with lwrte enabled for a textarea. 2. Type in some text, select it and hold down CTRL and press the B key. What is the expected output? What do you see instead? The selected text should become bold. Instead, the bookmark (at least in FF) view is opened. What version of the product are you using? On what operating system? v 1.2 Win XP pro Please provide any additional information below. I realize that this may add bloat, but these RTE controls are meant to be used primarily by non-techie type people who don't understand HTML but know how to use MS Word. I think CTRL+B (bold), CTRL+I (italics), CTRL+U (underline) should be implemented.
    What steps will reproduce the problem? 1. Load a page with lwrte enabled for a textarea. 2. Type in some text, select it and hold down CTRL and press the B key. What is the expected output? What do you see instead? The selected text should become bold. Instead, the bookmark (at least in FF) view is opened. What version of the product are you using? On what operating system? v 1.2 Win XP pro Please provide any additional information below. I realize that this may add bloat, but these RTE controls are meant to be used primarily by non-techie type people who don't understand HTML but know how to use MS Word. I think CTRL+B (bold), CTRL+I (italics), CTRL+U (underline) should be implemented.
  • Jun 01, 2009
    issue 34 (Feature Request: Implementing a MaxLength property) reported by gd.wingard   -   I'm wondering if anyone has any ideas how to implement a MaxLength property on this plugin. Thanks in advance.
    I'm wondering if anyone has any ideas how to implement a MaxLength property on this plugin. Thanks in advance.
  • Jun 01, 2009
    issue 20 (enable_design_mode adds duplicate submit events) commented on by gd.wingard   -   It has been a while but I still wanted you to know we've ported over to MVC and no longer have this problem. I'm going to guess that we had some web control that was conflicting with this that when we rewrote it to use MVC it fixed the problem. Thanks for your help.
    It has been a while but I still wanted you to know we've ported over to MVC and no longer have this problem. I'm going to guess that we had some web control that was conflicting with this that when we rewrote it to use MVC it fixed the problem. Thanks for your help.
  • Jun 01, 2009
    issue 20 (enable_design_mode adds duplicate submit events) commented on by gd.wingard   -   It has been a while but I still wanted you to know we've ported over to MVC and no longer have this problem. Thanks for your help.
    It has been a while but I still wanted you to know we've ported over to MVC and no longer have this problem. Thanks for your help.
  • May 25, 2009
    issue 33 (I can't get the content from the textarea in design mode) commented on by huangheq...@163.com   -   I have found the solution:I load lwrte before validator plugin,then I can get the content from the textarea.
    I have found the solution:I load lwrte before validator plugin,then I can get the content from the textarea.
  • May 24, 2009
    issue 33 (I can't get the content from the textarea in design mode) commented on by huangheq...@163.com   -   I find the answer,because I have used jQuery.validator plugin. the validator conflict with the lwrte,but now I have not solve this conflict yet.
    I find the answer,because I have used jQuery.validator plugin. the validator conflict with the lwrte,but now I have not solve this conflict yet.
  • May 22, 2009
    issue 33 (I can't get the content from the textarea in design mode) reported by huangheq...@163.com   -   I use iwrte in my project, my project is base on the php framework---Kohana,my problem is : when I submit in design mode,I can't get the content from the textarea in the target page,but if I submit in source mode I can get the content from the textarea. If I don't use the php framework everything is ok,I can get the content from the textarea in both mode.
    I use iwrte in my project, my project is base on the php framework---Kohana,my problem is : when I submit in design mode,I can't get the content from the textarea in the target page,but if I submit in source mode I can get the content from the textarea. If I don't use the php framework everything is ok,I can get the content from the textarea in both mode.
  • May 21, 2009
    issue 29 (When Iframe is small can't use color picker) commented on by brett.thomas   -   Where can i download the version with this fix? Thanks!
    Where can i download the version with this fix? Thanks!
  • May 19, 2009
    issue 32 (FEATURE REQUEST: External Toolbar) reported by brett.thomas   -   First I wanted to say great work on your editor, it's really nice, especially since it doesnt take forever to load like fck. I want to request an option to have the toolbar and popup windows outside of the iframe. Thanks!
    First I wanted to say great work on your editor, it's really nice, especially since it doesnt take forever to load like fck. I want to request an option to have the toolbar and popup windows outside of the iframe. Thanks!
  • May 19, 2009
    issue 29 (When Iframe is small can't use color picker) Status changed by plandem   -  
    Status: Done
    Status: Done
  • May 19, 2009
    issue 29 (When Iframe is small can't use color picker) commented on by plandem   -   thanx :) i was sure that version is visible. need to check settings of project.
    thanx :) i was sure that version is visible. need to check settings of project.
  • May 19, 2009
    issue 31 (Firefox renames image src on image drag and drop) reported by jasonrosewell   -   What steps will reproduce the problem? 1. Add an image to the field by uploading from computer 2. Drag the image to a new location in the field 3. Inspect the element in Firebug and the src is renamed. What is the expected output? What do you see instead? Expect: http://www.yourdomain.com/admin/uploads/image.jpg I see: uploads/image.jpg What version of the product are you using? On what operating system? 1.2 on OS X 10.5 Please provide any additional information below. -Does not happen in Safari -Need full path so i can reference the database output no matter where I am on the site.
    What steps will reproduce the problem? 1. Add an image to the field by uploading from computer 2. Drag the image to a new location in the field 3. Inspect the element in Firebug and the src is renamed. What is the expected output? What do you see instead? Expect: http://www.yourdomain.com/admin/uploads/image.jpg I see: uploads/image.jpg What version of the product are you using? On what operating system? 1.2 on OS X 10.5 Please provide any additional information below. -Does not happen in Safari -Need full path so i can reference the database output no matter where I am on the site.
  • May 04, 2009
    issue 30 (Can't get_content() of rte) reported by stupidi...@cox.net   -   What steps will reproduce the problem? 1. Place a rte textbox in a form 2. attempt to get user entered content from that rte textbox using javascript 3. I must be doing this wrong. What is the expected output? What do you see instead? Various "undefined" and "null" javascript errors What version of the product are you using? On what operating system? Recent version Please provide any additional information below.
    What steps will reproduce the problem? 1. Place a rte textbox in a form 2. attempt to get user entered content from that rte textbox using javascript 3. I must be doing this wrong. What is the expected output? What do you see instead? Various "undefined" and "null" javascript errors What version of the product are you using? On what operating system? Recent version Please provide any additional information below.
  • May 04, 2009
    issue 29 (When Iframe is small can't use color picker) commented on by brett.thomas   -   I upgraded and it looks like this issue is gone. You should put a version number in the top of the main js file so people can tell what version they have compared to what the latest release is. good job on this plugin btw, it's very nice
    I upgraded and it looks like this issue is gone. You should put a version number in the top of the main js file so people can tell what version they have compared to what the latest release is. good job on this plugin btw, it's very nice
  • May 04, 2009
    issue 29 (When Iframe is small can't use color picker) reported by brett.thomas   -   I am trying to figure out how I can possibly make the color picker appear outside of the iframe. When the iframe size is small, the color picker gets cut off and becomes somewhat unuseable. Any help with this would be greatly appreciated. Thanks!
    I am trying to figure out how I can possibly make the color picker appear outside of the iframe. When the iframe size is small, the color picker gets cut off and becomes somewhat unuseable. Any help with this would be greatly appreciated. Thanks!
 
Hosted by Google Code