Giter Club home page Giter Club logo

backnode's People

Contributors

jbips avatar lexoyo avatar madarche avatar ronandrouglazet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

backnode's Issues

Attribute names

At this moment we use data-bn with the type of content to mark editable elements on the HTML page. The problem is we'll have to consider a lot of type: text, img, link, video and it will keep growing. Second problem is that this type is redundant with the tag of the element.

I'm thinking we could just use a "editable" attribute (data-bn-editable="true" or data-bn="editable" or anything else). This will allow us to treat every edition request almost the same and just use a switch on tag name for special needs.

What do you think of that @RonanDrouglazet & @lexoyo ?

Jade error on `npm start`

Hi,

Just came back from holidays and catching up with the project! I updated my branch with all your changes and tried the run script npm start, but I got a jade error:

Error: Jade:41
    39|         #logo
    40|     // backnode app
  > 41|     include src/jade/App.jade
    42|
    43|     // Cloud-Explorer
    44|     iframe(
the "filename" option is required to use "include" with "relative" paths

Did I forgot a file to update, or is it something you experience too?

Thank you, and happy new year ;)

Image proportions

When an image source is set, it apply a size independently of the source proportion. Default behavior should use the source ratio.

Make texts editable

BN needs to parse HTML page to find nodes with attribute "data-bn" equals to "text".
We should send user a visual feedback, whether the node is editable or not.

Make images editable

BN needs to parse HTML page to find nodes with attribute "data-bn" equals to "image".
Those nodes should listen to mouse over, which show a visual alert for modification, and to click, which open an upload menu to change the source.

Repeatable elements

I was thinking it would be a good thing to mark some HTML blocs as "repeatable" so the user can duplicate them as many time as he want.
We can use a list for that and just add a new <li> with the repeatable content when the user clicks on a + like button.

CE Cross-domain access error

I tried to import a file with CE, but got this:

XMLHttpRequest cannot load http://localhost:6969/api/1.0/services/list. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://0.0.0.0:6969' is therefore not allowed access.

It's true that I'm accessing BN with http://0.0.0.0:6969 (as said in README). Tried with http://localhost:6969, it works well, but we should make a choice: 0.0.0.0 or localhost? Either we change the README or data-ce-unifile-url='http://localhost:6969/api/1.0/' in index.jade. Or allow cross-domain XHR, but I think we'll get some security issues.

Minor issue, but it can't ruin the first experience on BN, it would be a shame.

Better edition of text

As a user
I want to use some markdown in my texts
So I can write content with style !

Clean up output HTML

When saved, the outputted HTML show duplicate headers and lots of useless attributes. I think what we should aim to is the same HTML the user gave us but with some modification in the content of the editable node.

Stage component not working on backnode

Hey @lexoyo ! Can we just use the Wysiwyg component without Stage component ? Because i think the Stage component are not design to work in a div on absolute position, and resize ! It's not working on my integration, you can see my fork, but i will create a PR soon ! I think you are using window sizes and it's normal, but not compatible with BackNode interface i think

Maybe it's better to put a simple iframe on backnode interface, but use if possible wysiwyg component, responsize are the last tools to use in our scenario:
Silex -> BackNode -> Responsize

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.