Opened 15 years ago

Closed 15 years ago

#4266 closed Bug (wontfix)

"New Page" button is not working when cursor is inside "Show Blocks" area

Reported by: Pranav Owned by: Tobiasz Cudnik
Priority: Normal Milestone:
Component: General Version:
Keywords: Oracle Pending Cc: Pranav Senthil

Description

Click on "Show Blocks" button and then click on "New Page" button. You will observe that although the contents are deleted, "Show Blocks" area is still showing up.

Change History (7)

comment:1 Changed 15 years ago by Tobiasz Cudnik

Milestone: CKEditor 3.0CKEditor 3.1
Owner: set to Tobiasz Cudnik

This means that "Show Blocks" setting is preserved after creating new document. "New page" button works like it should, editor content is truncated.

The thing is that showblocks displays fake element described by config.enterMode when editor is empty (check at source view).

What are your expectations in this field ? Does new page button suppose to turnoff showblocks ?

comment:2 in reply to:  1 Changed 15 years ago by Pranav

Replying to tobiasz.cudnik:

This means that "Show Blocks" setting is preserved after creating new document. "New page" button works like it should, editor content is truncated.

The thing is that showblocks displays fake element described by config.enterMode when editor is empty (check at source view).

What are your expectations in this field ? Does new page button suppose to turnoff showblocks ?

Yes, the new page button should turnoff show blocks. You can refer to old FCKEditor for the behavior (http://www.fckeditor.net/demo).

comment:3 Changed 15 years ago by Alfonso Martínez de Lizarrondo

I would say that the behavior in FCKeditor was a bug. This seems more intuitive.

comment:4 in reply to:  3 Changed 15 years ago by Pranav

Replying to alfonsoml:

I would say that the behavior in FCKeditor was a bug. This seems more intuitive.

How this behaviour seems to be more intutative? As we are creating a new page, there should be nothing...right?

comment:5 Changed 15 years ago by Alfonso Martínez de Lizarrondo

But we are talking about a state of the editor. There's really no content (well, just the content that you set in config.newpage_html ), it's another command like the maximize or spell check. Another example is the wysiwyg vs source, when you press "new page" it doesn't revert to wysiwyg, it remains in whatever mode you are using.

comment:6 Changed 15 years ago by Tobiasz Cudnik

Keywords: Pending added
Status: newassigned

Maybe introducing new button "Reset editor" would resolve your problem ? It could combine "New page" and reseting toolbar states in same time.

comment:7 Changed 15 years ago by Frederico Caldeira Knabben

Milestone: CKEditor 3.1
Resolution: wontfix
Status: assignedclosed

Show Blocks is an editing utility. It's there to give users some references while editing, but we know that the final results may be different. The fact is that, as the editor is active for editing after the New Page command is activated, we need a paragraph there so the user can type in it. If it remains empty, the editor will output an empty string. So, that paragraph was the "temporary state" of the editor. That's why I prefer defining the editor as RTE (rich text editor) not WYSIWYG (what you see is what you get).

We're not supposed to change the current editor behavior as there is better way to behave actually.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy