@Stephen good catch on that div. Though now that you have pointed it out, I 
will try to remove the need for that div altogether. Will just require 
tweaking the calculations for the position of the popup menu a little bit.

As you have discovered adding back the standard toolbar is quite easy. You 
can also easily exclude from the standard toolbar, the buttons in the 
floating toolbar by tweaking the filter:
[all[shadows+tiddlers]tag[$:/tags/EditorToolbar]!has[draft.of]] -[list[$:
/config/sq/floating-toolbar/button-list]]

 I have a different design concept in mind that I want to explore first, 
which is why I have not as of yet gone this route. While this is an 
acceptable solution for the regular editor, for the Streams plugin in 
particular, I would like something with less visual clutter.

@Tony : as Stephen points out, it is pretty easy to add back in the 
standard editor tool bar. Just compare $:/core/ui/EditTemplate/body/editor 
to the unmodified shadow tiddler. 

Cheers,
Saq

On Thursday, July 16, 2020 at 2:34:40 AM UTC+2, Stephen Kimmel wrote:
>
> As it runs out the fix to the preview was easy enough. All I had to do was 
> to move the opening <div style="position:relative;"> to a new position 
> directly in front of the reveal pop-up line.
>
> I was also able to put back the standard editor tool bar by adding the 
> removed code ahead of the relocated position:relative div line. 
>
> I look forward to seeing the improvements you have in mind.
>
> Stephen
>
>
> On Wednesday, July 15, 2020 at 2:41:01 PM UTC-5, Saq Imtiaz wrote:
>>
>> Hi Stephen, 
>>
>> Let me just re-iterate that this a quick 30 minute hack meant to serve as 
>> a demo/proof of concept for an alternative way to implement a text 
>> formatting toolbar. It is not meant for anyone to use. There are fair few 
>> edge cases that cause issues, and no affordance for toolbar buttons that do 
>> not depend on a selection.
>>
>> That said, thank you for bringing the issue with the preview to my 
>> attention. As I never use the preview option I likely would not have 
>> realized. This at least, should be an easy fix.
>>
>> Cheers,
>> Saq
>>
>> On Wednesday, July 15, 2020 at 9:08:12 PM UTC+2, Stephen Kimmel wrote:
>>>
>>> I definitely like the idea of the pop-up editor toolbar though I do have 
>>> a difficulty or two that I haven't worked my way through yet. Perhaps my 
>>> biggest gripe is that the preview window changed position from beside the 
>>> editing window to below and to the right of the editing window. 
>>>
>>> I'm working with FF but I've seen the same effect using Chrome and Brave 
>>> as well.
>>>
>>> Stephen
>>>
>>> On Wednesday, July 8, 2020 at 2:58:06 AM UTC-5, Saq Imtiaz wrote:
>>>>
>>>> When early morning conference calls run too long, you get demos. 
>>>> Here is a very quick and rough proof of concept of an alternative 
>>>> approach to the editor toolbar:
>>>>
>>>> [image: float-menu.png]
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> Edit a tiddler, and select some text to make the toolbar appear:
>>>>
>>>> https://saqimtiaz.github.io/sq-tw/floating-menu.html
>>>>
>>>> Caveats:
>>>> - Not all buttons are related to selections and some would need to be 
>>>> available without a selection.
>>>> - Probably a fair few other things, haven't tested it beyond selecting 
>>>> some text and triggering a button.
>>>>
>>>> Cheers,
>>>> Saq
>>>>
>>>> PS: I think "demo" (or "POC" / proof of concept) and "UI" tags would be 
>>>> handy for posts.
>>>>
>>>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/148d1005-5549-4310-833d-f4c5da853a31o%40googlegroups.com.

Reply via email to