-
Notifications
You must be signed in to change notification settings - Fork 14
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
Dragmode changes from Absolute to Translate when the Rulers are turned off. #4
Comments
At the moment turning off the rulers just resets the dragmode to |
The second issue is related to
{
attributes: {
title: 'Toggle Rulers'
},
context: 'toggle-rulers', //! Add context
label: `<svg width="18" viewBox="0 0 16 16"><path d="M0 8a.5.5 0 0 1 .5-.5h15a.5.5 0 0 1 0 1H.5A.5.5 0 0 1 0 8z"/><path d="M4 3h8a1 1 0 0 1 1 1v2.5h1V4a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v2.5h1V4a1 1 0 0 1 1-1zM3 9.5H2V12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V9.5h-1V12a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1V9.5z"/></svg>`,
command: 'ruler-visibility',
id: 'ruler-visibility'
} |
The first issue has been fixed in the latest release. |
Thanks for addressing the issue with the update, and guidance on second issue. Would be glad for a solution for hiding rulers in preview mode. |
You can hide them with: editor.on('run:preview', () => editor.stopCommand('ruler-visibility')); |
Thank you once again... Based on your guidance I used the following code to maintain the rulers' state after returning back from preview mode.
|
First of all, thanks a lot for this wonderful plugin.
Is this an issue or am I not able to get it right?
Please have a look at this -> https://jsfiddle.net/tfupj7ro/
Initially rulers are not active,
dragmode
is set toAbsolute
, after turning on rulers,dragmode
is stillAbsolute
. But once rulers are turned off,dragmode
is getting changed toTranslate
, and again after turning on rulers,dragmode
is getting back toAbsolute
. (Try dropping components each time and check the behavior.)I want to always keep
dragmode
toAbsolute
. How do I achieve this, please suggest.The other issue is, when canvas is cleared, rulers are getting turned off and
dragmode
is getting changed toTranslate
. I want to keep the rulers' visibility state same even after canvas is cleared.The text was updated successfully, but these errors were encountered: