Details
-
Enhancement
-
Resolution: Done
-
Major
-
None
Description
1. Suppose we have the following code:
<div data-role="page" id="page-1"> <div data-role="content">| </div> </div>
marks the cursor position. |
2. Press Enter right after <div data-role="content">:
<div data-role="page" id="page-1"> <div data-role="content"> | </div> </div>
3. Then click on button widget in jQuery Mobile Palette. Click on OK.
The following code is generated:
<div data-role="page" id="page-1"> <div data-role="content"> <a href="" id="button-1" data-role="button">Link button</a> </div> </div>
But it should be
<div data-role="page" id="page-1"> <div data-role="content"> <a href="" id="button-1" data-role="button">Link button</a> </div> </div>
instead.
Also we probably should use the preferences/settings of the editor to insert space symbols (N spaces/tab) instead of hardcoded " ".
Attachments
Issue Links
- is related to
-
JBIDE-14972 Use tab symbol or spaces depending on text editor preferences in code snippets from Palette wizards instead of hard-coded 2 spaces
- Closed