brackets-archive / bracketsIssues

Archive of issues in brackets.
0 stars 0 forks source link

Register custom Quick Views #13140

Open core-ai-bot opened 3 years ago

core-ai-bot commented 3 years ago

Issue by nicolo-ribaudo Monday Apr 20, 2015 at 20:24 GMT Originally opened as https://github.com/adobe/brackets/issues/10958


What about if extensions could register custom quick views? So that can be added previews for things like MathML, fonts, inline svg, css timing functions, ...

Maybe something like this:

var QuickViewManager = brackets.getModule("editor/QuickViewManager");

QuickViewManager.registerProvider({
    canOpen: function (document, cursorPosition) {
        if (/* canOpen */) {
            return true;
        }
        return false;
    },
    open: function (document, cursorPosition) {
        return "<div>Html code to display in the popover</div>";
    }
});
core-ai-bot commented 3 years ago

Comment by redmunds Monday Apr 20, 2015 at 23:02 GMT


The css timing functions inline editors provide a custom editor -- I think this would only work for non-editable views such as documentation.

"Quick View" is the name of the popover you see when you move mouse over certain items such as colors or images. Maybe "QuickDocsManager"?

core-ai-bot commented 3 years ago

Comment by nicolo-ribaudo Saturday Apr 25, 2015 at 13:59 GMT


I was thinking of something like this: http://jsbin.com/widoricire/1/edit?js,output