• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item3972: NatEditContrib: Pressing H1 button should change current line to h1 tag

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Extension NatEditContrib Normal No Action Required MD n/a  

Edit Form Data

Summary:
Reported By:
Codebase:
Applies To:
Component:
Priority:
Current State:
Waiting For:
Target Release:
Released In:
 

Detail

When I have the cursor on a line of text and press the H1 button I expect that the current line changes to H1. It is a bit surprising to have a new line opened with an H1 and highlighted default text.

-- TWiki:Main/PeterThoeny - 27 Apr 2007

No, this does not work like this. All button actions are configured by a triplet:

  • starting tag, e.g. <div style="text-align:center">
  • default content, e.g. Centered text
  • closing tag, e.g. </div>

When you highlight a part of the text, this selection will be used instead of the default content.

So in your use case, don't just type "some text" and then press h1 to expect it to become ---++ some text. Select the text first and then press h1 will work just perfect.

All buttons work like this: select some text, then press bold to get the selection bold. I'd prefer to leave it like it is.

-- TWiki:Main.MichaelDaum - 27 Apr 2007

Hmm, I find it more consistent to distinguish between operations that happen within a flow of text (bold, italic, monospaced, etc) and those that operate on line(s) of text (heading, bullets, verbatim).

For operations that happen within a flow of text:

  • If text is selected: Enclose text with markup
  • If text is not selected: Add markup with highlighted default text

For operations on line(s) of text:

  • If text is selected: Enclose text with markup
  • If text is not selected: Select current line, then do same action as above

-- TWiki:Main.PeterThoeny - 27 Apr 2007

Hm, I don't get away with this minimal amount of javascripth the current editor is using...

-- MichaelDaum - 27 Apr 2007

Stale: Setting unmaintained extension to "no action required".

-- PeterThoeny - 2010-10-12

ItemTemplate
Summary NatEditContrib: Pressing H1 button should change current line to h1 tag
ReportedBy TWiki:Main.PeterThoeny
Codebase

SVN Range TWiki-4.1.2, Fri, 27 Apr 2007, build 13539
AppliesTo Extension
Component NatEditContrib
Priority Normal
CurrentState No Action Required
WaitingFor MD
Checkins

TargetRelease n/a
ReleasedIn

Edit | Attach | Watch | Print version | History: r5 < r4 < r3 < r2 < r1 | Backlinks | Raw View |  Raw edit | More topic actions
Topic revision: r5 - 2010-10-12 - PeterThoeny
 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback