Jump to content


Photo

TNxHtmlColumn questions !


  • Please log in to reply
11 replies to this topic

#1 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 23 January 2008 - 09:18 PM

We can remove any html tags contained in this column ?

If so what procedure?

#2 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 23 January 2008 - 10:25 PM

Hello Dergen,

I am not sure that I understand. Do you think about parsing html code inside cell and remove specific tag?

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#3 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 24 January 2008 - 02:08 PM

I want to remove all tags !

#4 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 25 January 2008 - 01:28 AM

Hello Dergen,

I am not sure that I understand, but try to guess:

- disabling formatting is not possible at this moment.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#5 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 26 January 2008 - 05:22 PM

sad.gif

When this is added ?

#6 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 26 January 2008 - 05:25 PM

Found this in the web :

CODE
Function RemoveHTMLTags( FromWhere : String ) : String;
Var
  IdX : Integer;
  IdY : Integer;
  ForceExit : Boolean;
Begin
  Result := FromWhere;
  ForceExit := False;
  Repeat
    IdX := Pos( '<', Result );
    IdY := Pos( '>', Result );
    If ( ( IdX > 0 ) And ( IdY > IdX ) ) Then Begin
      Result := Copy( Result, 1, ( IdX - 1 ) ) + Copy( Result, ( IdY + 1 ), MaxInt );
    End Else Begin
      ForceExit := True;
    End;
  Until ( ( IdX = 0 ) Or ( IdY = 0 ) Or ( ForceExit ) );
End;


#7 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 26 January 2008 - 06:58 PM

Why not existe TNxHTMLEdit for inplace editor ?

#8 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 27 January 2008 - 12:02 AM

Hello Dergen,

I will think about this feature, but using this function is good solution.

For Html column, we may add a standard Inplace Editor for text.

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#9 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 28 January 2008 - 03:13 PM

With the inplace text editor, you can see the HTML tags, which is not practical for the simple input.

In my program formatting text with HTML tags is done with a button and not directly in the text!

#10 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 28 January 2008 - 05:58 PM

Hello Dergen,

I will enable text inplace editor for this column, but please note that it will contain full content of cell. Example:

CODE
this is <b>bold text</b> and this is <i>italic</i> text.


cell will be drawn:

this is bold text and this is italic text.

but when you click to edit cell, you will see again:

CODE
this is <b>bold text</b> and this is <i>italic</i> text.


Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.

#11 Der§en

Der§en
  • Members
  • 167 posts
  • Gender:Male
  • Location:Paris

Posted 02 February 2008 - 12:01 AM

I understand that there is a difference between the content is what is shown as it is HTML.

But what it will be good to have an editing mode directly into HTML thumbnail (like Dreamweaver) without showing the tags.

For users who want only change the text without touching the tags and make mistakes.

Excuse my English, I am french !

#12 Boki (Berg)

Boki (Berg)

    Boki (Berg)

  • Forum Admin
  • PipPipPipPipPip
  • 8,289 posts
  • Gender:Male

Posted 02 February 2008 - 01:12 AM

Hello Dergen,

I think that the best solution will be editing cell outside grid (after clicking on button for example) inside some standalone html wyswyg editor component.

Please note that having such component is not a easy task but there are several html editor components for Delphi on market, but I am not sure which is the best.

Now I have in mind, that maybe you can use standard TRichEdit component and use it for editing HTML cells (after clicking on button, or inside OnSelectCell event).

Best regards
boki@bergsoft.net | LinkedIn Profile
--
BergSoft Home Page: www.bergsoft.net
Users Section: users.bergsoft.net
Articles and Tutorials: help.bergsoft.net (Developers Network)
--
BergSoft Facebook page
--
Send us applications made with our components and we will submit them on: www.bergsoft.net/apps.htm. Link to this page will be also set on home page too.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users