Closed (fixed)
Project:
BUEditor
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2010 at 14:37 UTC
Updated:
3 Dec 2010 at 18:00 UTC
I'm trying to make a button for the <li></li> tag using the following:
js: E.wrapLines('\n', ' <li>', '</li>', '\n');
The only problem is, after using the provided ul or ol buttons, using this button inserts the new line and list item in the middle of the existing li. Is there any way to specify to go to the end of line before doing the '\n' (ie '\eol')? I spend some time researching and playing around with this in js, but couldn't get anything to work.
Comments
Comment #1
ufku commentedYou can get & set cursor position n BUEditor.
For example,
You may want to use library/bue.li.js if you want to add list items using enter key.
Comment #2
WorldFallz commentednice-- i'm more and more impressed by the power and flexibility of this module every time I configure it-- really nice job.
And thanks for the quick response!