[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Hi Jay. Am 23.03.2008 um 19:48 schrieb Jay Salvat: I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Its great. I like the approach. After playing around a little, it sure is a candidate for integration in the next release of our CMS. Since there is a lot of customized DOM Javascript action focused on the main content textarea, the switch of the ID* makes me hesitate a bit because it would causes a lot of refactoring in all custom libs. Many functions rely on the textarea ID selection. Am i missing something? Or is there a way to prevent the ID switch? *) markItUp rips off the id from the textarea and uses it on the surrounding container. greets Olaf -- Olaf Gleba : creatics media.systems tel. +49 (0)212 38 32 94 30 : fax. +49 (0)212 38 32 94 31 [EMAIL PROTECTED] : http://www.creatics.de http://www.creatics.de/keys/
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Hi Olaf! Yes, markItUp! moves the textarea's id to the main container. It might seem strange but believe me, it's the best way to handle all the instance and css easily. And agree it might also be unconfortable in some applications. If your libs are developped over jQuery, just replace your textarea's selection $(#id) by $(#id textarea) to get the textarea jquery object. Or textarea = $(#id textarea).get(0); equals textarea = document.getElementById(id); If you want to keep your libs jQuery free, try this function which returns the right textarea object (with or without markItUp! plugged on it) as getElementById. function getElementByMarkItUpId(id) { obj = document.getElementById(id); miu = obj.childNodes[0].childNodes[1]; return (miu) ? miu : obj; } myTextarea = getElementByMarkItUpId(myTextareaId); alert(myTextarea.value); Last solution, try to edit the markItUp! source. line 67: replace $$.wrap('div id='+($$.attr(id)||)+' class=markItUp/div'); by $$.wrap('div class=markItUp/div'); line 69: replace $$.attr(id, ).addClass(markItUpEditor); by $$.addClass(markItUpEditor); I hope my explainations and my english will be clear enough to help you. Regards, Jay On 3 avr, 08:30, Olaf Gleba [EMAIL PROTECTED] wrote: Hi Jay. Am 23.03.2008 um 19:48 schrieb Jay Salvat: I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Its great. I like the approach. After playing around a little, it sure is a candidate for integration in the next release of our CMS. Since there is a lot of customized DOM Javascript action focused on the main content textarea, the switch of the ID* makes me hesitate a bit because it would causes a lot of refactoring in all custom libs. Many functions rely on the textarea ID selection. Am i missing something? Or is there a way to prevent the ID switch? *) markItUp rips off the id from the textarea and uses it on the surrounding container. greets Olaf -- Olaf Gleba : creatics media.systems tel. +49 (0)212 38 32 94 30 : fax. +49 (0)212 38 32 94 31 [EMAIL PROTECTED] :http://www.creatics.dehttp://www.creatics.de/keys/
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Hi Jay. Am 03.04.2008 um 11:58 schrieb Jay Salvat: [...] I hope my explainations and my english will be clear enough to help you. Many thanks for your detail description! I will work on these solutions and will post the result here. Again, many thanks. bye Olaf -- Olaf Gleba : creatics media.systems tel. +49 (0)212 38 32 94 30 : fax. +49 (0)212 38 32 94 31 [EMAIL PROTECTED] : http://www.creatics.de http://www.creatics.de/keys/
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Jay, I'd be interested to hear some specifics on why you found it necessary to remove a unique identifier from an element, and put that on a different element. That's changing the identity and type of that element. Quite frankly, this is obtrusive, and surprising. Maybe there's an option you haven't considered. Or maybe you'll teach me about a difficulty I'm not currently aware of. Thanks. - Richard Richard D. Worth http://rdworth.org/ On Thu, Apr 3, 2008 at 5:58 AM, Jay Salvat [EMAIL PROTECTED] wrote: Hi Olaf! Yes, markItUp! moves the textarea's id to the main container. It might seem strange but believe me, it's the best way to handle all the instance and css easily. And agree it might also be unconfortable in some applications. If your libs are developped over jQuery, just replace your textarea's selection $(#id) by $(#id textarea) to get the textarea jquery object. Or textarea = $(#id textarea).get(0); equals textarea = document.getElementById(id); If you want to keep your libs jQuery free, try this function which returns the right textarea object (with or without markItUp! plugged on it) as getElementById. function getElementByMarkItUpId(id) { obj = document.getElementById(id); miu = obj.childNodes[0].childNodes[1]; return (miu) ? miu : obj; } myTextarea = getElementByMarkItUpId(myTextareaId); alert(myTextarea.value); Last solution, try to edit the markItUp! source. line 67: replace $$.wrap('div id='+($$.attr(id)||)+' class=markItUp/div'); by $$.wrap('div class=markItUp/div'); line 69: replace $$.attr(id, ).addClass(markItUpEditor); by $$.addClass(markItUpEditor); I hope my explainations and my english will be clear enough to help you. Regards, Jay On 3 avr, 08:30, Olaf Gleba [EMAIL PROTECTED] wrote: Hi Jay. Am 23.03.2008 um 19:48 schrieb Jay Salvat: I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Its great. I like the approach. After playing around a little, it sure is a candidate for integration in the next release of our CMS. Since there is a lot of customized DOM Javascript action focused on the main content textarea, the switch of the ID* makes me hesitate a bit because it would causes a lot of refactoring in all custom libs. Many functions rely on the textarea ID selection. Am i missing something? Or is there a way to prevent the ID switch? *) markItUp rips off the id from the textarea and uses it on the surrounding container. greets Olaf -- Olaf Gleba : creatics media.systems tel. +49 (0)212 38 32 94 30 : fax. +49 (0)212 38 32 94 31 [EMAIL PROTECTED] :http://www.creatics.dehttp://www.creatics.de/keys/
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Hi David, Before letting markItUp! go in the wild as an opensource project, I used it for monthes in my personnal needs.I have implemented it in many projects and moving the ID to the container saved me lot of time in some advanced implementations. It's mostly matter of CSS styling/conflicts and multi-instances handlings. Some examples: #markitup { position:absolute; top:10px; left:10px; } Or and most important #myHtmlEditor .markItUpButton1 { /* ... an icon */ } #myBbcodeEditor .markItUpButton1 { /* ... an icon */ } I agree and i am the first one to claim that it might seem surprising. Changing the identity and type of a element is not really elegant but never bring me any problem so far. I was certainly trapped with a specific advanced need the day i decided switching the ID was necessary. Now, i can't really remember why it was so important at the time. I was certainly wrong on that one. I will run some tests and obviously remove it from the next releases after balancing pros/cons. I assume the best solution is to give it as an option. Thanks guys for the great feedbacks. Regards, Jay On 3 avr, 15:24, Richard D. Worth [EMAIL PROTECTED] wrote: Jay, I'd be interested to hear some specifics on why you found it necessary to remove a unique identifier from an element, and put that on a different element. That's changing the identity and type of that element. Quite frankly, this is obtrusive, and surprising. Maybe there's an option you haven't considered. Or maybe you'll teach me about a difficulty I'm not currently aware of. Thanks. - Richard
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
On Thu, Apr 3, 2008 at 12:09 PM, Jay Salvat [EMAIL PROTECTED] wrote: I was certainly trapped with a specific advanced need the day i decided switching the ID was necessary. Now, i can't really remember why it was so important at the time. I was certainly wrong on that one. I will run some tests and obviously remove it from the next releases after balancing pros/cons. I assume the best solution is to give it as an option. If you do decide to give it as an option, maybe simply expose an id option that should be the id of the container element, like so: $(#myTextArea).markItUp({ id: markitup }) Thanks for listening. - Richard
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Thanks Oliver for this great tip. I will add it as soon as possible. There is a problem on the dropdown menus in Firefox that i am not able to fix. A mouseover open the menu, but the mouseout is not fired if the menu has been clicked. Look at this example, colors or fonts menu: http://markitup.jaysalvat.com/examples/bbcode/ If someone knows how to fix it... Jay On 24 mar, 19:53, Olivier Percebois-Garve [EMAIL PROTECTED] wrote: Hi Jay, Great script! I think that your menu has the dancing syndrome. I recently discovered the fix for this from Remy Sharp's post coda bubble. Its untested, but the following should fix it, or at least, you'll get the point: -Olivier hideDelayTimer = null; $(.menu a).hover(function() { if (hideDelayTimer) clearTimeout(hideDelayTimer); $(em, this).text($(this).attr(title)); $(em, this).not(':animated').animate({opacity: show, left: +20}, slow); $(this).not(':animated').animate({left: +20}, fast);}, function() { if (hideDelayTimer) clearTimeout(hideDelayTimer); hideDelayTimer = setTimeout(function (){ $(em, this).animate({opacity: hide, left: -20}, slow); $(this).animate({left: 0}, fast); }, 250); }); Jay Salvat wrote: Hi all! I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Website: http://markitup.jaysalvat.com/ Examples: http://markitup.jaysalvat.com/examples/ Feedbacks are welcomed! Jay S.
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
nice !! dugg ! On Mon, Mar 24, 2008 at 4:56 AM, John Beppu [EMAIL PROTECTED] wrote: It looks nice. I'll have to try it out. On Sun, Mar 23, 2008 at 11:48 AM, Jay Salvat [EMAIL PROTECTED] wrote: Hi all! I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Website: http://markitup.jaysalvat.com/ Examples: http://markitup.jaysalvat.com/examples/ Feedbacks are welcomed! Jay S. -- Alexandre Plennevaux LAb[au] http://www.lab-au.com
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
fyi, on your html example page, if you select some text, click the Link icon, and Cancel it, an empty link is nevertheless added to the page. emichael
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
Hi Jay, Great script! I think that your menu has the dancing syndrome. I recently discovered the fix for this from Remy Sharp's post coda bubble. Its untested, but the following should fix it, or at least, you'll get the point: -Olivier hideDelayTimer = null; $(.menu a).hover(function() { if (hideDelayTimer) clearTimeout(hideDelayTimer); $(em, this).text($(this).attr(title)); $(em, this).not(':animated').animate({opacity: show, left: +20}, slow); $(this).not(':animated').animate({left: +20}, fast); }, function() { if (hideDelayTimer) clearTimeout(hideDelayTimer); hideDelayTimer = setTimeout(function (){ $(em, this).animate({opacity: hide, left: -20}, slow); $(this).animate({left: 0}, fast); }, 250); }); Jay Salvat wrote: Hi all! I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Website: http://markitup.jaysalvat.com/ Examples: http://markitup.jaysalvat.com/examples/ Feedbacks are welcomed! Jay S.
[jQuery] Re: [ANNOUNCE] markItUp! 1.0 (former jTagEditor) is finally released!
It looks nice. I'll have to try it out. On Sun, Mar 23, 2008 at 11:48 AM, Jay Salvat [EMAIL PROTECTED] wrote: Hi all! I'm proud to announce you the official release of markItUp! (former jTagEditor) and markItUp! website. I hope everything will be ok and i forgot nothing important. Website: http://markitup.jaysalvat.com/ Examples: http://markitup.jaysalvat.com/examples/ Feedbacks are welcomed! Jay S.