Comments (13)
Try including this file before loading document.js:
https://github.com/substance/util/blob/master/util.js
We'll improve the overall packaging in the coming release of Substance.
from document.
This results in:
Uncaught ReferenceError: tail is not defined
at console line 251.
On Wed, Apr 24, 2013 at 3:29 PM, Michael Aufreiter <[email protected]
wrote:
Try including this file before loading document.js:
https://github.com/substance/util/blob/master/util.js
We'll improve the overall packaging in the coming release of Substance.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16927228
.
from document.
The console is broken at the very moment. Will be restored in the coming days. Also need to update the docs since the API has been simplified.
http://interior.substance.io/modules/document.html
from document.
It appears that the example running at
http://interior.substance.io/modules/document.html is also broken.
/mac
On Wed, Apr 24, 2013 at 3:41 PM, Michael Aufreiter <[email protected]
wrote:
The console is broken at the very moment. Will be restored in the coming
days. Also need to update the docs since the API has been simplified.http://interior.substance.io/modules/document.html
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16928577
.
from document.
Yep, that is also related to the broken console.
You should have a look at the testsuite for now.. as an example for the new API usage. https://github.com/substance/tests/blob/master/tests/004-document-manipulation.js
from document.
Will do.
/mac
On Wed, Apr 24, 2013 at 3:45 PM, Michael Aufreiter <[email protected]
wrote:
Yep, that is also related to the broken console.
You should have a look at the testsuite for now.. as an example for the
new API usage.
https://github.com/substance/tests/blob/master/tests/004-document-manipulation.js—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16929001
.
from document.
Am I missing something or is the documentation at
http://interior.substance.io/modules/document.html not consistent with the
code on the same pagae? if I open a terminal on
http://interior.substance.io/modules/document.html and try to follow along
the examples the output from for instance toJSON is not identical to the
examples on the page.
/mac
On Wed, Apr 24, 2013 at 3:43 PM, Martin Clausen [email protected]:
It appears that the example running at
http://interior.substance.io/modules/document.html is also broken./mac
On Wed, Apr 24, 2013 at 3:41 PM, Michael Aufreiter <
[email protected]> wrote:The console is broken at the very moment. Will be restored in the coming
days. Also need to update the docs since the API has been simplified.http://interior.substance.io/modules/document.html
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-16928577
.
from document.
I just integrated the console with the improved Document API.
Updating the documentation at http://interior.substance.io/modules/document.html is on my todo list.
from document.
Just released v0.3.0 complete with updated docs. Please have a look if you spot any remaining inconsistencies.
http://interior.substance.io/modules/document.html
from document.
Is the checkout method suppose to set the contents of the document to the
state after the commit one check out? If so I do not get the expected
behavior, cf:
var doc = new Substance.Document({ id: "document:substance" });
undefined
var op = ["set", {"title": "Substance" }]; doc.apply(op, {"user":
"michael"});
undefined
var opA = ["insert", { "id": "heading:1", "type": "heading", "target":
"back", "data": { "content": "Hello" } }]; doc.apply(opA, {"user":
"michael"});
undefined
var opB = ["insert", { "id": "text:2", "type": "text", "data": { "content":
"Hey there." } }]; doc.apply(opB, {"user": "michael"});
undefined
doc.commits
Object {f56d20203bf5221dcbf464775c7f724c: Object,
aa18b211ca5b6cc271d2bf9ef104b438: Object, 3212324efa57f1b21426f2fa98907d2a:
Object}
doc.checkout("master", "aa18b211ca5b6cc271d2bf9ef104b438")
undefined
doc.toJSON()
Object {properties: Object, meta: Object, id: "document:substance", nodes:
Object, views: Object}
- id: "document:substance"
- meta: Object
- nodes: Object
- proto: Object
- properties: Object
- views: Object
- proto: Object
On Fri, Apr 26, 2013 at 1:10 AM, Michael Aufreiter <[email protected]
wrote:
Just released v0.3.0 complete with updated docs. Please have a look if you
spot any remaining inconsistencies.http://interior.substance.io/modules/document.html
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-17046458
.
from document.
Any feedback as to why this was closed?
from document.
Literally all things have changed under the hood, so we were closing issues that refer to older versions.
The new sandbox gives you a good overview about the new components.
http://github.com/substance/substance
http://sandbox.substance.io/#tests
Many more updates to come.
from document.
Perfect - thanks for the feedback.
On Tue, Jul 23, 2013 at 12:46 PM, Michael Aufreiter <
[email protected]> wrote:
Literally all things have changed under the hood, so we were closing
issues that refer to older versions.The new sandbox gives you a good overview about the new components.
http://github.com/substance/substancehttps://github.com/substance/substance
http://sandbox.substance.io/#tests
Many more updates to come.
—
Reply to this email directly or view it on GitHubhttps://github.com//issues/5#issuecomment-21406116
.
from document.
Related Issues (13)
- Clarify the atomic parts and data types of the model HOT 2
- Inclusive/exclusive behavior HOT 2
- Redoing a deletion of annotated text does not recreate the annotation HOT 1
- Cannot publish with GitHub Pages HOT 1
- Link to documentation is broken HOT 2
- Specify head/branch name on operation level HOT 1
- Support incremental updates for document properties HOT 1
- TextOperation is missing from javascript-operational-transformation HOT 1
- Nesting of headings HOT 4
- TypeError: doc.properties is undefined HOT 3
- Multi-level content arrangement HOT 1
- Move selection-related behavior to document_controller. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from document.