Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use the fixed toolbar for hallo #16

Merged
merged 6 commits into from
Dec 11, 2012
Merged

Use the fixed toolbar for hallo #16

merged 6 commits into from
Dec 11, 2012

Conversation

colinfrei
Copy link
Member

Also, prevent the br tag from being used in titles

Also, prevent the br tag from being used in titles
@@ -4,7 +4,7 @@
{% javascripts output="js/hallo-coffee.js"
'@SymfonyCmfCreateBundle/Resources/public/js/init-create-hallo.js'
'@SymfonyCmfCreateBundle/Resources/public/vendor/hallo/src/hallo.coffee'
'@SymfonyCmfCreateBundle/Resources/public/vendor/hallo/src/toolbar/*.coffee'
'@SymfonyCmfCreateBundle/Resources/public/vendor/hallo/src/toolbar/fixed.coffee'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sure about this change? the other coffee files there are not needed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In the toolbar folder there's only one other coffee file, which is for the current position. I think we could load both of them but it's not necessary.

'hallolists': {'lists': {'ordered': false}},
'hallojustify': {},
'hallotoolbarlinebreak': { 'breakAfter': ['hallolink'] },
'hallooverlay': {},
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

from the hallo source code i see it still has this widget. can we not fix it in the sandbox to make it work again?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The overlay?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we had One to darken everything that is not the current editable area.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, do we explicitly want it though, or is it a case of "it was there before, why isn't it now"?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the UX people wanted to do it that way. and i think it indeed made things look nicer and easier to use. if its not too hard to fix, would be nice to get it back. if its really a big pain we should open a new issue for it to not block this PR forever.

@dbu
Copy link
Member

dbu commented Oct 15, 2012

@colinfrei thanks for attempting to clean up things, most of it is good as is. can we do something about the overlay?

the main question now is: why do you want to use the header toolbar now? to avoid the scrolling issue? or are there other arguments?
@benoitpointet do you have any input (ux wise) regarding whether the editor in the create toolbar is better or worse than the hallo toolbar next to the text?

@benoitpointet
Copy link
Contributor

@dbu could you screenshot things a bit to get an idea of the choice you're facing? I didn't follow recent works.

@dbu
Copy link
Member

dbu commented Oct 16, 2012

the toolbar next to text is visible here when you click into the text http://cmf.liip.ch

for the new layout i send you an email with a screenshot

@dbu
Copy link
Member

dbu commented Oct 16, 2012

@colinfrei i just noticed that the image dialog popup does not really work from the header toolbar. the top is hidden by the create toolbar, so i can not switch the tab and neither move or close it without first reducing the create toolbar. i think it should be positioned under the create toolbar.

@lsmith77
Copy link
Member

btw i have updated create.js/hallo.js to the lastest version.

@lsmith77
Copy link
Member

@colinfrei can you have a look at this tomorrow?

@dbu
Copy link
Member

dbu commented Oct 22, 2012

ok, so what is left:

  • decide whether we want the editor in the top or next to text by default. we should make this configurable. @benoitpointet could input what should be default
  • fix image dialog location when editor is in header (see my comment above)
  • if we can easily re-see the overlay, would be cool

@adou600
Copy link
Member

adou600 commented Dec 7, 2012

New status for this PR:

  • the editor is on top by default, the configuration fixed_toolbar: false / true in config.yml allows to change the behavior
  • the image dialog location seems to be ok, at least in the sandbox
  • the overlay is shown again if configured in the editor plugin (in init-create-hallo.js)
  • the type of the title was hardcoded before, with 'dcterms:title'. Now the same value is kept by default, but it can be configured in config.yml to allow another title type, for example 'cw:headline'

Should we merge?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants