You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+14-52Lines changed: 14 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -72,53 +72,12 @@ should host Bramble's iframe, see `src/hosted.js`.
72
72
73
73
**NOTE 3:** To use Bramble in a production setting locally, you can run `npm run production` and access Bramble at [http://localhost:8000/dist](http://localhost:8000/dist)
74
74
75
-
# Optional Extension Loading
76
-
77
-
Bramble supports enabling and disabling various extensions via the URL and query params.
78
-
A standard set of default extensions are always turned on:
79
-
80
-
* CSSCodeHints
81
-
* HTMLCodeHints
82
-
* JavaScriptCodeHints
83
-
* InlineColorEditor
84
-
* JavaScriptQuickEdit
85
-
* QuickOpenCSS
86
-
* QuickOpenHTML
87
-
* QuickOpenJavaScript
88
-
* QuickView
89
-
* UrlCodeHints
90
-
* brackets-paste-and-indent
91
-
* BrambleUrlCodeHints
92
-
* Autosave
93
-
* UploadFiles
94
-
* WebPlatformDocs
95
-
* CodeFolding
96
-
* bramble-move-file
97
-
98
-
You could disable QuickView and CSSCodeHints by loading Bramble with `?disableExtensions=QuickView,CSSCodeHints`
99
-
on the URL.
100
-
101
-
In addition, you can enable other extra extensions:
102
-
103
-
* SVGCodeHints
104
-
* HtmlEntityCodeHints
105
-
* LESSSupport
106
-
* CloseOthers
107
-
* InlineTimingFunctionEditor
108
-
* JSLint
109
-
* QuickOpenCSS
110
-
* RecentProjects
111
-
* brackets-cdn-suggestions
112
-
* HTMLHinter
113
-
* MdnDocs
114
-
* SVGasXML
115
-
116
-
You could enable JSLint and LESSSupport by loading Bramble with `?enableExtensions=JSLint,LESSSupport`
117
-
on the URL
118
-
119
-
NOTE: you can combine `disableExtensions` and `enableExtensions` to mix loading/disabling extensions.
120
-
You should check src/utils/BrambleExtensionLoader.js for the most up-to-date version of these
121
-
extension lists.
75
+
# Extension Loading
76
+
77
+
Bramble loads a set of extensions defined in `src/extensions/bramble-extensions.json`. You can
78
+
alter which extensions Bramble loads by adding or removing items from this list. You can also
79
+
temporarily disable extensions by using `?disableExtensions`. For example: to disable QuickView
80
+
and CSSCodeHints, load Bramble with `?disableExtensions=QuickView,CSSCodeHints` on the URL.
122
81
123
82
--------------
124
83
@@ -128,7 +87,7 @@ After you have everything setup, you can now run the server you chose in the roo
128
87
129
88
# Bramble IFrame API
130
89
131
-
Bramble is desinged to be run in an iframe, and the hosting web app to communicate with it
90
+
Bramble is designed to be run in an iframe, and the hosting web app to communicate with it
132
91
via `postMessage` and `MessageChannel`. In order to simplify this, a convenience API exists
133
92
for creating and managing the iframe, as well as providing JavaScript functions for interacting
134
93
with the editor, preview, etc.
@@ -310,6 +269,8 @@ a number of read-only getters are available in order to access state information
310
269
*`getTheme()` - returns the name of the current theme.
311
270
*`getFontSize()` - returns the current font size as a string (e.g., `"12px"`).
312
271
*`getWordWrap()` - returns the current word wrap setting as a `Boolean` (i.e., enabled or disabled).
272
+
*`getAllowJavaScript()` - returns the current allow javascript setting as a `Boolean` (i.e., enabled or disabled).
273
+
*`getAutocomplete()` - returns the current autocomplete settings as a `Boolean` (i.e., enabled or disabled).
313
274
*`getAutoCloseTags()` - returns the current close tags setting as an `Object` with three properties: `whenOpening` a boolean that determines whether opening tags are closed upon typing ">", `whenClosing` a boolean that determines whether closing tags are closed upon typing "/", and an array of tags `indentTags`, that when opened, has a blank line. These values default to, respectively: `true`, `true`, and an empty array.
314
275
*`getTutorialExists()` - returns `true` or `false` depending on whether or not there is a tutorial in the project (i.e., if `tutorial.html` is present)
315
276
*`getTutorialVisible()` - returns `true` or `false` depending on whether or not the preview browser is showing a tutorial or not.
@@ -327,7 +288,7 @@ to be notified when the action completes:
327
288
*`undo([callback])` - undo the last operation in the editor (waits for focus)
328
289
*`redo([callback])` - redo the last operation that was undone in the editor (waits for focus)
329
290
*`increaseFontSize([callback])` - increases the editor's font size
330
-
*`decreaseFontSize([callback])` - decreases the edtior's font size
291
+
*`decreaseFontSize([callback])` - decreases the editor's font size
331
292
*`restoreFontSize([callback])` - restores the editor's font size to normal
332
293
*`save([callback])` - saves the current document
333
294
*`saveAll([callback])` - saves all "dirty" documents
@@ -347,7 +308,7 @@ to be notified when the action completes:
347
308
*`useMobilePreview([callback])` - uses a Mobile view in the preview, as it would look on a smartphone
348
309
*`useDesktopPreview([callback])` - uses a Desktop view in the preview, as it would look on a desktop computer (default)
349
310
*`enableFullscreenPreview([callback])` - shows a fullscreen preview of the current file
350
-
*`disableFullscreenPreview([callback])` - turns off the fullscreen preview of the curent file
311
+
*`disableFullscreenPreview([callback])` - turns off the fullscreen preview of the current file
351
312
*`enableAutoUpdate([callback])` - turns on auto-update for the preview (default)
352
313
*`disableAutoUpdate([callback])` - turns off auto-update for the preview (manual reloads still work)
353
314
*`enableJavaScript([callback])` - turns on JavaScript execution for the preview (default)
@@ -370,13 +331,14 @@ to be notified when the action completes:
370
331
The Bramble instance is also an [`EventEmitter`](https://github.com/Wolfy87/EventEmitter/) and raises
371
332
the following events:
372
333
373
-
*`"layout"` - triggered whenever the sidebar, editor, or preview panes are changed. It includes an `Object` that returns the same infor as the `getLayout()` getter: : `sidebarWidth`, `firstPaneWidth`, `secondPathWidth`
334
+
*`"layout"` - triggered whenever the sidebar, editor, or preview panes are changed. It includes an `Object` that returns the same information as the `getLayout()` getter: : `sidebarWidth`, `firstPaneWidth`, `secondPathWidth`
374
335
*`"activeEditorChange"` - triggered whenever the editor changes from one file to another. It includes an `Object` with the current file's `fullPath` and `filename`.
375
336
*`"previewModeChange"` - triggered whenever the preview mode is changed. It includes an `Object` with the new `mode`
376
337
*`"sidebarChange"` - triggered whenever the sidebar is hidden or shown. It includes an `Object` with a `visible` property set to `true` or `false`
377
-
*`"themeChange"` - triggered whenever the theme changes. It inclues an `Object` with a `theme` property that indicates the new theme
338
+
*`"themeChange"` - triggered whenever the theme changes. It includes an `Object` with a `theme` property that indicates the new theme
378
339
*`"fontSizeChange"` - triggered whenever the font size changes. It includes an `Object` with a `fontSize` property that indicates the new size (e.g., `"12px"`).
379
340
*`"wordWrapChange"` - triggered whenever the word wrap value changes. It includes an `Object` with a `wordWrap` property that indicates the new value (e.g., `true` or `false`).
341
+
*`"allowJavaScriptChange"` - triggered whenever the allow javascript value changes. It includes an `Object` with a `allowJavaScript` property that indicates the new value (e.g., `true` or `false`).
380
342
*`"autoCloseTagsChange"` - triggered whenever the close tag value changes. It includes an `Object` with a `autoCloseTags` property that indicates the new value
381
343
*`"tutorialAdded"` - triggered when a new tutorial is added to the project
382
344
*`"tutorialRemoved"` - triggered when an existing tutorial for the project is removed
# {0} will be replaced by a filename and {APP_NAME} will be replaced with the word "Brackets"
58
+
EXT_MODIFIED_WARNING=Το <span class='dialog-filename'>{0}</span> έχει τροποποιηθεί στο δίσκο εκτός των {APP_NAME}.<br /><br />Θέλετε να αποθηκεύσετε το αρχείο και να αντικαταστήσετε αυτές τις αλλαγές;
58
59
# {0} will be replaced by a filename and {APP_NAME} will be replaced with the word "Brackets"
60
+
EXT_MODIFIED_MESSAGE=Το <span class='dialog-filename'>{0}</span> έχει τροποποιηθεί στο δίσκο εκτός των {APP_NAME}, αλλά έχει και μη αποθηκευμένες αλλαγές στο {APP_NAME}.<br /><br />Ποια έκδοση θέλετε να κρατήσετε;
59
61
# {0} will be replaced by a filename and {APP_NAME} will be replaced with the word "Brackets"
62
+
EXT_DELETED_MESSAGE=Το <span class='dialog-filename'>{0}</span> έχει διαγραφεί στο δίσκο εκτός των {APP_NAME}, αλλά έχει και μη αποθηκευμένες αλλαγές στο {APP_NAME}.<br /><br />Θέλετε να διατηρήσετε τις αλλαγές σας;
60
63
61
64
62
65
#############
@@ -83,6 +86,10 @@ BUTTON_NO=Όχι
83
86
# Quick Edit
84
87
85
88
ERROR_QUICK_EDIT_PROVIDER_NOT_FOUND=Η Γρήγορη Επεξεργασία δεν είναι διαθέσιμη για την τρέχουσα θέση του κέρσορα
89
+
ERROR_CSSQUICKEDIT_BETWEENCLASSES=Γρήγορη επεξεργασία CSS: τοποθετήστε τον κέρσορα σε ένα μόνο όνομα κατηγορίας
90
+
ERROR_CSSQUICKEDIT_CLASSNOTFOUND=Γρήγορη επεξεργασία CSS: μη πλήρης ιδιότητα κατηγορίας
91
+
ERROR_CSSQUICKEDIT_IDNOTFOUND=Γρήγορη επεξεργασία CSS: μη πλήρης ιδιότητα id
92
+
ERROR_CSSQUICKEDIT_UNSUPPORTEDATTR=Γρήγορη επεξεργασία CSS: τοποθετήστε τον κέρσορα στην ετικέτα, την κατηγορία ή το id
0 commit comments