1
irmtfan
tinyeditor: cant recognize ENTER when edit an existing non html content
  • 2007/3/4 8:29

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


when i want to edit an auto format page by tinyeditor that previously created by DHTML editor, it cant recognize new lines at all.just show all contents in a single line.

2
McDonald
Re: tinyeditor: cant recognize ENTER when edit an existing non html content
  • 2007/3/4 12:00

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


I haven't test it, but the manual says:

Quote:
NEW: A new parameter has been added in the current version of tinyeditor (from 1.0 BETA onwards): xEditor. You can use this new parameter to imitate the XOOPS DHTML editor. When the value is set to 0 a reduced instruction and command set will be used. This could be useful if you want to turn other dhtml textareas into WYSIWYG.


This means you have to adjust the following line:

$editor = new XoopsFormTinyeditorTextArea(array(‘caption‘=>$caption,
‘name‘=>$name‘value‘=>$value‘width‘=>‘100%‘height‘=>‘400px‘,
[
color=CC0000]‘xEditor‘=>‘1‘[/color]));


I haven't seen any modules having this feature yet.

3
irmtfan
Re: tinyeditor: cant recognize ENTER when edit an existing non html content
  • 2007/3/5 3:14

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


McDonald,
this section that you mentioned is for reduce buttons in tinyeditor to change its face like a DHTML editor.

but i talk about contents that previously create by DHTML (as a non HTML bbcode) editor and now i want to EDIT them with tinyeditor (html WYSIWYG).

4
McDonald
Re: tinyeditor: cant recognize ENTER when edit an existing non html content
  • 2007/3/5 12:01

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


Sorry about the confusion.

None of the wysiwyg editors can add the p-elements or br-elements to the content when you edit/modify bbcode content as far as I know.

I normally first copy the text from the frontpage to a texteditor like ConTEXT and then copy/paste it back with tinyeditor using one of thr paste-buttons. This way the p/br-elements are added automatically.

5
irmtfan
Re: tinyeditor: cant recognize ENTER when edit an existing non html content
  • 2007/3/5 13:47

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


Quote:
I normally first copy the text from the frontpage to a texteditor


this is exactly my issue. i cant copy a formatted text in normal view.
i want to see the edit page with the new lines but as you wrote WYSIWYG editors cant do it.

currently i just found one solution for this:
1- select the text in normal view and copy the selection source code.

2- add the source html to tinyeditor.

Login

Who's Online

310 user(s) are online (173 user(s) are browsing Support Forums)


Members: 0


Guests: 310


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits