Coder Social home page Coder Social logo

Comments (16)

plandem avatar plandem commented on May 28, 2024

WYSIWYG is not as easy as basic inline editing, especially if you gonna to release it for users/customer, because alot of testing for cross-browser functionalities (each major browser, each major operation system, each major update of depencies (libraries and etc)). Better looks for something like CKEditor inline editor mode, there is a angular wrapper for inline editor - at least i saw it somewhere!

from angular-xeditable.

vitalets avatar vitalets commented on May 28, 2024

good option!
@plandem could you share the link to ckeditor directive?

from angular-xeditable.

plandem avatar plandem commented on May 28, 2024

Well, here is it:
http://ericpanorel.net/2013/08/03/ckeditor-4-inline-mode-angularjs-directive/

i'm still new about angular, so i can't rate level of implementation.

P.S.: Here is official doc about it:
http://docs.ckeditor.com/#!/guide/dev_inline

from angular-xeditable.

plandem avatar plandem commented on May 28, 2024

to enable inline editing, you will not do alot from CKEditor/etc side. But if you want to bring some 'events' as angular style, then probably some work will be needed :)

from angular-xeditable.

vitalets avatar vitalets commented on May 28, 2024

ok, thanks, I will have a look!

from angular-xeditable.

amish-patel avatar amish-patel commented on May 28, 2024

Thanks guys - CKEditor was definitely good pointer - although I have not used it as form-editable control, I did use a directive on a stand-alone page to provide WYSIWYG editing using CKEditor and it's pretty straightforward

from angular-xeditable.

ashernevins avatar ashernevins commented on May 28, 2024

For what it's worth, this isn't that difficult to do. I used textAngular https://github.com/fraywing/textAngular with xeditable and it works great. The only changes I needed to make were:

  1. Change inputTpl to '
    ' (I did it only for editableTextarea, but you can do it for whatever you like).
  2. Remove one of the x-editable styles that draws a box around the editor in your chosen theme (if applicable).
  3. For convenience sake, I added the submit and cancel buttons to textAngularTools, so that I could turn them off in xeditable and use them right in the textAngular toolbar with the others.

from angular-xeditable.

vitalets avatar vitalets commented on May 28, 2024

@ashernevins textAngular look very nice.
If you have time, it would be greate to you make PR with editable-wysiwig directive..

from angular-xeditable.

jonaswindey avatar jonaswindey commented on May 28, 2024

@ashernevins : I think github removed your code when pasting, could you post your code again with correct markdown? Thanks!

from angular-xeditable.

vasya10 avatar vasya10 commented on May 28, 2024

@jonaswindey you can copy the xeditable editableTextArea module and just change this line to:
(call your directive as editableTextAngular)
directiveName: 'editableTextAngular',
inputTpl: '<div text-angular></div>',
and you can use the tag as <div editable-text-area> ... it will work.

from angular-xeditable.

vasya10 avatar vasya10 commented on May 28, 2024

@vitalets i could submit a PR but currently im not getting the textAngular styles correctly, once i figure out how to set those styles this could be reusable.

from angular-xeditable.

schup avatar schup commented on May 28, 2024

editable-wysiwig would be nice :-)

from angular-xeditable.

geoidesic avatar geoidesic commented on May 28, 2024

@vasya10 any luck getting the textAngular styles to work?

from angular-xeditable.

geoidesic avatar geoidesic commented on May 28, 2024

@ashernevins Any chance you could show your code for how you removed the buttons and added them as toolbars?

from angular-xeditable.

pdonorio avatar pdonorio commented on May 28, 2024

+1

An editable-wysiwig should be a must :)

I worked a little with textAngular and found some limitations. Just for the record, i am testing now ng-wysiwyg which - at first impression - seems to cover more options.

Thanks for the great work!

from angular-xeditable.

mitcht avatar mitcht commented on May 28, 2024

Closed as being too old

from angular-xeditable.

Related Issues (20)

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.