Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-15194

Wrong text formating when inserting a code snippet from jQuery Mobile palette

XMLWordPrintable

      1. Create an HTML5 page:

      <!DOCTYPE html>
      <html>
        <head>
          <meta name="viewport" content="width=device-width, initial-scale=1">
          <link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.css" />
          <script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
          <script src="http://code.jquery.com/mobile/1.3.1/jquery.mobile-1.3.1.min.js"></script>
        </head>
      <body>
      	<div></div>
      </body>
      </html>
      

      2. DnD a page from jQuery Mobile palette between <div>...</div>.
      3. FAILURE: the result is (see the last line):

      ...
      	<div>
      		<div data-role="page" id="page-1">
      			<div data-role="header">
      				<h1>Page Title</h1>
      			</div>
      			<div data-role="content">
      				<p>Page content goes here.</p>
      			</div>
      			<div data-role="footer">
      				<h4>Page Footer</h4>
      			</div>
      		</div></div>
      ...
      

      It should be:

      	<div>
      		<div data-role="page" id="page-1">
      			<div data-role="header">
      				<h1>Page Title</h1>
      			</div>
      			<div data-role="content">
      				<p>Page content goes here.</p>
      			</div>
      			<div data-role="footer">
      				<h4>Page Footer</h4>
      			</div>
      		</div>
      	</div>
      

      instead.

            vrubezhny Victor Rubezhny (Inactive)
            alexeykazakov Alexey Kazakov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: